Class: EventResponse
Defined in: WAProto/index.d.ts:14453
Represents an EventResponse.
Implements
Constructors
new EventResponse()
new EventResponse(
properties
?):EventResponse
Defined in: WAProto/index.d.ts:14459
Constructs a new EventResponse.
Parameters
properties?
Properties to set
Returns
Properties
eventResponseMessage?
optional
eventResponseMessage:null
|IEventResponseMessage
Defined in: WAProto/index.d.ts:14468
EventResponse eventResponseMessage.
Implementation of
IEventResponse
.eventResponseMessage
eventResponseMessageKey?
optional
eventResponseMessageKey:null
|IMessageKey
Defined in: WAProto/index.d.ts:14462
EventResponse eventResponseMessageKey.
Implementation of
IEventResponse
.eventResponseMessageKey
timestampMs?
optional
timestampMs:null
|number
|Long
Defined in: WAProto/index.d.ts:14465
EventResponse timestampMs.
Implementation of
unread?
optional
unread:null
|boolean
Defined in: WAProto/index.d.ts:14471
EventResponse unread.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:14541
Converts this EventResponse to JSON.
Returns
object
JSON object
create()
static
create(properties
?):EventResponse
Defined in: WAProto/index.d.ts:14478
Creates a new EventResponse instance using the specified properties.
Parameters
properties?
Properties to set
Returns
EventResponse instance
decode()
static
decode(reader
,length
?):EventResponse
Defined in: WAProto/index.d.ts:14504
Decodes an EventResponse 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
EventResponse
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):EventResponse
Defined in: WAProto/index.d.ts:14513
Decodes an EventResponse message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
EventResponse
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:14486
Encodes the specified EventResponse message. Does not implicitly verify messages.
Parameters
message
EventResponse 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:14494
Encodes the specified EventResponse message, length delimited. Does not implicitly verify messages.
Parameters
message
EventResponse message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):EventResponse
Defined in: WAProto/index.d.ts:14527
Creates an EventResponse message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
EventResponse
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:14548
Gets the default type url for EventResponse
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:14535
Creates a plain object from an EventResponse message. Also converts values to other types if specified.
Parameters
message
EventResponse
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:14520
Verifies an EventResponse message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not