Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a Hello.

Hierarchy

  • Hello

Implements

Index

Constructors

constructor

  • Constructs a new Hello.

    Parameters

    Returns Hello

Properties

token

token: string

Hello token.

userid

userid: number

Hello userid.

username

username: string

Hello username.

Methods

toJSON

  • toJSON(): object
  • Converts this Hello to JSON.

    Returns object

    JSON object

    • [k: string]: any

Static create

  • Creates a new Hello instance using the specified properties.

    Parameters

    Returns Hello

    Hello instance

Static decode

  • decode(reader: Reader | Uint8Array, length?: undefined | number): Hello
  • Decodes a Hello message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    • Optional length: undefined | number

    Returns Hello

    Hello

Static decodeDelimited

  • decodeDelimited(reader: Reader | Uint8Array): Hello
  • Decodes a Hello message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Reader | Uint8Array

      Reader or buffer to decode from

    Returns Hello

    Hello

Static encode

  • encode(message: IHello, writer?: $protobuf.Writer): Writer
  • Encodes the specified Hello message. Does not implicitly verify messages.

    Parameters

    • message: IHello

      Hello message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static encodeDelimited

  • encodeDelimited(message: IHello, writer?: $protobuf.Writer): Writer
  • Encodes the specified Hello message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IHello

      Hello message or plain object to encode

    • Optional writer: $protobuf.Writer

    Returns Writer

    Writer

Static fromObject

  • fromObject(object: object): Hello
  • Creates a Hello message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: object

      Plain object

      • [k: string]: any

    Returns Hello

    Hello

Static toObject

  • toObject(message: Hello, options?: $protobuf.IConversionOptions): object
  • Creates a plain object from a Hello message. Also converts values to other types if specified.

    Parameters

    • message: Hello

      Hello

    • Optional options: $protobuf.IConversionOptions

    Returns object

    Plain object

    • [k: string]: any

Static verify

  • verify(message: object): null | string
  • Verifies a Hello message.

    Parameters

    • message: object

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc