Skip to main content

Class: PreKeyRecordStructure

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

Implements

Constructors

new PreKeyRecordStructure()

new PreKeyRecordStructure(p?): PreKeyRecordStructure

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

Parameters

p?

IPreKeyRecordStructure

Returns

PreKeyRecordStructure

Properties

id?

optional id: null | number

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

Implementation of

IPreKeyRecordStructure.id


privateKey?

optional privateKey: null | Uint8Array<ArrayBufferLike>

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

Implementation of

IPreKeyRecordStructure.privateKey


publicKey?

optional publicKey: null | Uint8Array<ArrayBufferLike>

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

Implementation of

IPreKeyRecordStructure.publicKey

Methods

toJSON()

toJSON(): object

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

Returns

object


create()

static create(properties?): PreKeyRecordStructure

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

Parameters

properties?

IPreKeyRecordStructure

Returns

PreKeyRecordStructure


decode()

static decode(r, l?): PreKeyRecordStructure

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

Parameters

r

Uint8Array<ArrayBufferLike> | Reader

l?

number

Returns

PreKeyRecordStructure


encode()

static encode(m, w?): Writer

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

Parameters

m

IPreKeyRecordStructure

w?

Writer

Returns

Writer


fromObject()

static fromObject(d): PreKeyRecordStructure

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

Parameters

d

Returns

PreKeyRecordStructure


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Parameters

typeUrlPrefix?

string

Returns

string


toObject()

static toObject(m, o?): object

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

Parameters

m

PreKeyRecordStructure

o?

IConversionOptions

Returns

object