AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
EM::CardFacade::ECardDataFacadeTimeTicket Class Reference

#include <ECardDataFacadeTimeTicket.h>

Public Member Functions

 ECardDataFacadeTimeTicket (ECardDataStorage *cardDataStorage)
 
virtual ~ECardDataFacadeTimeTicket ()
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
bool GetAvailableTimeTicketSlots (short &timeTicketsSlots) const
 return count of all time ticket slots on card ( max Time Tickets) More...
 
bool GetTimeTicketsCount (short &timeTicketsCount) const
 
bool SetTimeTicketsCount (const short timeTicketsCount) const
 
bool IsTimeTicketValid (const unsigned char ticketIndex, bool &valid) const
 
bool SetTimeTicketValid (const unsigned char ticketIndex, const bool valid) const
 
bool GetTariffTicketNumber (const unsigned char ticketIndex, unsigned short &tariffTicketNumber) const
 
bool SetTariffTicketNumber (const unsigned char ticketIndex, const unsigned short tariffTicketNumber) const
 
bool GetTicketTariffProfile (const unsigned char ticketIndex, unsigned char &tariffProfile) const
 
bool SetTicketTariffProfile (const unsigned char ticketIndex, const unsigned char tariffProfile) const
 
bool GetTicketCustomerProfile (const unsigned char ticketIndex, unsigned char &customerProfile) const
 
bool SetTicketCustomerProfile (const unsigned char ticketIndex, const unsigned char customerProfile) const
 
bool GetPrice (const unsigned char ticketIndex, EMoneyData &price) const
 
bool SetPrice (const unsigned char ticketIndex, const EMoneyData &price) const
 
bool GetPriceUnit (const unsigned char ticketIndex, unsigned char &priceUnit) const
 
bool SetPriceUnit (const unsigned char ticketIndex, const unsigned char priceUnit) const
 
bool GetPaymentType (const unsigned char ticketIndex, unsigned char &paymentType) const
 
bool SetPaymentType (const unsigned char ticketIndex, const unsigned char paymentType) const
 
bool GetValidityStartTime (const unsigned char ticketIndex, unsigned long &validityStartTime) const
 
bool SetValidityStartTime (const unsigned char ticketIndex, const unsigned long validityFrom) const
 
bool GetValidityEndTime (const unsigned char ticketIndex, unsigned long &validityEndTime) const
 
bool SetValidityEndTime (const unsigned char ticketIndex, const unsigned long validityTo) const
 
bool GetRestrictDayOfWeek (const unsigned char ticketIndex, unsigned char &restrictDayOfWeek) const
 
bool SetRestrictDayOfWeek (const unsigned char ticketIndex, const unsigned char restrictDayOfWeek) const
 
bool GetProvider (const unsigned char ticketIndex, short &providerNumber) const
 
bool SetProvider (const unsigned char ticketIndex, const short providerNumber) const
 
bool GetTimeTicketNumber (const unsigned char ticketIndex, unsigned short &timeTicketNumber) const
 
bool SetTimeTicketNumber (const unsigned char ticketIndexunsigned, const unsigned short timeTicketNumber) const
 
bool GetTimeTicketPreviousNumber (const unsigned char ticketIndex, unsigned short &timeTicketNumber) const
 
bool SetTimeTicketPreviousNumber (const unsigned char ticketIndex, const unsigned short timeTicketNumber) const
 
bool GetPriceListRowNumber (const unsigned char ticketIndex, unsigned short &priceListRowNumber) const
 
bool SetPriceListRowNumber (const unsigned char ticketIndex, const unsigned short priceListRowNumber) const
 
bool GetAvailableJourneyCount (const unsigned char ticketIndex, unsigned short &availableJourneyCount) const
 
bool SetAvailableJourneyCount (const unsigned char ticketIndex, const unsigned short availableJourneyCount) const
 
bool GetJourneyCount (const unsigned short ticketIndex, unsigned short &journeyCount) const
 
bool SetJourneyCount (const unsigned char ticketIndex, const unsigned short journeyCount) const
 
bool GetTicketType (const unsigned char ticketIndex, ECardFacadeDefines::TimeTicketType &ticketType) const
 
bool SetTicketType (const unsigned char ticketIndex, const ECardFacadeDefines::TimeTicketType ticketType) const
 
bool SetZoneSize (const unsigned char ticketIndex, const unsigned char zoneSize) const
 
bool GetCheckInZone (const unsigned char ticketIndex, unsigned short &checkinZone) const
 
bool SetCheckInZone (const unsigned char ticketIndex, const unsigned short checkinZone) const
 
bool GetCheckOutZone (const unsigned char ticketIndex, unsigned short &checkoutZone) const
 
bool SetCheckOutZone (const unsigned char ticketIndex, const unsigned short checkOutZone) const
 
bool GetZoneList (const unsigned char ticketIndex, std::list< unsigned long > &zoneList) const
 
bool SetZoneList (const unsigned char ticketIndex, const std::list< unsigned long > &zoneList) const
 
bool GetZoneBitCollection (const unsigned char ticketIndex, std::vector< unsigned char > &bitCollection) const
 GetZoneBitCollection - Function return zones bit field as byte collection. More...
 
bool SetZoneBitCollection (const unsigned char ticketIndex, const std::vector< unsigned char > &bitCollection) const
 SetZoneBitCollection - Function byte collection to TimeTicket as byte field. More...
 
bool GetRouteNumber (const unsigned char ticketIndex, unsigned short &routeNumber) const
 
bool SetRouteNumber (const unsigned char ticketIndex, const unsigned short routeNumber) const
 
bool GetUrbanTransportIdentificationNumber (const unsigned char ticketIndex, long &urbanTransportIdentificationNumber) const
 
bool SetUrbanTransportIdentificationNumber (const unsigned char ticketIndex, const long urbanTransport) const
 
bool GetCountryCode (const unsigned char ticketIndex, unsigned short &countryCodeInBCD) const
 
bool SetCountryCode (const unsigned char ticketIndex, const unsigned short countryCodeInBCD) const
 
bool GetNetworkCode (const unsigned char ticketIndex, unsigned short &networkCodeInBCD) const
 
bool SetNetworkCode (const unsigned char ticketIndex, const unsigned short networkCodeInBCD) const
 
bool GetActivationFlag (const unsigned char ticketIndex, bool &activationFlag) const
 GetActivationFlag - Function retrun flag on timet ticket - activation. More...
 
bool SetActivationFlag (const unsigned char ticketIndex, const bool activationFlag) const
 SetActivationFlag - Function set flag on timet ticket - activation. More...
 
bool IsHourTimeTicket (const unsigned char ticketIndex, bool &hourTimeTicketFlag) const
 IsHourTimeTicket - Check time ticket type whether ticket type is TYPE_TIME_TICKET_24_HOUR. More...
 
