Constructs a new MessageContextInfo.
Optional
properties:
IMessageContextInfo
Properties to set
Optional
botMessageContextInfo botMessageSecret.
Optional
botMessageContextInfo botMetadata.
Optional
capiMessageContextInfo capiCreatedGroup.
Optional
deviceMessageContextInfo deviceListMetadata.
Optional
deviceMessageContextInfo deviceListMetadataVersion.
Optional
messageMessageContextInfo messageAddOnDurationInSecs.
Optional
messageMessageContextInfo messageAddOnExpiryType.
Optional
messageMessageContextInfo messageAssociation.
Optional
messageMessageContextInfo messageSecret.
Optional
paddingMessageContextInfo paddingBytes.
Optional
reportingMessageContextInfo reportingTokenVersion.
Optional
supportMessageContextInfo supportPayload.
Static
create
Creates a new MessageContextInfo instance using the specified properties.
Optional
properties:
IMessageContextInfo
Properties to set
MessageContextInfo instance
Static
decode
Decodes a MessageContextInfo message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
MessageContextInfo
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a MessageContextInfo message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
MessageContextInfo
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified MessageContextInfo message. Does not implicitly verify messages.
MessageContextInfo message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified MessageContextInfo message, length delimited. Does not implicitly verify messages.
MessageContextInfo message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates a MessageContextInfo message from a plain object. Also converts values to their respective internal types.
Plain object
MessageContextInfo
Static
getStatic
toCreates a plain object from a MessageContextInfo message. Also converts values to other types if specified.
MessageContextInfo
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a MessageContextInfo.