Class ClientPackPacket


  • public class ClientPackPacket
    extends ClientPacket
    Used to pack package sent by client.
    • Constructor Detail

      • ClientPackPacket

        public ClientPackPacket​(int clientId,
                                String token,
                                Packet packet)
        Constructs a ClientPackPacket
        Parameters:
        clientId - the client id
        token - the client token
        packet - the packet sent by client
    • Method Detail

      • getId

        public int getId()
        Description copied from class: Packet
        Get the packet id
        Specified by:
        getId in class Packet
        Returns:
        the packet id
      • getPacket

        public Packet getPacket()