Skip to main content

Class: Reaction

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

Implements

Constructors

new Reaction()

new Reaction(p?): Reaction

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

Parameters

p?

IReaction

Returns

Reaction

Properties

groupingKey?

optional groupingKey: null | string

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

Implementation of

IReaction.groupingKey


key?

optional key: null | IMessageKey

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

Implementation of

IReaction.key


senderTimestampMs?

optional senderTimestampMs: null | number | Long

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

Implementation of

IReaction.senderTimestampMs


text?

optional text: null | string

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

Implementation of

IReaction.text


unread?

optional unread: null | boolean

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

Implementation of

IReaction.unread

Methods

toJSON()

toJSON(): object

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

Returns

object


create()

static create(properties?): Reaction

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

Parameters

properties?

IReaction

Returns

Reaction


decode()

static decode(r, l?): Reaction

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

Parameters

r

Uint8Array<ArrayBufferLike> | Reader

l?

number

Returns

Reaction


encode()

static encode(m, w?): Writer

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

Parameters

m

IReaction

w?

Writer

Returns

Writer


fromObject()

static fromObject(d): Reaction

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

Parameters

d

Returns

Reaction


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Parameters

typeUrlPrefix?

string

Returns

string


toObject()

static toObject(m, o?): object

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

Parameters

m

Reaction

o?

IConversionOptions

Returns

object