public class PacketMsg extends java.lang.Object implements IPacketMsg
| Constructor and Description |
|---|
PacketMsg(EMsg eMsg,
byte[] data)
Initializes a new instance of the
PacketMsg class. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Gets the underlying data that represents this client message.
|
EMsg |
getMsgType()
Gets the network message type of this packet message.
|
long |
getSourceJobID()
Gets the source job id for this packet message.
|
long |
getTargetJobID()
Gets the target job id for this packet message.
|
boolean |
isProto()
Gets a value indicating whether this packet message is protobuf backed.
|
public boolean isProto()
IPacketMsgisProto in interface IPacketMsgpublic EMsg getMsgType()
IPacketMsggetMsgType in interface IPacketMsgpublic long getTargetJobID()
IPacketMsggetTargetJobID in interface IPacketMsgpublic long getSourceJobID()
IPacketMsggetSourceJobID in interface IPacketMsgpublic byte[] getData()
IPacketMsggetData in interface IPacketMsg