Class ReasonCode
- java.lang.Object
-
- org.jainslee.resources.diameter.ro.types.v960.ReasonCode
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class ReasonCode extends Object implements Serializable, Enumerated
Java class to represent the ReasonCode enumerated type. Documentation from the relevant specification: The Reason-Code AVP (AVP code 2316) is of type Enumerated and identifies if the Rate-Element corresponds to a specific charge type. It can be one of the following values:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_ADD_ON_CHARGE
static int
_COMMUNICATION_ATTEMPT_CHARGE
static int
_SETUP_CHARGE
static int
_UNKNOWN
static int
_USAGE
static ReasonCode
ADD_ON_CHARGE
static ReasonCode
COMMUNICATION_ATTEMPT_CHARGE
static ReasonCode
SETUP_CHARGE
static ReasonCode
UNKNOWN
static ReasonCode
USAGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReasonCode
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_UNKNOWN
public static final int _UNKNOWN
- See Also:
- Constant Field Values
-
_USAGE
public static final int _USAGE
- See Also:
- Constant Field Values
-
_COMMUNICATION_ATTEMPT_CHARGE
public static final int _COMMUNICATION_ATTEMPT_CHARGE
- See Also:
- Constant Field Values
-
_SETUP_CHARGE
public static final int _SETUP_CHARGE
- See Also:
- Constant Field Values
-
_ADD_ON_CHARGE
public static final int _ADD_ON_CHARGE
- See Also:
- Constant Field Values
-
UNKNOWN
public static final ReasonCode UNKNOWN
-
USAGE
public static final ReasonCode USAGE
-
COMMUNICATION_ATTEMPT_CHARGE
public static final ReasonCode COMMUNICATION_ATTEMPT_CHARGE
-
SETUP_CHARGE
public static final ReasonCode SETUP_CHARGE
-
ADD_ON_CHARGE
public static final ReasonCode ADD_ON_CHARGE
-
-
Method Detail
-
fromInt
public static ReasonCode 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
-
-