public class CstaMessage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
invokeId
The invoke id.
|
java.lang.String |
msgBody
The msg body.
|
CstaMessageType |
msgType
The msg type.
|
Constructor and Description |
---|
CstaMessage()
Instantiates a new csta message.
|
CstaMessage(CstaMessageType type,
int id,
java.lang.String body)
Instantiates a new csta message.
|
CstaMessage(java.lang.String currentMsg)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getInvokeId()
Gets the invoke id.
|
java.lang.String |
getMsgBody()
Gets the msg body.
|
CstaMessageType |
getMsgType()
Gets the msg type.
|
static java.lang.String |
invokeId2String(int id)
Invoke id2 string.
|
static int |
invokeIdStr2Int(java.lang.String str)
Invoke id str2 int.
|
static boolean |
isValidInvokeId(int id)
Checks if is valid invoke id.
|
void |
setInvokeId(int invokeId)
Sets the invoke id.
|
void |
setMsgBody(java.lang.String msgBody)
Sets the msg body.
|
void |
setMsgType(CstaMessageType msgType)
Sets the msg type.
|
public CstaMessageType msgType
public int invokeId
public java.lang.String msgBody
public CstaMessage()
public CstaMessage(CstaMessageType type, int id, java.lang.String body)
type
- the typeid
- the idbody
- the bodypublic CstaMessage(java.lang.String currentMsg)
currentMsg
- the current msgpublic CstaMessageType getMsgType()
public void setMsgType(CstaMessageType msgType)
msgType
- the new msg typepublic int getInvokeId()
public void setInvokeId(int invokeId)
invokeId
- the new invoke idpublic java.lang.String getMsgBody()
public void setMsgBody(java.lang.String msgBody)
msgBody
- the new msg bodypublic static java.lang.String invokeId2String(int id)
id
- the idpublic static int invokeIdStr2Int(java.lang.String str)
str
- the strpublic static boolean isValidInvokeId(int id)
id
- the id