Skip to main content

Class: StatusMentionMessage

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

Represents a StatusMentionMessage.

Implements

Constructors

new StatusMentionMessage()

new StatusMentionMessage(properties?): StatusMentionMessage

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

Constructs a new StatusMentionMessage.

Parameters

properties?

IStatusMentionMessage

Properties to set

Returns

StatusMentionMessage

Properties

quotedStatus?

optional quotedStatus: null | IMessage

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

StatusMentionMessage quotedStatus.

Implementation of

IStatusMentionMessage.quotedStatus

Methods

toJSON()

toJSON(): object

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

Converts this StatusMentionMessage to JSON.

Returns

object

JSON object


create()

static create(properties?): StatusMentionMessage

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

Creates a new StatusMentionMessage instance using the specified properties.

Parameters

properties?

IStatusMentionMessage

Properties to set

Returns

StatusMentionMessage

StatusMentionMessage instance


decode()

static decode(reader, length?): StatusMentionMessage

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

Decodes a StatusMentionMessage 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

StatusMentionMessage

StatusMentionMessage

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): StatusMentionMessage

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

StatusMentionMessage

StatusMentionMessage

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:42796

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

Parameters

message

IStatusMentionMessage

StatusMentionMessage 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:42804

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

Parameters

message

IStatusMentionMessage

StatusMentionMessage message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): StatusMentionMessage

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

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

Parameters

object

Plain object

Returns

StatusMentionMessage

StatusMentionMessage


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for StatusMentionMessage

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:42845

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

Parameters

message

StatusMentionMessage

StatusMentionMessage

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a StatusMentionMessage message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not