Class: WebNotificationsInfo
Defined in: WAProto/index.d.ts:53376
Represents a WebNotificationsInfo.
Implements
Constructors
new WebNotificationsInfo()
new WebNotificationsInfo(
properties
?):WebNotificationsInfo
Defined in: WAProto/index.d.ts:53382
Constructs a new WebNotificationsInfo.
Parameters
properties?
Properties to set
Returns
Properties
notifyMessageCount?
optional
notifyMessageCount:null
|number
Defined in: WAProto/index.d.ts:53391
WebNotificationsInfo notifyMessageCount.
Implementation of
IWebNotificationsInfo
.notifyMessageCount
notifyMessages
notifyMessages:
IWebMessageInfo
[]
Defined in: WAProto/index.d.ts:53394
WebNotificationsInfo notifyMessages.
Implementation of
IWebNotificationsInfo
.notifyMessages
timestamp?
optional
timestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:53385
WebNotificationsInfo timestamp.
Implementation of
IWebNotificationsInfo
.timestamp
unreadChats?
optional
unreadChats:null
|number
Defined in: WAProto/index.d.ts:53388
WebNotificationsInfo unreadChats.
Implementation of
IWebNotificationsInfo
.unreadChats
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:53464
Converts this WebNotificationsInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):WebNotificationsInfo
Defined in: WAProto/index.d.ts:53401
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:53427
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:53436
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:53409
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:53417
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:53450
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:53471
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:53458
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:53443
Verifies a WebNotificationsInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not