Class: GlobalSettings
Defined in: WAProto/index.d.ts:13541
Represents a GlobalSettings.
Implements
Constructors
new GlobalSettings()
new GlobalSettings(
properties
?):GlobalSettings
Defined in: WAProto/index.d.ts:13547
Constructs a new GlobalSettings.
Parameters
properties?
Properties to set
Returns
Properties
autoDownloadCellular?
optional
autoDownloadCellular:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:13562
GlobalSettings autoDownloadCellular.
Implementation of
IGlobalSettings
.autoDownloadCellular
autoDownloadRoaming?
optional
autoDownloadRoaming:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:13565
GlobalSettings autoDownloadRoaming.
Implementation of
IGlobalSettings
.autoDownloadRoaming
autoDownloadWiFi?
optional
autoDownloadWiFi:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:13559
GlobalSettings autoDownloadWiFi.
Implementation of
IGlobalSettings
.autoDownloadWiFi
autoUnarchiveChats?
optional
autoUnarchiveChats:null
|boolean
Defined in: WAProto/index.d.ts:13589
GlobalSettings autoUnarchiveChats.
Implementation of
IGlobalSettings
.autoUnarchiveChats
avatarUserSettings?
optional
avatarUserSettings:null
|IAvatarUserSettings
Defined in: WAProto/index.d.ts:13580
GlobalSettings avatarUserSettings.
Implementation of
IGlobalSettings
.avatarUserSettings
chatLockSettings?
optional
chatLockSettings:null
|IChatLockSettings
Defined in: WAProto/index.d.ts:13604
GlobalSettings chatLockSettings.
Implementation of
IGlobalSettings
.chatLockSettings
darkThemeWallpaper?
optional
darkThemeWallpaper:null
|IWallpaperSettings
Defined in: WAProto/index.d.ts:13556
GlobalSettings darkThemeWallpaper.
Implementation of
IGlobalSettings
.darkThemeWallpaper
disappearingModeDuration?
optional
disappearingModeDuration:null
|number
Defined in: WAProto/index.d.ts:13574
GlobalSettings disappearingModeDuration.
Implementation of
IGlobalSettings
.disappearingModeDuration
disappearingModeTimestamp?
optional
disappearingModeTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:13577
GlobalSettings disappearingModeTimestamp.
Implementation of
IGlobalSettings
.disappearingModeTimestamp
fontSize?
optional
fontSize:null
|number
Defined in: WAProto/index.d.ts:13583
GlobalSettings fontSize.
Implementation of
groupNotificationSettings?
optional
groupNotificationSettings:null
|INotificationSettings
Defined in: WAProto/index.d.ts:13601
GlobalSettings groupNotificationSettings.
Implementation of
IGlobalSettings
.groupNotificationSettings
individualNotificationSettings?
optional
individualNotificationSettings:null
|INotificationSettings
Defined in: WAProto/index.d.ts:13598
GlobalSettings individualNotificationSettings.
Implementation of
IGlobalSettings
.individualNotificationSettings
lightThemeWallpaper?
optional
lightThemeWallpaper:null
|IWallpaperSettings
Defined in: WAProto/index.d.ts:13550
GlobalSettings lightThemeWallpaper.
Implementation of
IGlobalSettings
.lightThemeWallpaper
mediaVisibility?
optional
mediaVisibility:null
|MediaVisibility
Defined in: WAProto/index.d.ts:13553
GlobalSettings mediaVisibility.
Implementation of
IGlobalSettings
.mediaVisibility
photoQualityMode?
optional
photoQualityMode:null
|number
Defined in: WAProto/index.d.ts:13595
GlobalSettings photoQualityMode.
Implementation of
IGlobalSettings
.photoQualityMode
securityNotifications?
optional
securityNotifications:null
|boolean
Defined in: WAProto/index.d.ts:13586
GlobalSettings securityNotifications.
Implementation of
IGlobalSettings
.securityNotifications
showGroupNotificationsPreview?
optional
showGroupNotificationsPreview:null
|boolean
Defined in: WAProto/index.d.ts:13571
GlobalSettings showGroupNotificationsPreview.
Implementation of
IGlobalSettings
.showGroupNotificationsPreview
showIndividualNotificationsPreview?
optional
showIndividualNotificationsPreview:null
|boolean
Defined in: WAProto/index.d.ts:13568
GlobalSettings showIndividualNotificationsPreview.
Implementation of
IGlobalSettings
.showIndividualNotificationsPreview
videoQualityMode?
optional
videoQualityMode:null
|number
Defined in: WAProto/index.d.ts:13592
GlobalSettings videoQualityMode.
Implementation of
IGlobalSettings
.videoQualityMode
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:13674
Converts this GlobalSettings to JSON.
Returns
object
JSON object
create()
static
create(properties
?):GlobalSettings
Defined in: WAProto/index.d.ts:13611
Creates a new GlobalSettings instance using the specified properties.
Parameters
properties?
Properties to set
Returns
GlobalSettings instance
decode()
static
decode(reader
,length
?):GlobalSettings
Defined in: WAProto/index.d.ts:13637
Decodes a GlobalSettings 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
GlobalSettings
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):GlobalSettings
Defined in: WAProto/index.d.ts:13646
Decodes a GlobalSettings message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
GlobalSettings
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:13619
Encodes the specified GlobalSettings message. Does not implicitly verify messages.
Parameters
message
GlobalSettings 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:13627
Encodes the specified GlobalSettings message, length delimited. Does not implicitly verify messages.
Parameters
message
GlobalSettings message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):GlobalSettings
Defined in: WAProto/index.d.ts:13660
Creates a GlobalSettings message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
GlobalSettings
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:13681
Gets the default type url for GlobalSettings
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:13668
Creates a plain object from a GlobalSettings message. Also converts values to other types if specified.
Parameters
message
GlobalSettings
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:13653
Verifies a GlobalSettings message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not