Package top.focess.qq.api.net.packet
Class HeartPacket
- java.lang.Object
-
- top.focess.qq.api.net.packet.Packet
-
- top.focess.qq.api.net.packet.ClientPacket
-
- top.focess.qq.api.net.packet.HeartPacket
-
- All Implemented Interfaces:
Serializable,top.focess.util.serialize.FocessSerializable
public class HeartPacket extends ClientPacket
Used to tell server the connection is not lost.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPACKET_ID
-
Constructor Summary
Constructors Constructor Description HeartPacket(int clientId, String token, long time)Constructs a HeartPacket
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Get the packet idlonggetTime()-
Methods inherited from class top.focess.qq.api.net.packet.ClientPacket
getClientId, getToken
-
-
-
-
Field Detail
-
PACKET_ID
public static final int PACKET_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HeartPacket
public HeartPacket(int clientId, String token, long time)Constructs a HeartPacket- Parameters:
clientId- the client idtoken- the client tokentime- the client time
-
-