Class CheckBalanceResult
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CheckBalanceResult
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class CheckBalanceResult extends Object implements Serializable, Enumerated
Java class to represent the CheckBalanceResult enumerated type. Documentation from the relevant specification: The Check Balance Result AVP (AVP Code 422) is of type Enumerated and contains the result of the balance check. This AVP is applicable only when the Requested-Action AVP indicates CHECK_BALANCE in the Credit-Control-Request command.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_ENOUGH_CREDIT
static int
_NO_CREDIT
static CheckBalanceResult
ENOUGH_CREDIT
There is enough credit in the account to cover the requested service.static CheckBalanceResult
NO_CREDIT
There isn't enough credit in the account to cover the requested service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CheckBalanceResult
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_ENOUGH_CREDIT
public static final int _ENOUGH_CREDIT
- See Also:
- Constant Field Values
-
_NO_CREDIT
public static final int _NO_CREDIT
- See Also:
- Constant Field Values
-
ENOUGH_CREDIT
public static final CheckBalanceResult ENOUGH_CREDIT
There is enough credit in the account to cover the requested service.
-
NO_CREDIT
public static final CheckBalanceResult NO_CREDIT
There isn't enough credit in the account to cover the requested service.
-
-
Method Detail
-
fromInt
public static CheckBalanceResult fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-