Class: EventResponse
Defined in: WAProto/index.d.ts:13030
Represents an EventResponse.
Implements
Constructors
new EventResponse()
new EventResponse(
properties
?):EventResponse
Defined in: WAProto/index.d.ts:13036
Constructs a new EventResponse.
Parameters
properties?
Properties to set
Returns
Properties
eventResponseMessage?
optional
eventResponseMessage:null
|IEventResponseMessage
Defined in: WAProto/index.d.ts:13045
EventResponse eventResponseMessage.
Implementation of
IEventResponse
.eventResponseMessage
eventResponseMessageKey?
optional
eventResponseMessageKey:null
|IMessageKey
Defined in: WAProto/index.d.ts:13039
EventResponse eventResponseMessageKey.
Implementation of
IEventResponse
.eventResponseMessageKey
timestampMs?
optional
timestampMs:null
|number
|Long
Defined in: WAProto/index.d.ts:13042
EventResponse timestampMs.
Implementation of
unread?
optional
unread:null
|boolean
Defined in: WAProto/index.d.ts:13048
EventResponse unread.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:13118
Converts this EventResponse to JSON.
Returns
object
JSON object
create()
static
create(properties
?):EventResponse
Defined in: WAProto/index.d.ts:13055
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:13081
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:13090
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:13063
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:13071
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:13104
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:13125
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:13112
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:13097
Verifies an EventResponse message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not