AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
EventPrepaidTicket.h File Reference
#include "appcore/cardevent/cardevent.h"
Include dependency graph for EventPrepaidTicket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 EventPrepaidTicket ()
 
 EventPrepaidTicket (EventPrepaidTicket __EVALREF source)
 
 ~EventPrepaidTicket ()
 
virtual __ESTRING GetClassName () __EOVERRIDE
 
virtual void Serialize (char *buffer) __EOVERRIDE
 
virtual void Deserialize (char *buffer) __EOVERRIDE
 
virtual int GetClassID () __EOVERRIDE
 
virtual short GetSize () __EOVERRIDE
 
virtual CardEvent __EDATAPTR Clone () __EOVERRIDE
 
unsigned char GetPrepaidTicketType ()
 
unsigned long GetValidFrom ()
 
unsigned long GetValidTo ()
 
unsigned char GetCityNumber ()
 
unsigned short GetProductID ()
 
unsigned char GetTariffZone ()
 
unsigned char GetCurrencyCode ()
 
unsigned long GetPrice ()
 
unsigned char GetCouponCounter ()
 
void SetPrepaidTicketType (unsigned char value)
 
void SetValidFrom (unsigned long value)
 
void SetValidTo (unsigned long value)
 
void SetCityNumber (unsigned char value)
 
void SetProductID (unsigned short value)
 
void SetTariffZone (unsigned char value)
 
void SetCurrencyCode (unsigned char value)
 
void SetPrice (unsigned long value)
 
void SetCouponCounter (unsigned char value)
 

Variables

__ECLASS EventPrepaidTicketPr
 
__EPUBLIC __ECLASS LIBCARDEVENT_API EventPrepaidTicket
 Ancestor of all prepaid ticket events - contains information common for prepaid tickets. More...
 

Function Documentation

virtual CardEvent __EDATAPTR Clone ( )
virtual
virtual void Deserialize ( char *  buffer)
virtual
EventPrepaidTicket ( )
EventPrepaidTicket ( EventPrepaidTicket __EVALREF  source)
unsigned char GetCityNumber ( )

Returns city number

See also
SetCityNumber
Returns
unsigned char - city number
virtual int GetClassID ( )
virtual
virtual __ESTRING GetClassName ( )
virtual
unsigned char GetCouponCounter ( )

Returns coupon counter

See also
SetCouponCounter
Returns
unsigned char - coupon counter
unsigned char GetCurrencyCode ( )

Returns currency code

See also
SetCurrencyCode
Returns
unsigned char - currency code
unsigned char GetPrepaidTicketType ( )

Returns prepaid ticket type

See also
SetPrepaidTicketType
Returns
unsigned char - type of prepaid ticket

#define PREPAIDTICKETRANGE 21 // ranged prepaid ticket #define PREPAIDTICKETZONE 22 // zone prepaid ticket #define PREPAIDTICKETZONE99 23 // 99 zone prepaid ticket

unsigned long GetPrice ( )

Returns prepaid ticket price

See also
SetPrice
Returns
unsigned long - price
unsigned short GetProductID ( )

Returns product ID (tariff ticket number)

See also
SetProductID
Returns
unsigned short - product ID
virtual short GetSize ( )
virtual
unsigned char GetTariffZone ( )

Returns tariff zone

See also
SetTariffZone
Returns
unsigned char - tariff zone
unsigned long GetValidFrom ( )

Returns prepaid ticket validity start

See also
SetValidFrom
Returns
unsigned long - prepaid ticket validity start as unix timestamp (number of seconds since January 1st, 1970)
unsigned long GetValidTo ( )

Returns prepaid ticket validity end

See also
SetValidTo
Returns
unsigned long - prepaid ticket validity end as unix timestamp (number of seconds since January 1st, 1970)
virtual void Serialize ( char *  buffer)
virtual
void SetCityNumber ( unsigned char  value)

Sets city number

See also
GetCityNumber
Parameters
value: unsigned char - city number
void SetCouponCounter ( unsigned char  value)

Sets coupon counter

See also
GetCouponCounter
Parameters
value: unsigned char - coupon counter
void SetCurrencyCode ( unsigned char  value)

Sets currency code

See also
GetCurrencyCode
Parameters
value: unsigned char - currency code
void SetPrepaidTicketType ( unsigned char  value)
protected

Sets prepaid tickets type. This is protected method because each class sets prepaid ticket type by itself and client should not be able to modify it from the outside.

See also
GetPrepaidTicketType
Parameters
value: unsigned char - prepaid ticket type
void SetPrice ( unsigned long  value)

Sets prepaid ticket price

See also
GetPrice
Parameters
value: unsigned long - price
void SetProductID ( unsigned short  value)

Sets product ID (tariff ticket number)

See also
GetProductID
Parameters
value: unsigned short - product ID
void SetTariffZone ( unsigned char  value)

Sets tariff zone

See also
GetTariffZone
Parameters
value: unsigned char - tariff zone
void SetValidFrom ( unsigned long  value)

Sets prepaid ticket validity start

See also
GetValidFrom
Parameters
value: unsigned long - prepaid ticket validity start as unix timestamp (number of seconds since January 1st, 1970)
void SetValidTo ( unsigned long  value)

Sets prepaid ticket validity end

See also
GetValidTo
Parameters
value: unsigned long - prepaid ticket validity end as unix timestamp (number of seconds since January 1st, 1970)

Variable Documentation

__EPUBLIC __ECLASS LIBCARDEVENT_API EventPrepaidTicket

Ancestor of all prepaid ticket events - contains information common for prepaid tickets.

__ECLASS EventPrepaidTicketPr