Skip to main content

Class: ClientPayload

Defined in: WAProto/index.d.ts:9071

Represents a ClientPayload.

Implements

Constructors

new ClientPayload()

new ClientPayload(properties?): ClientPayload

Defined in: WAProto/index.d.ts:9077

Constructs a new ClientPayload.

Parameters

properties?

IClientPayload

Properties to set

Returns

ClientPayload

Properties

accountType?

optional accountType: null | AccountType

Defined in: WAProto/index.d.ts:9167

ClientPayload accountType.

Implementation of

IClientPayload.accountType


connectAttemptCount?

optional connectAttemptCount: null | number

Defined in: WAProto/index.d.ts:9113

ClientPayload connectAttemptCount.

Implementation of

IClientPayload.connectAttemptCount


connectReason?

optional connectReason: null | ConnectReason

Defined in: WAProto/index.d.ts:9104

ClientPayload connectReason.

Implementation of

IClientPayload.connectReason


connectType?

optional connectType: null | ConnectType

Defined in: WAProto/index.d.ts:9101

ClientPayload connectType.

Implementation of

IClientPayload.connectType


device?

optional device: null | number

Defined in: WAProto/index.d.ts:9116

ClientPayload device.

Implementation of

IClientPayload.device


devicePairingData?

optional devicePairingData: null | IDevicePairingRegistrationData

Defined in: WAProto/index.d.ts:9119

ClientPayload devicePairingData.

Implementation of

IClientPayload.devicePairingData


dnsSource?

optional dnsSource: null | IDNSSource

Defined in: WAProto/index.d.ts:9110

ClientPayload dnsSource.

Implementation of

IClientPayload.dnsSource


fbAppId?

optional fbAppId: null | number | Long

Defined in: WAProto/index.d.ts:9140

ClientPayload fbAppId.

Implementation of

IClientPayload.fbAppId


fbCat?

optional fbCat: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:9125

ClientPayload fbCat.

Implementation of

IClientPayload.fbCat


fbDeviceId?

optional fbDeviceId: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:9143

ClientPayload fbDeviceId.

Implementation of

IClientPayload.fbDeviceId


fbUserAgent?

optional fbUserAgent: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:9128

ClientPayload fbUserAgent.

Implementation of

IClientPayload.fbUserAgent


interopData?

optional interopData: null | IInteropData

Defined in: WAProto/index.d.ts:9158

ClientPayload interopData.

Implementation of

IClientPayload.interopData


iosAppExtension?

optional iosAppExtension: null | IOSAppExtension

Defined in: WAProto/index.d.ts:9137

ClientPayload iosAppExtension.

Implementation of

IClientPayload.iosAppExtension


lc?

optional lc: null | number

Defined in: WAProto/index.d.ts:9134

ClientPayload lc.

Implementation of

IClientPayload.lc


lidDbMigrated?

optional lidDbMigrated: null | boolean

Defined in: WAProto/index.d.ts:9164

ClientPayload lidDbMigrated.

Implementation of

IClientPayload.lidDbMigrated


memClass?

optional memClass: null | number

Defined in: WAProto/index.d.ts:9155

ClientPayload memClass.

Implementation of

IClientPayload.memClass


oc?

optional oc: null | boolean

Defined in: WAProto/index.d.ts:9131

ClientPayload oc.

Implementation of

IClientPayload.oc


paddingBytes?

optional paddingBytes: null | Uint8Array<ArrayBufferLike>

Defined in: WAProto/index.d.ts:9149

ClientPayload paddingBytes.

Implementation of

IClientPayload.paddingBytes


passive?

optional passive: null | boolean

Defined in: WAProto/index.d.ts:9083

ClientPayload passive.

Implementation of

IClientPayload.passive


product?

optional product: null | Product

Defined in: WAProto/index.d.ts:9122

ClientPayload product.

Implementation of

IClientPayload.product


pull?

optional pull: null | boolean

Defined in: WAProto/index.d.ts:9146

ClientPayload pull.

Implementation of

IClientPayload.pull


pushName?

optional pushName: null | string

Defined in: WAProto/index.d.ts:9092

ClientPayload pushName.

Implementation of

IClientPayload.pushName


sessionId?

optional sessionId: null | number

Defined in: WAProto/index.d.ts:9095

ClientPayload sessionId.

Implementation of

IClientPayload.sessionId


shards

shards: number[]

Defined in: WAProto/index.d.ts:9107

ClientPayload shards.

Implementation of

IClientPayload.shards


shortConnect?

optional shortConnect: null | boolean

Defined in: WAProto/index.d.ts:9098

ClientPayload shortConnect.

Implementation of

IClientPayload.shortConnect


trafficAnonymization?

optional trafficAnonymization: null | TrafficAnonymization

Defined in: WAProto/index.d.ts:9161

ClientPayload trafficAnonymization.

Implementation of

IClientPayload.trafficAnonymization


userAgent?

optional userAgent: null | IUserAgent

Defined in: WAProto/index.d.ts:9086

ClientPayload userAgent.

Implementation of

IClientPayload.userAgent


username?

optional username: null | number | Long

Defined in: WAProto/index.d.ts:9080

ClientPayload username.

Implementation of

IClientPayload.username


webInfo?

optional webInfo: null | IWebInfo

Defined in: WAProto/index.d.ts:9089

ClientPayload webInfo.

Implementation of

IClientPayload.webInfo


yearClass?

optional yearClass: null | number

Defined in: WAProto/index.d.ts:9152

ClientPayload yearClass.

Implementation of

IClientPayload.yearClass

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:9237

Converts this ClientPayload to JSON.

Returns

object

JSON object


create()

static create(properties?): ClientPayload

Defined in: WAProto/index.d.ts:9174

Creates a new ClientPayload instance using the specified properties.

Parameters

properties?

IClientPayload

Properties to set

Returns

ClientPayload

ClientPayload instance


decode()

static decode(reader, length?): ClientPayload

Defined in: WAProto/index.d.ts:9200

Decodes a ClientPayload message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

ClientPayload

ClientPayload

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): ClientPayload

Defined in: WAProto/index.d.ts:9209

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

ClientPayload

ClientPayload

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:9182

Encodes the specified ClientPayload message. Does not implicitly verify messages.

Parameters

message

IClientPayload

ClientPayload message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:9190

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

Parameters

message

IClientPayload

ClientPayload message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): ClientPayload

Defined in: WAProto/index.d.ts:9223

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

Parameters

object

Plain object

Returns

ClientPayload

ClientPayload


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:9244

Gets the default type url for ClientPayload

Parameters

typeUrlPrefix?

string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:9231

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

Parameters

message

ClientPayload

ClientPayload

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:9216

Verifies a ClientPayload message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not