Package in.dragonbra.javasteam.base
Class PacketClientGCMsgProtobuf
- java.lang.Object
-
- in.dragonbra.javasteam.base.PacketClientGCMsgProtobuf
-
- All Implemented Interfaces:
IPacketGCMsg
public class PacketClientGCMsgProtobuf extends java.lang.Object implements IPacketGCMsg
Represents a protobuf backed packet message.
-
-
Constructor Summary
Constructors Constructor Description PacketClientGCMsgProtobuf(int eMsg, byte[] data)Initializes a new instance of thePacketClientGCMsgProtobufclass.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Gets the underlying data that represents this client message.intgetMsgType()Gets the network message type of this packet message.JobIDgetSourceJobID()Gets the source job id for this packet message.JobIDgetTargetJobID()Gets the target job id for this packet message.booleanisProto()Gets a value indicating whether this packet message is protobuf backed.
-
-
-
Constructor Detail
-
PacketClientGCMsgProtobuf
public PacketClientGCMsgProtobuf(int eMsg, byte[] data)Initializes a new instance of thePacketClientGCMsgProtobufclass.- Parameters:
eMsg- The network message type for this packet message.data- The data.
-
-
Method Detail
-
isProto
public boolean isProto()
Description copied from interface:IPacketGCMsgGets a value indicating whether this packet message is protobuf backed.- Specified by:
isProtoin interfaceIPacketGCMsg- Returns:
- true if this instance is protobuf backed; otherwise, false.
-
getMsgType
public int getMsgType()
Description copied from interface:IPacketGCMsgGets the network message type of this packet message.- Specified by:
getMsgTypein interfaceIPacketGCMsg- Returns:
- The message type.
-
getTargetJobID
public JobID getTargetJobID()
Description copied from interface:IPacketGCMsgGets the target job id for this packet message.- Specified by:
getTargetJobIDin interfaceIPacketGCMsg- Returns:
- The target job id.
-
getSourceJobID
public JobID getSourceJobID()
Description copied from interface:IPacketGCMsgGets the source job id for this packet message.- Specified by:
getSourceJobIDin interfaceIPacketGCMsg- Returns:
- The source job id.
-
getData
public byte[] getData()
Description copied from interface:IPacketGCMsgGets the underlying data that represents this client message.- Specified by:
getDatain interfaceIPacketGCMsg- Returns:
- The data.
-
-