public final class PacketClientMsgProtobuf extends Object implements IPacketMsg
Modifier and Type | Field and Description |
---|---|
private EMsg |
msgType
The message type.
|
(package private) byte[] |
payload |
private long |
sourceJobID |
private long |
targetJobID |
Constructor and Description |
---|
PacketClientMsgProtobuf(EMsg eMsg,
byte[] data)
Initializes a new instance of the
PacketClientMsgProtobuf class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the underlying data that represents this client message.
|
boolean |
isProto()
This type of message is always protobuf backed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMsgType, getSourceJobID, getTargetJobID
private EMsg msgType
private final long targetJobID
private final long sourceJobID
byte[] payload
public PacketClientMsgProtobuf(EMsg eMsg, byte[] data)
PacketClientMsgProtobuf
class.eMsg
- The network message type for this packet message.data
- The data.public boolean isProto()
isProto
in interface IPacketMsg
public byte[] getData()
getData
in interface IPacketMsg
Copyright © 2012. All Rights Reserved.