Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a UserAgent.

Hierarchy

  • UserAgent

Implements

Index

Constructors

constructor

Properties

Optional appVersion

appVersion: IAppVersion

UserAgent appVersion.

device

device: string

UserAgent device.

deviceBoard

deviceBoard: string

UserAgent deviceBoard.

localeCountryIso31661Alpha2

localeCountryIso31661Alpha2: string

UserAgent localeCountryIso31661Alpha2.

localeLanguageIso6391

localeLanguageIso6391: string

UserAgent localeLanguageIso6391.

manufacturer

manufacturer: string

UserAgent manufacturer.

mcc

mcc: string

UserAgent mcc.

mnc

mnc: string

UserAgent mnc.

osBuildNumber

osBuildNumber: string

UserAgent osBuildNumber.

osVersion

osVersion: string

UserAgent osVersion.

phoneId

phoneId: string

UserAgent phoneId.

platform

UserAgent platform.

releaseChannel

releaseChannel: UserAgentReleaseChannel

UserAgent releaseChannel.

Methods

toJSON

  • toJSON(): {}

Static create

Static decode

  • 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

Static decodeDelimited

  • 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

Static encode

  • 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

Static encodeDelimited

  • 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

Static fromObject

  • 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

Static toObject

  • 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

Static verify

  • 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