Constructs a new CtwaContextData.
Optional
properties:
ICtwaContextData
Properties to set
CtwaContextData conversionData.
CtwaContextData conversionSource.
CtwaContextData description.
CtwaContextData isSuspiciousLink.
CtwaContextData mediaType.
CtwaContextData mediaUrl.
CtwaContextData sourceId.
CtwaContextData sourceType.
CtwaContextData sourceUrl.
CtwaContextData thumbnail.
CtwaContextData thumbnailUrl.
CtwaContextData title.
Static
create
Creates a new CtwaContextData instance using the specified properties.
Optional
properties:
ICtwaContextData
Properties to set
CtwaContextData instance
Static
decode
Decodes a CtwaContextData message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length:
number
Message length if known beforehand
CtwaContextData
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a CtwaContextData message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
CtwaContextData
If the payload is not a reader or valid buffer
If required fields are missing
Static
encode
Encodes the specified CtwaContextData message. Does not implicitly verify messages.
CtwaContextData message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
encodeEncodes the specified CtwaContextData message, length delimited. Does not implicitly verify messages.
CtwaContextData message or plain object to encode
Optional
writer:
Writer
Writer to encode to
Writer
Static
fromCreates a CtwaContextData message from a plain object. Also converts values to their respective internal types.
Plain object
CtwaContextData
Static
toCreates a plain object from a CtwaContextData message. Also converts values to other types if specified.
CtwaContextData
Optional
options:
IConversionOptions
Conversion options
Plain object
Static
verify
Generated using TypeDoc
Represents a CtwaContextData.