BroadcastCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const BroadcastCmd uint16 = 800
BroadcastVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const BroadcastVer uint8 = 1
CreateCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const CreateCmd uint16 = 801
CreateResponsePayloadCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const CreateResponsePayloadCmd uint16 = 0
CreateResponsePayloadVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const CreateResponsePayloadVer uint8 = 0
CreateVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const CreateVer uint8 = 1
GetSessionInfoBySessionIDCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const GetSessionInfoBySessionIDCmd uint16 = 809
GetSessionInfoBySessionIDVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const GetSessionInfoBySessionIDVer uint8 = 1
GetSessionInfoBySessionTypeCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const GetSessionInfoBySessionTypeCmd uint16 = 808
GetSessionInfoBySessionTypeVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const GetSessionInfoBySessionTypeVer uint8 = 1
GetSessionInfoResponsePayloadCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const GetSessionInfoResponsePayloadCmd uint16 = 0
GetSessionInfoResponsePayloadVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const GetSessionInfoResponsePayloadVer uint8 = 0
InviteCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const InviteCmd uint16 = 802
InviteVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const InviteVer uint8 = 1
JoinCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const JoinCmd uint16 = 804
JoinVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const JoinVer uint8 = 1
KickCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const KickCmd uint16 = 806
KickVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const KickVer uint8 = 1
LeaveCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const LeaveCmd uint16 = 805
LeaveVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const LeaveVer uint8 = 1
MessageToCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const MessageToCmd uint16 = 807
MessageToMessagePayloadCmd represents the command ID of the protocol's command ID.
[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const MessageToMessagePayloadCmd uint16 = 0
MessageToMessagePayloadVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const MessageToMessagePayloadVer uint8 = 0
MessageToVer represents the ver of the protocol's command.
[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const MessageToVer uint8 = 1
Broadcast represents the command protocol data structure.
type Broadcast struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Message
    Message string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewBroadcast() *Broadcast
NewBroadcast creates a new instance of Broadcast struct.
func (proto *Broadcast) GetCmd() uint16
func (proto *Broadcast) GetVer() uint8
func (proto *Broadcast) Pack() []byte
Pack encodes Broadcast struct to a byte array to be delivered over the command.
func (proto *Broadcast) String() string
func (proto *Broadcast) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Broadcast struct.
Create represents the command protocol data structure.
type Create struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Maximum number of members in the session
    MaxMembers uint16
    // Session Type
    SessionType uint8
    // TTL of the session when it becomes empty (no members) in seconds.
    Ttl uint16
}
			
			
			
			
			
			
				
				func NewCreate() *Create
NewCreate creates a new instance of Create struct.
func (proto *Create) GetCmd() uint16
func (proto *Create) GetVer() uint8
func (proto *Create) Pack() []byte
Pack encodes Create struct to a byte array to be delivered over the command.
func (proto *Create) String() string
func (proto *Create) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Create struct.
CreateResponsePayload represents the command protocol data structure.
type CreateResponsePayload struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session ID
    SessionID string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewCreateResponsePayload() *CreateResponsePayload
NewCreateResponsePayload creates a new instance of CreateResponsePayload struct.
func (proto *CreateResponsePayload) GetCmd() uint16
func (proto *CreateResponsePayload) GetVer() uint8
func (proto *CreateResponsePayload) Pack() []byte
Pack encodes CreateResponsePayload struct to a byte array to be delivered over the command.
func (proto *CreateResponsePayload) String() string
func (proto *CreateResponsePayload) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to CreateResponsePayload struct.
GetSessionInfoBySessionID represents the command protocol data structure.
type GetSessionInfoBySessionID struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session ID
    SessionID string
}
			
			
			
			
			
			
				
				func NewGetSessionInfoBySessionID() *GetSessionInfoBySessionID
NewGetSessionInfoBySessionID creates a new instance of GetSessionInfoBySessionID struct.
func (proto *GetSessionInfoBySessionID) GetCmd() uint16
func (proto *GetSessionInfoBySessionID) GetVer() uint8
func (proto *GetSessionInfoBySessionID) Pack() []byte
Pack encodes GetSessionInfoBySessionID struct to a byte array to be delivered over the command.
func (proto *GetSessionInfoBySessionID) String() string
func (proto *GetSessionInfoBySessionID) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to GetSessionInfoBySessionID struct.
GetSessionInfoBySessionType represents the command protocol data structure.
type GetSessionInfoBySessionType struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewGetSessionInfoBySessionType() *GetSessionInfoBySessionType
NewGetSessionInfoBySessionType creates a new instance of GetSessionInfoBySessionType struct.
func (proto *GetSessionInfoBySessionType) GetCmd() uint16
func (proto *GetSessionInfoBySessionType) GetVer() uint8
func (proto *GetSessionInfoBySessionType) Pack() []byte
Pack encodes GetSessionInfoBySessionType struct to a byte array to be delivered over the command.
func (proto *GetSessionInfoBySessionType) String() string
func (proto *GetSessionInfoBySessionType) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to GetSessionInfoBySessionType struct.
GetSessionInfoResponsePayload represents the command protocol data structure.
type GetSessionInfoResponsePayload struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Current number of members in the session
    CurrentMembers uint16
    // Maximum number of members in the session
    MaxMembers uint16
    // member IDs
    MemberIDs []string
    // owner ID
    OwnerID string
    // Session ID
    SessionID string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewGetSessionInfoResponsePayload() *GetSessionInfoResponsePayload
