Skip to main content

Class: Reaction

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

Implements

Constructors

new Reaction()

new Reaction(p?): Reaction

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

Parameters

p?

IReaction

Returns

Reaction

Properties

groupingKey?

optional groupingKey: null | string

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

Implementation of

IReaction.groupingKey


key?

optional key: null | IMessageKey

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

Implementation of

IReaction.key


senderTimestampMs?

optional senderTimestampMs: null | number | Long

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

Implementation of

IReaction.senderTimestampMs


text?

optional text: null | string

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

Implementation of

IReaction.text


unread?

optional unread: null | boolean

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

Implementation of

IReaction.unread

Methods

toJSON()

toJSON(): object

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

Returns

object


create()

static create(properties?): Reaction

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

Parameters

properties?

IReaction

Returns

Reaction


decode()

static decode(r, l?): Reaction

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

Parameters

r

Uint8Array<ArrayBufferLike> | Reader

l?

number

Returns

Reaction


encode()

static encode(m, w?): Writer

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

Parameters

m

IReaction

w?

Writer

Returns

Writer


fromObject()

static fromObject(d): Reaction

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

Parameters

d

Returns

Reaction


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Parameters

typeUrlPrefix?

string

Returns

string


toObject()

static toObject(m, o?): object

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

Parameters

m

Reaction

o?

IConversionOptions

Returns

object