Class: GlobalSettings
Defined in: WAProto/index.d.ts:14967
Represents a GlobalSettings.
Implements
Constructors
new GlobalSettings()
new GlobalSettings(
properties
?):GlobalSettings
Defined in: WAProto/index.d.ts:14973
Constructs a new GlobalSettings.
Parameters
properties?
Properties to set
Returns
Properties
autoDownloadCellular?
optional
autoDownloadCellular:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:14988
GlobalSettings autoDownloadCellular.
Implementation of
IGlobalSettings
.autoDownloadCellular
autoDownloadRoaming?
optional
autoDownloadRoaming:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:14991
GlobalSettings autoDownloadRoaming.
Implementation of
IGlobalSettings
.autoDownloadRoaming
autoDownloadWiFi?
optional
autoDownloadWiFi:null
|IAutoDownloadSettings
Defined in: WAProto/index.d.ts:14985
GlobalSettings autoDownloadWiFi.
Implementation of
IGlobalSettings
.autoDownloadWiFi
autoUnarchiveChats?
optional
autoUnarchiveChats:null
|boolean
Defined in: WAProto/index.d.ts:15015
GlobalSettings autoUnarchiveChats.
Implementation of
IGlobalSettings
.autoUnarchiveChats
avatarUserSettings?
optional
avatarUserSettings:null
|IAvatarUserSettings
Defined in: WAProto/index.d.ts:15006
GlobalSettings avatarUserSettings.
Implementation of
IGlobalSettings
.avatarUserSettings
chatDbLidMigrationTimestamp?
optional
chatDbLidMigrationTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:15033
GlobalSettings chatDbLidMigrationTimestamp.
Implementation of
IGlobalSettings
.chatDbLidMigrationTimestamp
chatLockSettings?
optional
chatLockSettings:null
|IChatLockSettings
Defined in: WAProto/index.d.ts:15030
GlobalSettings chatLockSettings.
Implementation of
IGlobalSettings
.chatLockSettings
darkThemeWallpaper?
optional
darkThemeWallpaper:null
|IWallpaperSettings
Defined in: WAProto/index.d.ts:14982
GlobalSettings darkThemeWallpaper.
Implementation of
IGlobalSettings
.darkThemeWallpaper
disappearingModeDuration?
optional
disappearingModeDuration:null
|number
Defined in: WAProto/index.d.ts:15000
GlobalSettings disappearingModeDuration.
Implementation of
IGlobalSettings
.disappearingModeDuration
disappearingModeTimestamp?
optional
disappearingModeTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:15003
GlobalSettings disappearingModeTimestamp.
Implementation of
IGlobalSettings
.disappearingModeTimestamp
fontSize?
optional
fontSize:null
|number
Defined in: WAProto/index.d.ts:15009
GlobalSettings fontSize.
Implementation of
groupNotificationSettings?
optional
groupNotificationSettings:null
|INotificationSettings
Defined in: WAProto/index.d.ts:15027
GlobalSettings groupNotificationSettings.
Implementation of
IGlobalSettings
.groupNotificationSettings
individualNotificationSettings?
optional
individualNotificationSettings:null
|INotificationSettings
Defined in: WAProto/index.d.ts:15024
GlobalSettings individualNotificationSettings.
Implementation of
IGlobalSettings
.individualNotificationSettings
lightThemeWallpaper?
optional
lightThemeWallpaper:null
|IWallpaperSettings
Defined in: WAProto/index.d.ts:14976
GlobalSettings lightThemeWallpaper.
Implementation of
IGlobalSettings
.lightThemeWallpaper
mediaVisibility?
optional
mediaVisibility:null
|MediaVisibility
Defined in: WAProto/index.d.ts:14979
GlobalSettings mediaVisibility.
Implementation of
IGlobalSettings
.mediaVisibility
photoQualityMode?
optional
photoQualityMode:null
|number
Defined in: WAProto/index.d.ts:15021
GlobalSettings photoQualityMode.
Implementation of
IGlobalSettings
.photoQualityMode
securityNotifications?
optional
securityNotifications:null
|boolean
Defined in: WAProto/index.d.ts:15012
GlobalSettings securityNotifications.
Implementation of
IGlobalSettings
.securityNotifications
showGroupNotificationsPreview?
optional
showGroupNotificationsPreview:null
|boolean
Defined in: WAProto/index.d.ts:14997
GlobalSettings showGroupNotificationsPreview.
Implementation of
IGlobalSettings
.showGroupNotificationsPreview
showIndividualNotificationsPreview?
optional
showIndividualNotificationsPreview:null
|boolean
Defined in: WAProto/index.d.ts:14994
GlobalSettings showIndividualNotificationsPreview.
Implementation of
IGlobalSettings
.showIndividualNotificationsPreview
videoQualityMode?
optional
videoQualityMode:null
|number
Defined in: WAProto/index.d.ts:15018
GlobalSettings videoQualityMode.
Implementation of
IGlobalSettings
.videoQualityMode
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:15103
Converts this GlobalSettings to JSON.
Returns
object
JSON object
create()
static
create(properties
?):GlobalSettings
Defined in: WAProto/index.d.ts:15040
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:15066
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:15075
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:15048
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:15056
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:15089
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:15110
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:15097
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:15082
Verifies a GlobalSettings message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not