Skip to main content

Class: MediaRetryNotification

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

Represents a MediaRetryNotification.

Implements

Constructors

new MediaRetryNotification()

new MediaRetryNotification(properties?): MediaRetryNotification

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

Constructs a new MediaRetryNotification.

Parameters

properties?

IMediaRetryNotification

Properties to set

Returns

MediaRetryNotification

Properties

directPath?

optional directPath: null | string

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

MediaRetryNotification directPath.

Implementation of

IMediaRetryNotification.directPath


messageSecret?

optional messageSecret: null | Uint8Array<ArrayBufferLike>

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

MediaRetryNotification messageSecret.

Implementation of

IMediaRetryNotification.messageSecret


result?

optional result: null | ResultType

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

MediaRetryNotification result.

Implementation of

IMediaRetryNotification.result


stanzaId?

optional stanzaId: null | string

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

MediaRetryNotification stanzaId.

Implementation of

IMediaRetryNotification.stanzaId

Methods

toJSON()

toJSON(): object

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

Converts this MediaRetryNotification to JSON.

Returns

object

JSON object


create()

static create(properties?): MediaRetryNotification

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

Creates a new MediaRetryNotification instance using the specified properties.

Parameters

properties?

IMediaRetryNotification

Properties to set

Returns

MediaRetryNotification

MediaRetryNotification instance


decode()

static decode(reader, length?): MediaRetryNotification

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

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

MediaRetryNotification

MediaRetryNotification

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): MediaRetryNotification

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

MediaRetryNotification

MediaRetryNotification

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

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

Parameters

message

IMediaRetryNotification

MediaRetryNotification 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:16686

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

Parameters

message

IMediaRetryNotification

MediaRetryNotification message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): MediaRetryNotification

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

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

Parameters

object

Plain object

Returns

MediaRetryNotification

MediaRetryNotification


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for MediaRetryNotification

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

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

Parameters

message

MediaRetryNotification

MediaRetryNotification

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a MediaRetryNotification message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not