Package top.focess.qq.api.net.packet
Class MessagePacket
- java.lang.Object
-
- top.focess.qq.api.net.packet.Packet
-
- top.focess.qq.api.net.packet.MessagePacket
-
- All Implemented Interfaces:
Serializable,FocessSerializable
public class MessagePacket extends Packet
Used to send String message.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPACKET_ID
-
Constructor Summary
Constructors Constructor Description MessagePacket(String message)Constructs a MessagePacket
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Get the packet idStringgetMessage()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface top.focess.qq.api.serialize.FocessSerializable
serialize
-
-
-
-
Field Detail
-
PACKET_ID
public static final int PACKET_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MessagePacket
public MessagePacket(String message)
Constructs a MessagePacket- Parameters:
message- the message
-
-