Class: KeepInChat
Defined in: WAProto/index.d.ts:15357
Represents a KeepInChat.
Implements
Constructors
new KeepInChat()
new KeepInChat(
properties
?):KeepInChat
Defined in: WAProto/index.d.ts:15363
Constructs a new KeepInChat.
Parameters
properties?
Properties to set
Returns
Properties
clientTimestampMs?
optional
clientTimestampMs:null
|number
|Long
Defined in: WAProto/index.d.ts:15378
KeepInChat clientTimestampMs.
Implementation of
deviceJid?
optional
deviceJid:null
|string
Defined in: WAProto/index.d.ts:15375
KeepInChat deviceJid.
Implementation of
keepType?
optional
keepType:null
|KeepType
Defined in: WAProto/index.d.ts:15366
KeepInChat keepType.
Implementation of
key?
optional
key:null
|IMessageKey
Defined in: WAProto/index.d.ts:15372
KeepInChat key.
Implementation of
serverTimestamp?
optional
serverTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:15369
KeepInChat serverTimestamp.
Implementation of
serverTimestampMs?
optional
serverTimestampMs:null
|number
|Long
Defined in: WAProto/index.d.ts:15381
KeepInChat serverTimestampMs.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:15451
Converts this KeepInChat to JSON.
Returns
object
JSON object
create()
static
create(properties
?):KeepInChat
Defined in: WAProto/index.d.ts:15388
Creates a new KeepInChat instance using the specified properties.
Parameters
properties?
Properties to set
Returns
KeepInChat instance
decode()
static
decode(reader
,length
?):KeepInChat
Defined in: WAProto/index.d.ts:15414
Decodes a KeepInChat 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
KeepInChat
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):KeepInChat
Defined in: WAProto/index.d.ts:15423
Decodes a KeepInChat message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
KeepInChat
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:15396
Encodes the specified KeepInChat message. Does not implicitly verify messages.
Parameters
message
KeepInChat 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:15404
Encodes the specified KeepInChat message, length delimited. Does not implicitly verify messages.
Parameters
message
KeepInChat message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):KeepInChat
Defined in: WAProto/index.d.ts:15437
Creates a KeepInChat message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
KeepInChat
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:15458
Gets the default type url for KeepInChat
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:15445
Creates a plain object from a KeepInChat message. Also converts values to other types if specified.
Parameters
message
KeepInChat
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:15430
Verifies a KeepInChat message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not