bool GetFileNumber (const unsigned char ticketIndex, unsigned long &fileNumber) const
 GetFileNumber get file number by ticketIndex. More...
 
bool SetFileNumber (const unsigned char ticketIndex, const unsigned long fileNumber) const
 SetFileNumber set file number by ticketIndex. More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::TimeTicketCardFeatures feature, bool &enabled) const
 
bool IsTimeTicketFeatureEnabled (const ECardFacadeDefines::TimeTicketFeatures feature, unsigned char ticketIndex, bool &enabled) const
 IsTimeTicketFeatureEnabled. More...
 
bool GetDeviceSNR (const unsigned char ticketIndex, unsigned long &snr) const
 
bool SetDeviceSNR (const unsigned char ticketIndex, const unsigned long snr) const
 
bool GetDriverNumber (const unsigned char ticketIndex, unsigned long &driverNumber) const
 
bool SetDriverNumber (const unsigned char ticketIndex, const unsigned long driverNumber) const
 
bool SetUrbanTransportFlag (const unsigned char ticketIndex, const bool isUrbanTransportEnabled) const
 SetUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures. More...
 
bool SetSubUrbanTransportFlag (const unsigned char ticketIndex, const bool isSuburbanTransportEnabled) const
 SetSubUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures. More...
 
bool SetCouponRestrictCode (const unsigned char ticketIndex, const unsigned char couponRestrictCode) const
 
bool GetCouponRestrictCode (const unsigned char ticketIndex, unsigned char &couponRestrictCode) const
 
bool GetCouponKilometers (const unsigned char ticketIndex, unsigned char &couponKilometers) const
 GetCouponKilometers. More...
 
bool SetCouponKilometers (const unsigned char ticketIndex, const unsigned char couponKilometers) const
 SetCouponKilometers. More...
 
bool GetRestrictLineType (const unsigned char ticketIndex, unsigned char &couponRestrictLineType) const
 GetRestrictLineType. More...
 
bool SetRestrictLineType (const unsigned char ticketIndex, const unsigned char couponRestrictLineType)
 SetRestrictLineType. More...
 
bool GetFlagIsIdsCoupon (const unsigned char ticketIndex, bool &isIdsCoupon) const
 GetFlagIsIdsCoupon. More...
 
bool SetFlagIsIdsCoupon (const unsigned char ticketIndex, const bool isIdsCoupon)
 SetFlagIsIdsCoupon. More...
 
bool GetIndexOfPairedTimeTicket (const unsigned char ticketIndex, unsigned char &indexOfPairedTimeTicket) const
 Gets index of paired time ticket. Paired time ticket is special case of sharing data between time tickets. Emtest mifare structures supports sharing data between two time tickets( called Twin time ticket ). More...
 
bool GetFlagIsBaggageTicket (const unsigned char ticketIndex, bool &baggageTicket)
 GetFlagIsBaggageTicket. More...
 
bool SetFlagIsBaggageTicket (const unsigned char ticketIndex, bool baggageTicket)
 SetFlagIsBaggageTicket. More...
 
unsigned short GetRequiredDataReadOperation () const
 
bool CreateSnapshotData (const unsigned char ticketIndex, std::string &data)
 CreateSnapshotData - serializes ticket on specified position and returns serialized data of ticket in base64 format. More...
 
bool FillFromSnapshot (const unsigned char ticketIndex, const std::string &data)
 FillFromSnapshot - deserializes ticket data (in base64 format) into time ticket on specified position. More...
 
 ECardDataFacadeTimeTicket (ECardDataStorage *cardDataStorage)
 
virtual ~ECardDataFacadeTimeTicket ()
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
bool GetAvailableTimeTicketSlots (short &timeTicketsSlots) const
 return count of all time ticket slots on card ( max Time Tickets) More...
 
bool GetTimeTicketsCount (short &timeTicketsCount) const
 
bool SetTimeTicketsCount (const short timeTicketsCount) const
 
bool IsTimeTicketValid (const unsigned char ticketIndex, bool &valid) const
 
bool SetTimeTicketValid (const unsigned char ticketIndex, const bool valid) const
 
bool GetTariffTicketNumber (const unsigned char ticketIndex, unsigned short &tariffTicketNumber) const
 
bool SetTariffTicketNumber (const unsigned char ticketIndex, const unsigned short tariffTicketNumber) const
 
bool GetTicketTariffProfile (const unsigned char ticketIndex, unsigned char &tariffProfile) const
 
bool SetTicketTariffProfile (const unsigned char ticketIndex, const unsigned char tariffProfile) const
 
bool GetTicketCustomerProfile (const unsigned char ticketIndex, unsigned char &customerProfile) const
 
bool SetTicketCustomerProfile (const unsigned char ticketIndex, const unsigned char customerProfile) const
 
bool GetPrice (const unsigned char ticketIndex, EMoneyData &price) const
 
bool SetPrice (const unsigned char ticketIndex, const EMoneyData &price) const
 
bool GetPriceUnit (const unsigned char ticketIndex, unsigned char &priceUnit) const
 
bool SetPriceUnit (const unsigned char ticketIndex, const unsigned char priceUnit) const
 
bool GetPaymentType (const unsigned char ticketIndex, unsigned char &paymentType) const
 
bool SetPaymentType (const unsigned char ticketIndex, const unsigned char paymentType) const
 
bool GetValidityStartTime (const unsigned char ticketIndex, unsigned long &validityStartTime) const
 
bool SetValidityStartTime (const unsigned char ticketIndex, const unsigned long validityFrom) const
 
bool GetValidityEndTime (const unsigned char ticketIndex, unsigned long &validityEndTime) const
 
bool SetValidityEndTime (const unsigned char ticketIndex, const unsigned long validityTo) const
 
bool GetRestrictDayOfWeek (const unsigned char ticketIndex, unsigned char &restrictDayOfWeek) const
 
bool SetRestrictDayOfWeek (const unsigned char ticketIndex, const unsigned char restrictDayOfWeek) const
 
bool GetProvider (const unsigned char ticketIndex, short &providerNumber) const
 
bool SetProvider (const unsigned char ticketIndex, const short providerNumber) const
 
bool GetTimeTicketNumber (const unsigned char ticketIndex, unsigned short &timeTicketNumber) const
 
bool SetTimeTicketNumber (const unsigned char ticketIndexunsigned, const unsigned short timeTicketNumber) const
 
bool GetTimeTicketPreviousNumber (const unsigned char ticketIndex, unsigned short &timeTicketNumber) const
 
bool SetTimeTicketPreviousNumber (const unsigned char ticketIndex, const unsigned short timeTicketNumber) const
 
