Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a UserAgent.

Hierarchy

  • UserAgent

Implements

Index

Constructors

Properties

appVersion?: IAppVersion

UserAgent appVersion.

device: string

UserAgent device.

deviceBoard: string

UserAgent deviceBoard.

localeCountryIso31661Alpha2: string

UserAgent localeCountryIso31661Alpha2.

localeLanguageIso6391: string

UserAgent localeLanguageIso6391.

manufacturer: string

UserAgent manufacturer.

mcc: string

UserAgent mcc.

mnc: string

UserAgent mnc.

osBuildNumber: string

UserAgent osBuildNumber.

osVersion: string

UserAgent osVersion.

phoneId: string

UserAgent phoneId.

UserAgent platform.

releaseChannel: UserAgentReleaseChannel

UserAgent releaseChannel.

Methods

  • toJSON(): {}
  • decode(reader: Uint8Array | Reader, length?: number): UserAgent
  • Decodes a UserAgent 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: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

    Returns UserAgent

    UserAgent

  • decodeDelimited(reader: Uint8Array | Reader): UserAgent
  • Decodes a UserAgent 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: Uint8Array | Reader

      Reader or buffer to decode from

    Returns UserAgent

    UserAgent

  • encode(message: IUserAgent, writer?: Writer): Writer
  • Encodes the specified UserAgent message. Does not implicitly verify messages.

    Parameters

    • message: IUserAgent

      UserAgent message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

  • encodeDelimited(message: IUserAgent, writer?: Writer): Writer
  • Encodes the specified UserAgent message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IUserAgent

      UserAgent message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

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

    Parameters

    • object: {}

      Plain object

      • [k: string]: any

    Returns UserAgent

    UserAgent

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

    Parameters

    • message: UserAgent

      UserAgent

    • Optional options: IConversionOptions

    Returns {}

    Plain object

    • [k: string]: any
  • verify(message: {}): string
  • Verifies a UserAgent message.

    Parameters

    • message: {}

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc