Represents a JoinReq.

Hierarchy

  • JoinReq

Implements

Constructors

  • Constructs a new JoinReq.

    Parameters

    • Optional properties: IJoinReq

      Properties to set

    Returns JoinReq

Properties

EventId: string

JoinReq EventId.

I: string

JoinReq I.

Pid: string

JoinReq Pid.

RealName: string

JoinReq RealName.

SpaceId: string

JoinReq SpaceId.

X: number

JoinReq X.

Y: number

JoinReq Y.

Methods

  • Converts this JoinReq to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Creates a new JoinReq instance using the specified properties.

    Parameters

    • Optional properties: IJoinReq

      Properties to set

    Returns JoinReq

    JoinReq instance

  • Decodes a JoinReq message from the specified reader or buffer.

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

    Parameters

    • reader: any

      Reader or buffer to decode from

    • Optional length: number

      Message length if known beforehand

    Returns JoinReq

    JoinReq

  • Decodes a JoinReq message from the specified reader or buffer, length delimited.

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

    Parameters

    • reader: any

      Reader or buffer to decode from

    Returns JoinReq

    JoinReq

  • Encodes the specified JoinReq message. Does not implicitly verify messages.

    Parameters

    • message: IJoinReq

      JoinReq message or plain object to encode

    • Optional writer: any

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified JoinReq message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IJoinReq

      JoinReq message or plain object to encode

    • Optional writer: any

      Writer to encode to

    Returns Writer

    Writer

  • Creates a JoinReq message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {
          [k: string]: any;
      }

      Plain object

      • [k: string]: any

    Returns JoinReq

    JoinReq

  • Creates a plain object from a JoinReq message. Also converts values to other types if specified.

    Parameters

    • message: JoinReq

      JoinReq

    • Optional options: any

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a JoinReq message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc