Skip to main content

Class: PastParticipants

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

Represents a PastParticipants.

Implements

Constructors

new PastParticipants()

new PastParticipants(properties?): PastParticipants

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

Constructs a new PastParticipants.

Parameters

properties?

IPastParticipants

Properties to set

Returns

PastParticipants

Properties

groupJid?

optional groupJid: null | string

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

PastParticipants groupJid.

Implementation of

IPastParticipants.groupJid


pastParticipants

pastParticipants: IPastParticipant[]

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

PastParticipants pastParticipants.

Implementation of

IPastParticipants.pastParticipants

Methods

toJSON()

toJSON(): object

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

Converts this PastParticipants to JSON.

Returns

object

JSON object


create()

static create(properties?): PastParticipants

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

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

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

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

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

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

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

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

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

Verifies a PastParticipants message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not