Class: WebNotificationsInfo
Defined in: WAProto/index.d.ts:50286
Represents a WebNotificationsInfo.
Implements
Constructors
new WebNotificationsInfo()
new WebNotificationsInfo(
properties
?):WebNotificationsInfo
Defined in: WAProto/index.d.ts:50292
Constructs a new WebNotificationsInfo.
Parameters
properties?
Properties to set
Returns
Properties
notifyMessageCount?
optional
notifyMessageCount:null
|number
Defined in: WAProto/index.d.ts:50301
WebNotificationsInfo notifyMessageCount.
Implementation of
IWebNotificationsInfo
.notifyMessageCount
notifyMessages
notifyMessages:
IWebMessageInfo
[]
Defined in: WAProto/index.d.ts:50304
WebNotificationsInfo notifyMessages.
Implementation of
IWebNotificationsInfo
.notifyMessages
timestamp?
optional
timestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:50295
WebNotificationsInfo timestamp.
Implementation of
IWebNotificationsInfo
.timestamp
unreadChats?
optional
unreadChats:null
|number
Defined in: WAProto/index.d.ts:50298
WebNotificationsInfo unreadChats.
Implementation of
IWebNotificationsInfo
.unreadChats
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:50374
Converts this WebNotificationsInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):WebNotificationsInfo
Defined in: WAProto/index.d.ts:50311
Creates a new WebNotificationsInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
WebNotificationsInfo instance
decode()
static
decode(reader
,length
?):WebNotificationsInfo
Defined in: WAProto/index.d.ts:50337
Decodes a WebNotificationsInfo 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
WebNotificationsInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):WebNotificationsInfo
Defined in: WAProto/index.d.ts:50346
Decodes a WebNotificationsInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
WebNotificationsInfo
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:50319
Encodes the specified WebNotificationsInfo message. Does not implicitly verify messages.
Parameters
message
WebNotificationsInfo 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:50327
Encodes the specified WebNotificationsInfo message, length delimited. Does not implicitly verify messages.
Parameters
message
WebNotificationsInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):WebNotificationsInfo
Defined in: WAProto/index.d.ts:50360
Creates a WebNotificationsInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
WebNotificationsInfo
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:50381
Gets the default type url for WebNotificationsInfo
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:50368
Creates a plain object from a WebNotificationsInfo message. Also converts values to other types if specified.
Parameters
message
WebNotificationsInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:50353
Verifies a WebNotificationsInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not