Class: DeviceCapabilities
Defined in: WAProto/index.d.ts:12741
Represents a DeviceCapabilities.
Implements
Constructors
new DeviceCapabilities()
new DeviceCapabilities(
properties
?):DeviceCapabilities
Defined in: WAProto/index.d.ts:12747
Constructs a new DeviceCapabilities.
Parameters
properties?
Properties to set
Returns
Properties
chatLockSupportLevel?
optional
chatLockSupportLevel:null
|ChatLockSupportLevel
Defined in: WAProto/index.d.ts:12750
DeviceCapabilities chatLockSupportLevel.
Implementation of
IDeviceCapabilities
.chatLockSupportLevel
lidMigration?
optional
lidMigration:null
|ILIDMigration
Defined in: WAProto/index.d.ts:12753
DeviceCapabilities lidMigration.
Implementation of
IDeviceCapabilities
.lidMigration
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:12823
Converts this DeviceCapabilities to JSON.
Returns
object
JSON object
create()
static
create(properties
?):DeviceCapabilities
Defined in: WAProto/index.d.ts:12760
Creates a new DeviceCapabilities instance using the specified properties.
Parameters
properties?
Properties to set
Returns
DeviceCapabilities instance
decode()
static
decode(reader
,length
?):DeviceCapabilities
Defined in: WAProto/index.d.ts:12786
Decodes a DeviceCapabilities 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
DeviceCapabilities
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):DeviceCapabilities
Defined in: WAProto/index.d.ts:12795
Decodes a DeviceCapabilities message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
DeviceCapabilities
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:12768
Encodes the specified DeviceCapabilities message. Does not implicitly verify messages.
Parameters
message
DeviceCapabilities 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:12776
Encodes the specified DeviceCapabilities message, length delimited. Does not implicitly verify messages.
Parameters
message
DeviceCapabilities message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):DeviceCapabilities
Defined in: WAProto/index.d.ts:12809
Creates a DeviceCapabilities message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
DeviceCapabilities
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:12830
Gets the default type url for DeviceCapabilities
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:12817
Creates a plain object from a DeviceCapabilities message. Also converts values to other types if specified.
Parameters
message
DeviceCapabilities
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:12802
Verifies a DeviceCapabilities message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not