bool GetPriceListRowNumber (const unsigned char ticketIndex, unsigned short &priceListRowNumber) const
 
bool SetPriceListRowNumber (const unsigned char ticketIndex, const unsigned short priceListRowNumber) const
 
bool GetAvailableJourneyCount (const unsigned char ticketIndex, unsigned short &availableJourneyCount) const
 
bool SetAvailableJourneyCount (const unsigned char ticketIndex, const unsigned short availableJourneyCount) const
 
bool GetJourneyCount (const unsigned short ticketIndex, unsigned short &journeyCount) const
 
bool SetJourneyCount (const unsigned char ticketIndex, const unsigned short journeyCount) const
 
bool GetTicketType (const unsigned char ticketIndex, ECardFacadeDefines::TimeTicketType &ticketType) const
 
bool SetTicketType (const unsigned char ticketIndex, const ECardFacadeDefines::TimeTicketType ticketType) const
 
bool SetZoneSize (const unsigned char ticketIndex, const unsigned char zoneSize) const
 
bool GetCheckInZone (const unsigned char ticketIndex, unsigned short &checkinZone) const
 
bool SetCheckInZone (const unsigned char ticketIndex, const unsigned short checkinZone) const
 
bool GetCheckOutZone (const unsigned char ticketIndex, unsigned short &checkoutZone) const
 
bool SetCheckOutZone (const unsigned char ticketIndex, const unsigned short checkOutZone) const
 
bool GetZoneList (const unsigned char ticketIndex, std::list< unsigned long > &zoneList) const
 
bool SetZoneList (const unsigned char ticketIndex, const std::list< unsigned long > &zoneList) const
 
bool GetZoneBitCollection (const unsigned char ticketIndex, std::vector< unsigned char > &bitCollection) const
 GetZoneBitCollection - Function return zones bit field as byte collection. More...
 
bool SetZoneBitCollection (const unsigned char ticketIndex, const std::vector< unsigned char > &bitCollection) const
 SetZoneBitCollection - Function byte collection to TimeTicket as byte field. More...
 
bool GetRouteNumber (const unsigned char ticketIndex, unsigned short &routeNumber) const
 
bool SetRouteNumber (const unsigned char ticketIndex, const unsigned short routeNumber) const
 
bool GetUrbanTransportIdentificationNumber (const unsigned char ticketIndex, long &urbanTransportIdentificationNumber) const
 
bool SetUrbanTransportIdentificationNumber (const unsigned char ticketIndex, const long urbanTransport) const
 
bool GetCountryCode (const unsigned char ticketIndex, unsigned short &countryCodeInBCD) const
 
bool SetCountryCode (const unsigned char ticketIndex, const unsigned short countryCodeInBCD) const
 
bool GetNetworkCode (const unsigned char ticketIndex, unsigned short &networkCodeInBCD) const
 
bool SetNetworkCode (const unsigned char ticketIndex, const unsigned short networkCodeInBCD) const
 
bool GetActivationFlag (const unsigned char ticketIndex, bool &activationFlag) const
 GetActivationFlag - Function retrun flag on timet ticket - activation. More...
 
bool SetActivationFlag (const unsigned char ticketIndex, const bool activationFlag) const
 SetActivationFlag - Function set flag on timet ticket - activation. More...
 
bool IsHourTimeTicket (const unsigned char ticketIndex, bool &hourTimeTicketFlag) const
 IsHourTimeTicket - Check time ticket type whether ticket type is TYPE_TIME_TICKET_24_HOUR. More...
 
bool GetFileNumber (const unsigned char ticketIndex, unsigned long &fileNumber) const
 GetFileNumber get file number by ticketIndex. More...
 
bool SetFileNumber (const unsigned char ticketIndex, const unsigned long fileNumber) const
 SetFileNumber set file number by ticketIndex. More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::TimeTicketCardFeatures feature, bool &enabled) const
 
bool IsTimeTicketFeatureEnabled (const ECardFacadeDefines::TimeTicketFeatures feature, unsigned char ticketIndex, bool &enabled) const
 IsTimeTicketFeatureEnabled. More...
 
bool GetDeviceSNR (const unsigned char ticketIndex, unsigned long &snr) const
 
bool SetDeviceSNR (const unsigned char ticketIndex, const unsigned long snr) const
 
bool GetDriverNumber (const unsigned char ticketIndex, unsigned long &driverNumber) const
 
bool SetDriverNumber (const unsigned char ticketIndex, const unsigned long driverNumber) const
 
bool SetUrbanTransportFlag (const unsigned char ticketIndex, const bool isUrbanTransportEnabled) const
 SetUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures. More...
 
bool SetSubUrbanTransportFlag (const unsigned char ticketIndex, const bool isSuburbanTransportEnabled) const
 SetSubUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures. More...
 
bool SetCouponRestrictCode (const unsigned char ticketIndex, const unsigned char couponRestrictCode) const
 
bool GetCouponRestrictCode (const unsigned char ticketIndex, unsigned char &couponRestrictCode) const
 
bool GetCouponKilometers (const unsigned char ticketIndex, unsigned char &couponKilometers) const
 GetCouponKilometers. More...
 
bool SetCouponKilometers (const unsigned char ticketIndex, const unsigned char couponKilometers) const
 SetCouponKilometers. More...
 
bool GetRestrictLineType (const unsigned char ticketIndex, unsigned char &couponRestrictLineType) const
 GetRestrictLineType. More...
 
bool SetRestrictLineType (const unsigned char ticketIndex, const unsigned char couponRestrictLineType)
 SetRestrictLineType. More...
 
bool GetFlagIsIdsCoupon (const unsigned char ticketIndex, bool &isIdsCoupon) const
 GetFlagIsIdsCoupon. More...
 
bool SetFlagIsIdsCoupon (const unsigned char ticketIndex, const bool isIdsCoupon)
 SetFlagIsIdsCoupon. More...
 
bool GetIndexOfPairedTimeTicket (const unsigned char ticketIndex, unsigned char &indexOfPairedTimeTicket) const
 Gets index of paired time ticket. Paired time ticket is special case of sharing data between time tickets. Emtest mifare structures supports sharing data between two time tickets( called Twin time ticket ). More...
 
bool GetFlagIsBaggageTicket (const unsigned char ticketIndex, bool &baggageTicket)
 GetFlagIsBaggageTicket. More...
 
bool SetFlagIsBaggageTicket (const unsigned char ticketIndex, bool baggageTicket)
 SetFlagIsBaggageTicket. More...
 
unsigned short GetRequiredDataReadOperation () const
 
bool CreateSnapshotData (const unsigned char ticketIndex, std::string &data)
 CreateSnapshotData - serializes ticket on specified position and returns serialized data of ticket in base64 format. More...
 
