Class: CallLogRecord
Defined in: WAProto/index.d.ts:6211
Represents a CallLogRecord.
Implements
Constructors
new CallLogRecord()
new CallLogRecord(
properties
?):CallLogRecord
Defined in: WAProto/index.d.ts:6217
Constructs a new CallLogRecord.
Parameters
properties?
Properties to set
Returns
Properties
callCreatorJid?
optional
callCreatorJid:null
|string
Defined in: WAProto/index.d.ts:6253
CallLogRecord callCreatorJid.
Implementation of
callId?
optional
callId:null
|string
Defined in: WAProto/index.d.ts:6250
CallLogRecord callId.
Implementation of
callLinkToken?
optional
callLinkToken:null
|string
Defined in: WAProto/index.d.ts:6244
CallLogRecord callLinkToken.
Implementation of
callResult?
optional
callResult:null
|CallResult
Defined in: WAProto/index.d.ts:6220
CallLogRecord callResult.
Implementation of
callType?
optional
callType:null
|CallType
Defined in: WAProto/index.d.ts:6262
CallLogRecord callType.
Implementation of
duration?
optional
duration:null
|number
|Long
Defined in: WAProto/index.d.ts:6229
CallLogRecord duration.
Implementation of
groupJid?
optional
groupJid:null
|string
Defined in: WAProto/index.d.ts:6256
CallLogRecord groupJid.
Implementation of
isCallLink?
optional
isCallLink:null
|boolean
Defined in: WAProto/index.d.ts:6241
CallLogRecord isCallLink.
Implementation of
isDndMode?
optional
isDndMode:null
|boolean
Defined in: WAProto/index.d.ts:6223
CallLogRecord isDndMode.
Implementation of
isIncoming?
optional
isIncoming:null
|boolean
Defined in: WAProto/index.d.ts:6235
CallLogRecord isIncoming.
Implementation of
isVideo?
optional
isVideo:null
|boolean
Defined in: WAProto/index.d.ts:6238
CallLogRecord isVideo.
Implementation of
participants
participants:
IParticipantInfo
[]
Defined in: WAProto/index.d.ts:6259
CallLogRecord participants.
Implementation of
scheduledCallId?
optional
scheduledCallId:null
|string
Defined in: WAProto/index.d.ts:6247
CallLogRecord scheduledCallId.
Implementation of
ICallLogRecord
.scheduledCallId
silenceReason?
optional
silenceReason:null
|SilenceReason
Defined in: WAProto/index.d.ts:6226
CallLogRecord silenceReason.
Implementation of
startTime?
optional
startTime:null
|number
|Long
Defined in: WAProto/index.d.ts:6232
CallLogRecord startTime.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:6332
Converts this CallLogRecord to JSON.
Returns
object
JSON object
create()
static
create(properties
?):CallLogRecord
Defined in: WAProto/index.d.ts:6269
Creates a new CallLogRecord instance using the specified properties.
Parameters
properties?
Properties to set
Returns
CallLogRecord instance
decode()
static
decode(reader
,length
?):CallLogRecord
Defined in: WAProto/index.d.ts:6295
Decodes a CallLogRecord 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
CallLogRecord
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):CallLogRecord
Defined in: WAProto/index.d.ts:6304
Decodes a CallLogRecord message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
CallLogRecord
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:6277
Encodes the specified CallLogRecord message. Does not implicitly verify messages.
Parameters
message
CallLogRecord 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:6285
Encodes the specified CallLogRecord message, length delimited. Does not implicitly verify messages.
Parameters
message
CallLogRecord message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):CallLogRecord
Defined in: WAProto/index.d.ts:6318
Creates a CallLogRecord message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
CallLogRecord
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:6339
Gets the default type url for CallLogRecord
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:6326
Creates a plain object from a CallLogRecord message. Also converts values to other types if specified.
Parameters
message
CallLogRecord
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:6311
Verifies a CallLogRecord message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not