Package top.focess.qq.api.net.packet
Class ConnectedPacket
- java.lang.Object
-
- top.focess.qq.api.net.packet.Packet
-
- top.focess.qq.api.net.packet.ServerPacket
-
- top.focess.qq.api.net.packet.ConnectedPacket
-
- All Implemented Interfaces:
Serializable,top.focess.util.serialize.FocessSerializable
public class ConnectedPacket extends ServerPacket
Used to tell client the id and the token- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPACKET_ID
-
Constructor Summary
Constructors Constructor Description ConnectedPacket(int clientId, String token)Constructs a ConnectedPacket
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClientId()intgetId()Get the packet idStringgetToken()
-
-
-
Field Detail
-
PACKET_ID
public static final int PACKET_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConnectedPacket
public ConnectedPacket(int clientId, String token)Constructs a ConnectedPacket- Parameters:
clientId- the client idtoken- the token
-
-