bool FillFromSnapshot (const unsigned char ticketIndex, const std::string &data)
 FillFromSnapshot - deserializes ticket data (in base64 format) into time ticket on specified position. More...
 

Constructor & Destructor Documentation

INTERNAL ECardDataFacadeTimeTicket::ECardDataFacadeTimeTicket ( ECardDataStorage cardDataStorage)

CONSTRUCTOR

ECardDataFacadeTimeTicket::~ECardDataFacadeTimeTicket ( )
virtual

DESTRUCTOR

EM::CardFacade::ECardDataFacadeTimeTicket::ECardDataFacadeTimeTicket ( ECardDataStorage cardDataStorage)
virtual EM::CardFacade::ECardDataFacadeTimeTicket::~ECardDataFacadeTimeTicket ( )
virtual

Member Function Documentation

bool EM::CardFacade::ECardDataFacadeTimeTicket::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeTimeTicket::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeTimeTicket::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeTimeTicket::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
void EM::CardFacade::ECardDataFacadeTimeTicket::Clear ( )

clear all data

void ECardDataFacadeTimeTicket::Clear ( )

clear all data

bool ECardDataFacadeTimeTicket::CreateSnapshotData ( const unsigned char  ticketIndex,
std::string &  data 
)

CreateSnapshotData - serializes ticket on specified position and returns serialized data of ticket in base64 format.

Parameters
ticketIndex- index of ticket to be serialized
data- output parameter where data of ticket will be stored (in base64 format)
Returns
false if error occurred, true on success
bool EM::CardFacade::ECardDataFacadeTimeTicket::CreateSnapshotData ( const unsigned char  ticketIndex,
std::string &  data 
)

CreateSnapshotData - serializes ticket on specified position and returns serialized data of ticket in base64 format.

Parameters
ticketIndex- index of ticket to be serialized
data- output parameter where data of ticket will be stored (in base64 format)
Returns
false if error occurred, true on success
bool ECardDataFacadeTimeTicket::FillFromSnapshot ( const unsigned char  ticketIndex,
const std::string &  data 
)

FillFromSnapshot - deserializes ticket data (in base64 format) into time ticket on specified position.

Parameters
ticketIndex- index of ticket to be set (deserialized)
data- serialized ticket data in base64 format
Returns
false if error occurred, true on success

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::FillFromSnapshot ( const unsigned char  ticketIndex,
const std::string &  data 
)

FillFromSnapshot - deserializes ticket data (in base64 format) into time ticket on specified position.

Parameters
ticketIndex- index of ticket to be set (deserialized)
data- serialized ticket data in base64 format
Returns
false if error occurred, true on success
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetActivationFlag ( const unsigned char  ticketIndex,
bool &  activationFlag 
) const

GetActivationFlag - Function retrun flag on timet ticket - activation.

Parameters
activationFlag- time ticket activation flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetActivationFlag ( const unsigned char  ticketIndex,
bool &  activationFlag 
) const

GetActivationFlag - Function retrun flag on timet ticket - activation.

