Skip to main content

Class: PastParticipant

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

Represents a PastParticipant.

Implements

Constructors

new PastParticipant()

new PastParticipant(properties?): PastParticipant

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

Constructs a new PastParticipant.

Parameters

properties?

IPastParticipant

Properties to set

Returns

PastParticipant

Properties

leaveReason?

optional leaveReason: null | LeaveReason

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

PastParticipant leaveReason.

Implementation of

IPastParticipant.leaveReason


leaveTs?

optional leaveTs: null | number | Long

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

PastParticipant leaveTs.

Implementation of

IPastParticipant.leaveTs


userJid?

optional userJid: null | string

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

PastParticipant userJid.

Implementation of

IPastParticipant.userJid

Methods

toJSON()

toJSON(): object

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

Converts this PastParticipant to JSON.

Returns

object

JSON object


create()

static create(properties?): PastParticipant

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

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

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

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

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

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

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

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

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

Verifies a PastParticipant message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not