iberbox
2.1.2
|
The Subscription Info Data class. More...
Public Types | |
enum | FeatureType { FEATURE_BMAIL = 0x01, FEATURE_BACKUP = 0x02, FEATURE_CLOUD = 0x04, FEATURE_SECRETS = 0x08 } |
The Feature Type enum. More... | |
enum | SubscriptionPeriod { SP_NONE = 0, SP_MONTHLY = 1, SP_YEARLY = 2 } |
The Subscription Period enum. More... | |
Public Member Functions | |
int | getAmount () const |
Gets the fee of the subscription for the current period. More... | |
int | getDiscount () const |
Gets the discount price over the fee of the subscription for the current period. More... | |
uint32_t | getFeatures () const |
Gets account features bitmap. More... | |
int | getId () const |
Gets the identifier of the subscription. More... | |
std::string | getName () const |
Gets the name of the subscription option. More... | |
int | getPeriod () const |
Gets the subscription period. More... | |
uint64_t | getStorage () const |
Gets the contracted storage with the subscription. More... | |
int | getTotal () const |
Gets the total price of the subscription for the current period. More... | |
int | getType () const |
Gets the type of the subscription. More... | |
SubscriptionInfoData () | |
Constructs a new Subscription Info Data object. More... | |
virtual | ~SubscriptionInfoData () |
Destroys the Subscription Info Data object. More... | |
The Subscription Info Data class.
iberbox::SubscriptionInfoData::SubscriptionInfoData | ( | ) |
Constructs a new Subscription Info Data object.
|
virtual |
Destroys the Subscription Info Data object.
int iberbox::SubscriptionInfoData::getAmount | ( | ) | const |
Gets the fee of the subscription for the current period.
int iberbox::SubscriptionInfoData::getDiscount | ( | ) | const |
Gets the discount price over the fee of the subscription for the current period.
uint32_t iberbox::SubscriptionInfoData::getFeatures | ( | ) | const |
Gets account features bitmap.
int iberbox::SubscriptionInfoData::getId | ( | ) | const |
Gets the identifier of the subscription.
std::string iberbox::SubscriptionInfoData::getName | ( | ) | const |
Gets the name of the subscription option.
int iberbox::SubscriptionInfoData::getPeriod | ( | ) | const |
Gets the subscription period.
The valid period values are described by the SubscriptionPeriod enum.
uint64_t iberbox::SubscriptionInfoData::getStorage | ( | ) | const |
Gets the contracted storage with the subscription.
int iberbox::SubscriptionInfoData::getTotal | ( | ) | const |
Gets the total price of the subscription for the current period.
The total price is worked out subtracting the discount from the amount.
int iberbox::SubscriptionInfoData::getType | ( | ) | const |
Gets the type of the subscription.