NewGetSessionInfoResponsePayload creates a new instance of GetSessionInfoResponsePayload struct.
func (proto *GetSessionInfoResponsePayload) GetCmd() uint16
func (proto *GetSessionInfoResponsePayload) GetVer() uint8
func (proto *GetSessionInfoResponsePayload) Pack() []byte
Pack encodes GetSessionInfoResponsePayload struct to a byte array to be delivered over the command.
func (proto *GetSessionInfoResponsePayload) String() string
func (proto *GetSessionInfoResponsePayload) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to GetSessionInfoResponsePayload struct.
Invite represents the command protocol data structure.
type Invite struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Message
    Message string
    // Session Type
    SessionType uint8
    // UIDs to invite
    TargetUIDs []string
}
			
			
			
			
			
			
				
				func NewInvite() *Invite
NewInvite creates a new instance of Invite struct.
func (proto *Invite) GetCmd() uint16
func (proto *Invite) GetVer() uint8
func (proto *Invite) Pack() []byte
Pack encodes Invite struct to a byte array to be delivered over the command.
func (proto *Invite) String() string
func (proto *Invite) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Invite struct.
Join represents the command protocol data structure.
type Join struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session ID
    SessionID string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewJoin() *Join
NewJoin creates a new instance of Join struct.
func (proto *Join) GetCmd() uint16
func (proto *Join) GetVer() uint8
func (proto *Join) Pack() []byte
Pack encodes Join struct to a byte array to be delivered over the command.
func (proto *Join) String() string
func (proto *Join) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Join struct.
Kick represents the command protocol data structure.
type Kick struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session Type
    SessionType uint8
    // UID to kick from session
    TargetUID string
}
			
			
			
			
			
			
				
				func NewKick() *Kick
NewKick creates a new instance of Kick struct.
func (proto *Kick) GetCmd() uint16
func (proto *Kick) GetVer() uint8
func (proto *Kick) Pack() []byte
Pack encodes Kick struct to a byte array to be delivered over the command.
func (proto *Kick) String() string
func (proto *Kick) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Kick struct.
Leave represents the command protocol data structure.
type Leave struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewLeave() *Leave
NewLeave creates a new instance of Leave struct.
func (proto *Leave) GetCmd() uint16
func (proto *Leave) GetVer() uint8
func (proto *Leave) Pack() []byte
Pack encodes Leave struct to a byte array to be delivered over the command.
func (proto *Leave) String() string
func (proto *Leave) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to Leave struct.
MessageTo represents the command protocol data structure.
type MessageTo struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Message
    Message string
    // UIDs to receive message
    RecipientUIDs []string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewMessageTo() *MessageTo
NewMessageTo creates a new instance of MessageTo struct.
func (proto *MessageTo) GetCmd() uint16
func (proto *MessageTo) GetVer() uint8
func (proto *MessageTo) Pack() []byte
Pack encodes MessageTo struct to a byte array to be delivered over the command.
func (proto *MessageTo) String() string
func (proto *MessageTo) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to MessageTo struct.
MessageToMessagePayload represents the command protocol data structure.
type MessageToMessagePayload struct {
    // Command version of the protocol
    Ver uint8
    // Command ID of the protocol
    Cmd uint16
    // Message
    Message string
    // Session Type
    SessionType uint8
}
			
			
			
			
			
			
				
				func NewMessageToMessagePayload() *MessageToMessagePayload
NewMessageToMessagePayload creates a new instance of MessageToMessagePayload struct.
func (proto *MessageToMessagePayload) GetCmd() uint16
func (proto *MessageToMessagePayload) GetVer() uint8
func (proto *MessageToMessagePayload) Pack() []byte
Pack encodes MessageToMessagePayload struct to a byte array to be delivered over the command.
func (proto *MessageToMessagePayload) String() string
func (proto *MessageToMessagePayload) Unpack(bytes []byte) error
Unpack decodes the command payload byte array to MessageToMessagePayload struct.