Skip to main content

Class: NotificationSettings

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

Represents a NotificationSettings.

Implements

Constructors

new NotificationSettings()

new NotificationSettings(properties?): NotificationSettings

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

Constructs a new NotificationSettings.

Parameters

properties?

INotificationSettings

Properties to set

Returns

NotificationSettings

Properties

callVibrate?

optional callVibrate: null | string

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

NotificationSettings callVibrate.

Implementation of

INotificationSettings.callVibrate


lowPriorityNotifications?

optional lowPriorityNotifications: null | boolean

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

NotificationSettings lowPriorityNotifications.

Implementation of

INotificationSettings.lowPriorityNotifications


messageLight?

optional messageLight: null | string

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

NotificationSettings messageLight.

Implementation of

INotificationSettings.messageLight


messagePopup?

optional messagePopup: null | string

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

NotificationSettings messagePopup.

Implementation of

INotificationSettings.messagePopup


messageVibrate?

optional messageVibrate: null | string

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

NotificationSettings messageVibrate.

Implementation of

INotificationSettings.messageVibrate


reactionsMuted?

optional reactionsMuted: null | boolean

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

NotificationSettings reactionsMuted.

Implementation of

INotificationSettings.reactionsMuted

Methods

toJSON()

toJSON(): object

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

Converts this NotificationSettings to JSON.

Returns

object

JSON object


create()

static create(properties?): NotificationSettings

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

Creates a new NotificationSettings instance using the specified properties.

Parameters

properties?

INotificationSettings

Properties to set

Returns

NotificationSettings

NotificationSettings instance


decode()

static decode(reader, length?): NotificationSettings

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

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

NotificationSettings

NotificationSettings

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): NotificationSettings

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

NotificationSettings

NotificationSettings

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

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

Parameters

message

INotificationSettings

NotificationSettings 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:35019

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

Parameters

message

INotificationSettings

NotificationSettings message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): NotificationSettings

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

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

Parameters

object

Plain object

Returns

NotificationSettings

NotificationSettings


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for NotificationSettings

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

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

Parameters

message

NotificationSettings

NotificationSettings

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a NotificationSettings message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not