Name | |
---|---|
int | getValue() |
String | toString() |
MamaSubscriptionState | getSubscriptionState(int state) |
MamaSubscriptionState | parseSubscriptionState(String state) |
String | toString(int state) |
String | toString(MamaSubscriptionState state) |
class com::wombat::mama::MamaSubscriptionState;
This class is the java equivalent of the C subscription state enumeration.
inline int getValue()
Return: The state as an integer.
Returns the integer representation of the subscription state.
inline String toString()
Return: The string representation.
This function returns the string representation of the member state.
static inline MamaSubscriptionState getSubscriptionState(
int state
)
Parameters:
Return: To return the MamaSusbscriptionState instance.
This function converts the integer state value to a corresponding MamaSubscriptionState object.
static inline MamaSubscriptionState parseSubscriptionState(
String state
)
Parameters:
Return: The corresponding state object or MAMA_SUBSCRIPTION_UNKNOWN if the string isn’t recognised.
This function will return the subscription state corresponding to the supplied string. Note that if the string is not recognised then MAMA_SUBSCRIPTION_UNKNOWN will be returned.
static inline String toString(
int state
)
Parameters:
Return: The string representation.
This function returns the string representation of the state.
static inline String toString(
MamaSubscriptionState state
)
Parameters:
Return: The string representation.
This function returns the string representation of the state.
static final MamaSubscriptionState MAMA_SUBSCRIPTION_UNKNOWN = new MamaSubscriptionState(0);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_ALLOCATED = new MamaSubscriptionState(1);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_SETUP = new MamaSubscriptionState(2);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_ACTIVATING = new MamaSubscriptionState(3);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_ACTIVATED = new MamaSubscriptionState(4);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DEACTIVATING = new MamaSubscriptionState(5);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DEACTIVATED = new MamaSubscriptionState(6);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DESTROYING = new MamaSubscriptionState(7);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DESTROYED = new MamaSubscriptionState(8);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DEALLOCATING = new MamaSubscriptionState(9);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_DEALLOCATED = new MamaSubscriptionState(10);
static final MamaSubscriptionState MAMA_SUBSCRIPTION_REACTIVATING = new MamaSubscriptionState(11);
Updated on 2023-03-31 at 15:29:44 +0100