Skip to main content

Class: PastParticipant

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

Represents a PastParticipant.

Implements

Constructors

new PastParticipant()

new PastParticipant(properties?): PastParticipant

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

Constructs a new PastParticipant.

Parameters

properties?

IPastParticipant

Properties to set

Returns

PastParticipant

Properties

leaveReason?

optional leaveReason: null | LeaveReason

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

PastParticipant leaveReason.

Implementation of

IPastParticipant.leaveReason


leaveTs?

optional leaveTs: null | number | Long

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

PastParticipant leaveTs.

Implementation of

IPastParticipant.leaveTs


userJid?

optional userJid: null | string

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

PastParticipant userJid.

Implementation of

IPastParticipant.userJid

Methods

toJSON()

toJSON(): object

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

Converts this PastParticipant to JSON.

Returns

object

JSON object


create()

static create(properties?): PastParticipant

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

Creates a new PastParticipant instance using the specified properties.

Parameters

properties?

IPastParticipant

Properties to set

Returns

PastParticipant

PastParticipant instance


decode()

static decode(reader, length?): PastParticipant

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

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

PastParticipant

PastParticipant

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): PastParticipant

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

PastParticipant

PastParticipant

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

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

Parameters

message

IPastParticipant

PastParticipant 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:35237

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

Parameters

message

IPastParticipant

PastParticipant message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): PastParticipant

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

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

Parameters

object

Plain object

Returns

PastParticipant

PastParticipant


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for PastParticipant

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

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

Parameters

message

PastParticipant

PastParticipant

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a PastParticipant message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not