Skip to main content

Class: PastParticipants

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

Represents a PastParticipants.

Implements

Constructors

new PastParticipants()

new PastParticipants(properties?): PastParticipants

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

Constructs a new PastParticipants.

Parameters

properties?

IPastParticipants

Properties to set

Returns

PastParticipants

Properties

groupJid?

optional groupJid: null | string

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

PastParticipants groupJid.

Implementation of

IPastParticipants.groupJid


pastParticipants

pastParticipants: IPastParticipant[]

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

PastParticipants pastParticipants.

Implementation of

IPastParticipants.pastParticipants

Methods

toJSON()

toJSON(): object

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

Converts this PastParticipants to JSON.

Returns

object

JSON object


create()

static create(properties?): PastParticipants

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

Creates a new PastParticipants instance using the specified properties.

Parameters

properties?

IPastParticipants

Properties to set

Returns

PastParticipants

PastParticipants instance


decode()

static decode(reader, length?): PastParticipants

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

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

PastParticipants

PastParticipants

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): PastParticipants

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

PastParticipants

PastParticipants

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

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

Parameters

message

IPastParticipants

PastParticipants 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:38075

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

Parameters

message

IPastParticipants

PastParticipants message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): PastParticipants

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

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

Parameters

object

Plain object

Returns

PastParticipants

PastParticipants


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for PastParticipants

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

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

Parameters

message

PastParticipants

PastParticipants

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a PastParticipants message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not