Parameters
activationFlag- time ticket activation flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetAvailableJourneyCount ( const unsigned char  ticketIndex,
unsigned short &  availableJourneyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
availableJourneyCount- return by reference available journey count
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetAvailableJourneyCount ( const unsigned char  ticketIndex,
unsigned short &  availableJourneyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
availableJourneyCount- return by reference available journey count
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetAvailableTimeTicketSlots ( short &  timeTicketsSlots) const

return count of all time ticket slots on card ( max Time Tickets)

Parameters
timeTicketsSlots- return by reference time tickets slots
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetAvailableTimeTicketSlots ( short &  timeTicketsSlots) const

return count of all time ticket slots on card ( max Time Tickets)

Parameters
timeTicketsSlots- return by reference time tickets slots
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetCheckInZone ( const unsigned char  ticketIndex,
unsigned short &  checkinZone 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
checkinZone- return by reference checkin zone
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetCheckInZone ( const unsigned char  ticketIndex,
unsigned short &  checkinZone 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
checkinZone- return by reference checkin zone
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetCheckOutZone ( const unsigned char  ticketIndex,
unsigned short &  checkoutZone 
) const
Parameters
checkoutZone- return by reference checkout zone
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetCheckOutZone ( const unsigned char  ticketIndex,
unsigned short &  checkoutZone 
) const
Parameters
checkoutZone- return by reference checkout zone
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetCountryCode ( const unsigned char  ticketIndex,
unsigned short &  countryCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
countryCodeInBCD- return by reference ISO contry code
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetCountryCode ( const unsigned char  ticketIndex,
unsigned short &  countryCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
countryCodeInBCD- return by reference ISO contry code
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::GetCouponKilometers ( const unsigned char  ticketIndex,
unsigned char &  couponKilometers 
) const

GetCouponKilometers.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponKilometers- number of kilometers
Returns
true - successfully ended
false - end with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetCouponKilometers ( const unsigned char  ticketIndex,
unsigned char &  couponKilometers 
) const

GetCouponKilometers.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponKilometers- number of kilometers
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::GetCouponRestrictCode ( const unsigned char  ticketIndex,
unsigned char &  couponRestrictCode 
) const
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetCouponRestrictCode ( const unsigned char  ticketIndex,
unsigned char &  couponRestrictCode 
) const
bool ECardDataFacadeTimeTicket::GetDeviceSNR ( const unsigned char  ticketIndex,
unsigned long &  snr 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
snr- (returned by reference) SNR of device where ticket was selled
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetDeviceSNR ( const unsigned char  ticketIndex,
unsigned long &  snr 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
snr- (returned by reference) SNR of device where ticket was selled
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetDriverNumber ( const unsigned char  ticketIndex,
unsigned long &  driverNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
driverNumber- (returned by reference) number of driver of bus where ticket was selled
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetDriverNumber ( const unsigned char  ticketIndex,
unsigned long &  driverNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
driverNumber- (returned by reference) number of driver of bus where ticket was selled
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetFileNumber ( const unsigned char  ticketIndex,
unsigned long &  fileNumber 
) const

GetFileNumber get file number by ticketIndex.

Parameters
fileNumber- output param - time ticket file number
bool ECardDataFacadeTimeTicket::GetFileNumber ( const unsigned char  ticketIndex,
unsigned long &  fileNumber 
) const

GetFileNumber get file number by ticketIndex.

Parameters
fileNumber- output param - time ticket file number

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::GetFlagIsBaggageTicket ( const unsigned char  ticketIndex,
bool &  baggageTicket 
)

GetFlagIsBaggageTicket.

Parameters
ticketIndex- index of time ticket in collection
baggageTicket- flag indicating it's baggage ticket
Returns
true - successfully ended
false - end with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetFlagIsBaggageTicket ( const unsigned char  ticketIndex,
bool &  baggageTicket 
)

GetFlagIsBaggageTicket.

Parameters
ticketIndex- index of time ticket in collection
baggageTicket- flag indicating it's baggage ticket
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::GetFlagIsIdsCoupon ( const unsigned char  ticketIndex,
bool &  isIdsCoupon 
) const

GetFlagIsIdsCoupon.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
isIdsCoupon- flag specifying if it's IDS coupon or not
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetFlagIsIdsCoupon ( const unsigned char  ticketIndex,
bool &  isIdsCoupon 
) const

GetFlagIsIdsCoupon.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
isIdsCoupon- flag specifying if it's IDS coupon or not
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::GetIndexOfPairedTimeTicket ( const unsigned char  ticketIndex,
unsigned char &  indexOfPairedTimeTicket 
) const

Gets index of paired time ticket. Paired time ticket is special case of sharing data between time tickets. Emtest mifare structures supports sharing data between two time tickets( called Twin time ticket ).

Note
this functionality is supported only for Emtest mifare structures

Shared data between paired time tickets:

  • Tariff ticket number - ETimeTicketEmtestBase::GetTariffTicketNumber
  • Time ticket type - ETimeTicketEmtestBase::GetTypMesacnika
  • Tariff number - ETimeTicketEmtestBase::GetTarifa
  • Valid from - ETimeTicketEmtestBase::SetPlatiOd
  • Valid to - ETimeTicketEmtestBase::SetPlatiDo
  • Euro pay unit - ETimeTicketEmtestBase::IsEuroPayUnit
  • activation flag - ETimeTicketEmtestBase::Activate
  • price - ETimeTicketEmtestBase::GetCena
  • journey counter - ETimeTicketEmtest::GetPocetJazd
Parameters
ticketIndex- index of time ticket in collection
indexOfPairedTimeTicket- value 0 - no valid paired time ticket
indexOfPairedTimeTicket- value != 0 - Time ticket that share data with other time ticket
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetIndexOfPairedTimeTicket ( const unsigned char  ticketIndex,
unsigned char &  indexOfPairedTimeTicket 
) const

Gets index of paired time ticket. Paired time ticket is special case of sharing data between time tickets. Emtest mifare structures supports sharing data between two time tickets( called Twin time ticket ).

Note
this functionality is supported only for Emtest mifare structures

Shared data between paired time tickets:

  • Tariff ticket number - ETimeTicketEmtestBase::GetTariffTicketNumber
  • Time ticket type - ETimeTicketEmtestBase::GetTypMesacnika
  • Tariff number - ETimeTicketEmtestBase::GetTarifa
  • Valid from - ETimeTicketEmtestBase::SetPlatiOd
  • Valid to - ETimeTicketEmtestBase::SetPlatiDo
  • Euro pay unit - ETimeTicketEmtestBase::IsEuroPayUnit
  • activation flag - ETimeTicketEmtestBase::Activate
  • price - ETimeTicketEmtestBase::GetCena
  • journey counter - ETimeTicketEmtest::GetPocetJazd
Parameters
ticketIndex- index of time ticket in collection
indexOfPairedTimeTicket- value 0 - no valid paired time ticket
indexOfPairedTimeTicket- value != 0 - Time ticket that share data with other time ticket
bool ECardDataFacadeTimeTicket::GetJourneyCount ( const unsigned short  ticketIndex,
unsigned short &  journeyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
journeyCount- return by reference journey count - every journey increment this flag
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetJourneyCount ( const unsigned short  ticketIndex,
unsigned short &  journeyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
journeyCount- return by reference journey count - every journey increment this flag
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetNetworkCode ( const unsigned char  ticketIndex,
unsigned short &  networkCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
network- return by reference coupon network code in BCD format
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetNetworkCode ( const unsigned char  ticketIndex,
unsigned short &  networkCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
network- return by reference coupon network code in BCD format
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::GetPaymentType ( const unsigned char  ticketIndex,
unsigned char &  paymentType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
paymentType- return by reference payment type
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetPaymentType ( const unsigned char  ticketIndex,
unsigned char &  paymentType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
paymentType- return by reference payment type
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetPrice ( const unsigned char  ticketIndex,
EMoneyData &  price 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
price- return by reference price integer representation ( check also coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetPrice ( const unsigned char  ticketIndex,
EMoneyData &  price 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
price- return by reference price integer representation ( check also coeficient )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetPriceListRowNumber ( const unsigned char  ticketIndex,
unsigned short &  priceListRowNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket price list row number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetPriceListRowNumber ( const unsigned char  ticketIndex,
unsigned short &  priceListRowNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket price list row number
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetPriceUnit ( const unsigned char  ticketIndex,
unsigned char &  priceUnit 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
priceUnit-returns card coeficient of price ( check also data coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetPriceUnit ( const unsigned char  ticketIndex,
unsigned char &  priceUnit 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
priceUnit-returns card coeficient of price ( check also data coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetProvider ( const unsigned char  ticketIndex,
short &  providerNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
providerNumber- return by reference time ticket's provider number
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetProvider ( const unsigned char  ticketIndex,
short &  providerNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
providerNumber- return by reference time ticket's provider number
Returns
true - successfully ended false - ended with error
unsigned short EM::CardFacade::ECardDataFacadeTimeTicket::GetRequiredDataReadOperation ( ) const
unsigned short ECardDataFacadeTimeTicket::GetRequiredDataReadOperation ( ) const

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::GetRestrictDayOfWeek ( const unsigned char  ticketIndex,
unsigned char &  restrictDayOfWeek 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
restrictDayOfWeek- returns daily restrictions of ticket ( bit oriented, check also validity in input data )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetRestrictDayOfWeek ( const unsigned char  ticketIndex,
unsigned char &  restrictDayOfWeek 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
restrictDayOfWeek- returns daily restrictions of ticket ( bit oriented, check also validity in input data )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetRestrictLineType ( const unsigned char  ticketIndex,
unsigned char &  couponRestrictLineType 
) const

GetRestrictLineType.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponRestrictLineType- coupon restrict line type
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetRestrictLineType ( const unsigned char  ticketIndex,
unsigned char &  couponRestrictLineType 
) const

GetRestrictLineType.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponRestrictLineType- coupon restrict line type
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetRouteNumber ( const unsigned char  ticketIndex,
unsigned short &  routeNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
routeNumber- (returned by reference) route number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetRouteNumber ( const unsigned char  ticketIndex,
unsigned short &  routeNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
routeNumber- (returned by reference) route number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTariffTicketNumber ( const unsigned char  ticketIndex,
unsigned short &  tariffTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
tariffTicketNumber- return by reference tariff ticket number

Flag is supported on card medium( other support CP/TP

See also
GetTariffTicketNumber
GetTicketCustomerProfile ):
  • EMTEST Desfire
  • EMTEST Mifare
  • Mifare Micro1
  • Mifare Micro2
Returns
true - supported card medium, false otherwise
bool ECardDataFacadeTimeTicket::GetTariffTicketNumber ( const unsigned char  ticketIndex,
unsigned short &  tariffTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
tariffTicketNumber- return by reference tariff ticket number

Flag is supported on card medium( other support CP/TP

See also
GetTariffTicketNumber
GetTicketCustomerProfile ):
  • EMTEST Desfire
  • EMTEST Mifare
  • Mifare Micro1
  • Mifare Micro2
Returns
true - supported card medium, false otherwise
bool ECardDataFacadeTimeTicket::GetTicketCustomerProfile ( const unsigned char  ticketIndex,
unsigned char &  customerProfile 
) const
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTicketCustomerProfile ( const unsigned char  ticketIndex,
unsigned char &  customerProfile 
) const
bool ECardDataFacadeTimeTicket::GetTicketTariffProfile ( const unsigned char  ticketIndex,
unsigned char &  tariffProfile 
) const
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTicketTariffProfile ( const unsigned char  ticketIndex,
unsigned char &  tariffProfile 
) const
bool ECardDataFacadeTimeTicket::GetTicketType ( const unsigned char  ticketIndex,
ECardFacadeDefines::TimeTicketType ticketType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
ticketType- return by reference ticke type
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTicketType ( const unsigned char  ticketIndex,
ECardFacadeDefines::TimeTicketType ticketType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
ticketType- return by reference ticke type
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetTimeTicketNumber ( const unsigned char  ticketIndex,
unsigned short &  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket number
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTimeTicketNumber ( const unsigned char  ticketIndex,
unsigned short &  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetTimeTicketPreviousNumber ( const unsigned char  ticketIndex,
unsigned short &  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket previous number
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTimeTicketPreviousNumber ( const unsigned char  ticketIndex,
unsigned short &  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeTicketNumber- return by reference time ticket previous number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetTimeTicketsCount ( short &  timeTicketsCount) const
Parameters
timeTicketsCount- return by reference time tickets count
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetTimeTicketsCount ( short &  timeTicketsCount) const
Parameters
timeTicketsCount- return by reference time tickets count
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetUrbanTransportIdentificationNumber ( const unsigned char  ticketIndex,
long &  urbanTransportIdentificationNumber 
) const
Parameters
urbanTransportIdentificationNumber- return by reference urban transport identification number
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetUrbanTransportIdentificationNumber ( const unsigned char  ticketIndex,
long &  urbanTransportIdentificationNumber 
) const
Parameters
urbanTransportIdentificationNumber- return by reference urban transport identification number
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetValidityEndTime ( const unsigned char  ticketIndex,
unsigned long &  validityEndTime 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityEndTime- return by reference time ticket validity to - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetValidityEndTime ( const unsigned char  ticketIndex,
unsigned long &  validityEndTime 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityEndTime- return by reference time ticket validity to - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::GetValidityStartTime ( const unsigned char  ticketIndex,
unsigned long &  validityStartTime 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityStartTimetime- return by reference ticket validity from - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetValidityStartTime ( const unsigned char  ticketIndex,
unsigned long &  validityStartTime 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityStartTimetime- return by reference ticket validity from - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::GetZoneBitCollection ( const unsigned char  ticketIndex,
std::vector< unsigned char > &  bitCollection 
) const

GetZoneBitCollection - Function return zones bit field as byte collection.

Parameters
ticketIndex- time ticket index
bitCollection- zones byte collection
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetZoneBitCollection ( const unsigned char  ticketIndex,
std::vector< unsigned char > &  bitCollection 
) const

GetZoneBitCollection - Function return zones bit field as byte collection.

Parameters
ticketIndex- time ticket index
bitCollection- zones byte collection
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::GetZoneList ( const unsigned char  ticketIndex,
std::list< unsigned long > &  zoneList 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
zoneList- (returned by reference) list of via zones
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::GetZoneList ( const unsigned char  ticketIndex,
std::list< unsigned long > &  zoneList 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
zoneList- (returned by reference) list of via zones
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

ECardFacadeDefines::ReturnValues ECardDataFacadeTimeTicket::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
ECardFacadeDefines::ReturnValues EM::CardFacade::ECardDataFacadeTimeTicket::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
bool ECardDataFacadeTimeTicket::IsCardFeatureEnabled ( const ECardFacadeDefines::TimeTicketCardFeatures  feature,
bool &  enabled 
) const

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::IsCardFeatureEnabled ( const ECardFacadeDefines::TimeTicketCardFeatures  feature,
bool &  enabled 
) const
bool EM::CardFacade::ECardDataFacadeTimeTicket::IsHourTimeTicket ( const unsigned char  ticketIndex,
bool &  hourTimeTicketFlag 
) const

IsHourTimeTicket - Check time ticket type whether ticket type is TYPE_TIME_TICKET_24_HOUR.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::IsHourTimeTicket ( const unsigned char  ticketIndex,
bool &  hourTimeTicketFlag 
) const

IsHourTimeTicket - Check time ticket type whether ticket type is TYPE_TIME_TICKET_24_HOUR.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool ECardDataFacadeTimeTicket::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool ECardDataFacadeTimeTicket::IsTimeTicketFeatureEnabled ( const ECardFacadeDefines::TimeTicketFeatures  feature,
unsigned char  ticketIndex,
bool &  enabled 
) const

IsTimeTicketFeatureEnabled.

Parameters
feature- from ECardFacadeDefines enum time ticket features
ticketIndex- index of time ticket
enabled- true if feature is enabled, otherwise false
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::IsTimeTicketFeatureEnabled ( const ECardFacadeDefines::TimeTicketFeatures  feature,
unsigned char  ticketIndex,
bool &  enabled 
) const

IsTimeTicketFeatureEnabled.

Parameters
feature- from ECardFacadeDefines enum time ticket features
ticketIndex- index of time ticket
enabled- true if feature is enabled, otherwise false
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeTimeTicket::IsTimeTicketValid ( const unsigned char  ticketIndex,
bool &  valid 
) const
Warning
It's not time validity! It's just checking status of time ticket
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
valid- returns whether time ticket is valid on card ( e.g. not cancelled )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::IsTimeTicketValid ( const unsigned char  ticketIndex,
bool &  valid 
) const
Warning
It's not time validity! It's just checking status of time ticket
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
valid- returns whether time ticket is valid on card ( e.g. not cancelled )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetActivationFlag ( const unsigned char  ticketIndex,
const bool  activationFlag 
) const

SetActivationFlag - Function set flag on timet ticket - activation.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetActivationFlag ( const unsigned char  ticketIndex,
const bool  activationFlag 
) const

SetActivationFlag - Function set flag on timet ticket - activation.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::SetAvailableJourneyCount ( const unsigned char  ticketIndex,
const unsigned short  availableJourneyCount 
) const
Parameters
journeyCount- new value of flag available journey count
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetAvailableJourneyCount ( const unsigned char  ticketIndex,
const unsigned short  availableJourneyCount 
) const
Parameters
journeyCount- new value of flag available journey count
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetCheckInZone ( const unsigned char  ticketIndex,
const unsigned short  checkinZone 
) const
Parameters
checkinzone - new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetCheckInZone ( const unsigned char  ticketIndex,
const unsigned short  checkinZone 
) const
Parameters
checkinzone - new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetCheckOutZone ( const unsigned char  ticketIndex,
const unsigned short  checkOutZone 
) const
Parameters
checkoutzone - set new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetCheckOutZone ( const unsigned char  ticketIndex,
const unsigned short  checkOutZone 
) const
Parameters
checkoutzone - set new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetCountryCode ( const unsigned char  ticketIndex,
const unsigned short  countryCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
countryCodeInBCD- the new value of ISO country code
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetCountryCode ( const unsigned char  ticketIndex,
const unsigned short  countryCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
countryCodeInBCD- the new value of ISO country code
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetCouponKilometers ( const unsigned char  ticketIndex,
const unsigned char  couponKilometers 
) const

SetCouponKilometers.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponKilometers- number of kilometers
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetCouponKilometers ( const unsigned char  ticketIndex,
const unsigned char  couponKilometers 
) const

SetCouponKilometers.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponKilometers- number of kilometers
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetCouponRestrictCode ( const unsigned char  ticketIndex,
const unsigned char  couponRestrictCode 
) const
Note
this functionality is supported only for TransData Desfire structures
Parameters
couponRestrictCode- value '1' for BID coupon with regional discount - Redmine Task 1563

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetCouponRestrictCode ( const unsigned char  ticketIndex,
const unsigned char  couponRestrictCode 
) const
Note
this functionality is supported only for TransData Desfire structures
Parameters
couponRestrictCode- value '1' for BID coupon with regional discount - Redmine Task 1563
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetDeviceSNR ( const unsigned char  ticketIndex,
const unsigned long  snr 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
snr- SNR of device where ticket was selled
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetDeviceSNR ( const unsigned char  ticketIndex,
const unsigned long  snr 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
snr- SNR of device where ticket was selled
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetDriverNumber ( const unsigned char  ticketIndex,
const unsigned long  driverNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
driverNumber- number of driver of bus where ticket was selled
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeTimeTicket::SetDriverNumber ( const unsigned char  ticketIndex,
const unsigned long  driverNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
driverNumber- number of driver of bus where ticket was selled
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetFileNumber ( const unsigned char  ticketIndex,
const unsigned long  fileNumber 
) const

SetFileNumber set file number by ticketIndex.

bool ECardDataFacadeTimeTicket::SetFileNumber ( const unsigned char  ticketIndex,
const unsigned long  fileNumber 
) const

SetFileNumber set file number by ticketIndex.

bool ECardDataFacadeTimeTicket::SetFlagIsBaggageTicket ( const unsigned char  ticketIndex,
bool  baggageTicket 
)

SetFlagIsBaggageTicket.

Parameters
ticketIndex- index of time ticket in collection
baggageTicket- flag indicating it's baggage ticket
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetFlagIsBaggageTicket ( const unsigned char  ticketIndex,
bool  baggageTicket 
)

SetFlagIsBaggageTicket.

Parameters
ticketIndex- index of time ticket in collection
baggageTicket- flag indicating it's baggage ticket
Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetFlagIsIdsCoupon ( const unsigned char  ticketIndex,
const bool  isIdsCoupon 
)

SetFlagIsIdsCoupon.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
isIdsCoupon- flag specifying if it's IDS coupon or not
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetFlagIsIdsCoupon ( const unsigned char  ticketIndex,
const bool  isIdsCoupon 
)

SetFlagIsIdsCoupon.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
isIdsCoupon- flag specifying if it's IDS coupon or not
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetJourneyCount ( const unsigned char  ticketIndex,
const unsigned short  journeyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
journeyCount- new value of this flag
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetJourneyCount ( const unsigned char  ticketIndex,
const unsigned short  journeyCount 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
journeyCount- new value of this flag
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetNetworkCode ( const unsigned char  ticketIndex,
const unsigned short  networkCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
networkCodeInBCD- the new value of coupon network in BCD format
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetNetworkCode ( const unsigned char  ticketIndex,
const unsigned short  networkCodeInBCD 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
networkCodeInBCD- the new value of coupon network in BCD format
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetPaymentType ( const unsigned char  ticketIndex,
const unsigned char  paymentType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
paymentType- new value of payment type
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetPaymentType ( const unsigned char  ticketIndex,
const unsigned char  paymentType 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
paymentType- new value of payment type
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetPrice ( const unsigned char  ticketIndex,
const EMoneyData &  price 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
price- new value of price integer representation ( check also coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetPrice ( const unsigned char  ticketIndex,
const EMoneyData &  price 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
price- new value of price integer representation ( check also coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetPriceListRowNumber ( const unsigned char  ticketIndex,
const unsigned short  priceListRowNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of time ticket price list row number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetPriceListRowNumber ( const unsigned char  ticketIndex,
const unsigned short  priceListRowNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of time ticket price list row number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetPriceUnit ( const unsigned char  ticketIndex,
const unsigned char  priceUnit 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
priceUnit-sets card coeficient of price ( check also data coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetPriceUnit ( const unsigned char  ticketIndex,
const unsigned char  priceUnit 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
priceUnit-sets card coeficient of price ( check also data coeficient )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetProvider ( const unsigned char  ticketIndex,
const short  providerNumber 
) const
Parameters
providerNumber- sets ticket's provider number.
Note
Value is from data input structure CompanySpecification(SetFirma).ProviderID
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetProvider ( const unsigned char  ticketIndex,
const short  providerNumber 
) const
Parameters
providerNumber- sets ticket's provider number.
Note
Value is from data input structure CompanySpecification(SetFirma).ProviderID
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetRestrictDayOfWeek ( const unsigned char  ticketIndex,
const unsigned char  restrictDayOfWeek 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
restrictDayOfWeek- sets daily restrictions of ticket ( bit oriented, check also validity in input data )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetRestrictDayOfWeek ( const unsigned char  ticketIndex,
const unsigned char  restrictDayOfWeek 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
restrictDayOfWeek- sets daily restrictions of ticket ( bit oriented, check also validity in input data )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetRestrictLineType ( const unsigned char  ticketIndex,
const unsigned char  couponRestrictLineType 
)

SetRestrictLineType.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponRestrictLineType- coupon restrict line type
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetRestrictLineType ( const unsigned char  ticketIndex,
const unsigned char  couponRestrictLineType 
)

SetRestrictLineType.

Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
couponRestrictLineType- coupon restrict line type
Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetRouteNumber ( const unsigned char  ticketIndex,
const unsigned short  routeNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
routeNumber- desired value of route number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetRouteNumber ( const unsigned char  ticketIndex,
const unsigned short  routeNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
routeNumber- desired value of route number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetSubUrbanTransportFlag ( const unsigned char  ticketIndex,
const bool  isSuburbanTransportEnabled 
) const

SetSubUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures.

Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetSubUrbanTransportFlag ( const unsigned char  ticketIndex,
const bool  isSuburbanTransportEnabled 
) const

SetSubUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures.

Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTariffTicketNumber ( const unsigned char  ticketIndex,
const unsigned short  tariffTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
tariffTicketNumber- new value of this flag

Flag is supported on card medium( other support CP/TP

See also
GetTariffTicketNumber
GetTicketCustomerProfile ):
  • EMTEST Desfire
  • EMTEST Mifare
  • Mifare Micro1
  • Mifare Micro2
Returns
true - supported card medium, false otherwise
bool ECardDataFacadeTimeTicket::SetTariffTicketNumber ( const unsigned char  ticketIndex,
const unsigned short  tariffTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
tariffTicketNumber- new value of this flag

Flag is supported on card medium( other support CP/TP

See also
GetTariffTicketNumber
GetTicketCustomerProfile ):
  • EMTEST Desfire
  • EMTEST Mifare
  • Mifare Micro1
  • Mifare Micro2
Returns
true - supported card medium, false otherwise
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTicketCustomerProfile ( const unsigned char  ticketIndex,
const unsigned char  customerProfile 
) const
bool ECardDataFacadeTimeTicket::SetTicketCustomerProfile ( const unsigned char  ticketIndex,
const unsigned char  customerProfile 
) const
bool ECardDataFacadeTimeTicket::SetTicketTariffProfile ( const unsigned char  ticketIndex,
const unsigned char  tariffProfile 
) const
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTicketTariffProfile ( const unsigned char  ticketIndex,
const unsigned char  tariffProfile 
) const
bool ECardDataFacadeTimeTicket::SetTicketType ( const unsigned char  ticketIndex,
const ECardFacadeDefines::TimeTicketType  ticketType 
) const
Parameters
ticketype- new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTicketType ( const unsigned char  ticketIndex,
const ECardFacadeDefines::TimeTicketType  ticketType 
) const
Parameters
ticketype- new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTimeTicketNumber ( const unsigned char  ticketIndexunsigned,
const unsigned short  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of flag time ticket number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetTimeTicketNumber ( const unsigned char  ticketIndexunsigned,
const unsigned short  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of flag time ticket number
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTimeTicketPreviousNumber ( const unsigned char  ticketIndex,
const unsigned short  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of flag time ticket previous number
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetTimeTicketPreviousNumber ( const unsigned char  ticketIndex,
const unsigned short  timeTicketNumber 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
timeticketnumber - new value of flag time ticket previous number
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTimeTicketsCount ( const short  timeTicketsCount) const
Parameters
timeTicketsCount- new value of flag time tickets count
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetTimeTicketsCount ( const short  timeTicketsCount) const
Parameters
timeTicketsCount- new value of flag time tickets count
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetTimeTicketValid ( const unsigned char  ticketIndex,
const bool  valid 
) const
Warning
It's not time validity! It's just setting the status of time ticket
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
valid- sets whether time ticket is valid on card ( e.g. not cancelled )
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetTimeTicketValid ( const unsigned char  ticketIndex,
const bool  valid 
) const
Warning
It's not time validity! It's just setting the status of time ticket
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
valid- sets whether time ticket is valid on card ( e.g. not cancelled )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetUrbanTransportFlag ( const unsigned char  ticketIndex,
const bool  isUrbanTransportEnabled 
) const

SetUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures.

Returns
true - successfully ended
false - end with error
bool ECardDataFacadeTimeTicket::SetUrbanTransportFlag ( const unsigned char  ticketIndex,
const bool  isUrbanTransportEnabled 
) const

SetUrbanTransportFlag - this functionality is supported only for mifare with IDOL Structures.

Returns
true - successfully ended
false - end with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetUrbanTransportIdentificationNumber ( const unsigned char  ticketIndex,
const long  urbanTransport 
) const
Parameters
urbanTrasport- new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetUrbanTransportIdentificationNumber ( const unsigned char  ticketIndex,
const long  urbanTransport 
) const
Parameters
urbanTrasport- new value of this flag
ticketIndex- index to get concrete ticket structure ( starts by 0 )
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetValidityEndTime ( const unsigned char  ticketIndex,
const unsigned long  validityTo 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityTo- time ticket validity to - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetValidityEndTime ( const unsigned char  ticketIndex,
const unsigned long  validityTo 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityTo- time ticket validity to - in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeTimeTicket::SetValidityStartTime ( const unsigned char  ticketIndex,
const unsigned long  validityFrom 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityFrom- new value of flag time ticket validity from in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetValidityStartTime ( const unsigned char  ticketIndex,
const unsigned long  validityFrom 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
validityFrom- new value of flag time ticket validity from in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeTimeTicket::SetZoneBitCollection ( const unsigned char  ticketIndex,
const std::vector< unsigned char > &  bitCollection 
) const

SetZoneBitCollection - Function byte collection to TimeTicket as byte field.

Parameters
ticketIndex- time ticket index
bitCollection- zones byte collection
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetZoneBitCollection ( const unsigned char  ticketIndex,
const std::vector< unsigned char > &  bitCollection 
) const

SetZoneBitCollection - Function byte collection to TimeTicket as byte field.

Parameters
ticketIndex- time ticket index
bitCollection- zones byte collection
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeTimeTicket::SetZoneList ( const unsigned char  ticketIndex,
const std::list< unsigned long > &  zoneList 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
zoneList- list of via zones
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetZoneList ( const unsigned char  ticketIndex,
const std::list< unsigned long > &  zoneList 
) const
Parameters
ticketIndex- index to get concrete ticket structure ( starts by 0 )
zoneList- list of via zones
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeTimeTicket::SetZoneSize ( const unsigned char  ticketIndex,
const unsigned char  zoneSize 
) const
bool ECardDataFacadeTimeTicket::SetZoneSize ( const unsigned char  ticketIndex,
const unsigned char  zoneSize 
) const

The documentation for this class was generated from the following files: