Constructs a new UserAgent.
Optional
properties:
IUserAgent
Properties to set
Optional
appUserAgent appVersion.
UserAgent device.
UserAgent deviceBoard.
UserAgent deviceExpId.
UserAgent deviceType.
UserAgent localeCountryIso31661Alpha2.
UserAgent localeLanguageIso6391.
UserAgent manufacturer.
UserAgent mcc.
UserAgent mnc.
UserAgent osBuildNumber.
UserAgent osVersion.
UserAgent phoneId.
UserAgent platform.
UserAgent releaseChannel.
Static
create
Creates a new UserAgent instance using the specified properties.
Optional
properties:
IUserAgent
Properties to set
UserAgent instance
Static
decode
Decodes a UserAgent message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
UserAgent
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a UserAgent message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
UserAgent
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified UserAgent message. Does not implicitly verify messages.
UserAgent message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified UserAgent message, length delimited. Does not implicitly verify messages.
UserAgent message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromStatic
toCreates a plain object from a UserAgent message. Also converts values to other types if specified.
UserAgent
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a UserAgent.