toggle menu
stream-chat-android
6.6.0
androidJvm
switch theme
search in API
stream-chat-android-client
/
io.getstream.chat.android.client.events
/
AnswerCastedEvent
Answer
Casted
Event
data
class
AnswerCastedEvent
(
val
type
:
String
,
val
createdAt
:
Date
,
val
rawCreatedAt
:
String
?
,
val
cid
:
String
,
val
channelType
:
String
,
val
channelId
:
String
,
val
poll
:
Poll
,
val
newAnswer
:
Answer
)
:
CidEvent
,
HasPoll
Triggered when a vote is casted.
Members
Members & Extensions
Constructors
Answer
Casted
Event
Link copied to clipboard
constructor
(
type
:
String
,
createdAt
:
Date
,
rawCreatedAt
:
String
?
,
cid
:
String
,
channelType
:
String
,
channelId
:
String
,
poll
:
Poll
,
newAnswer
:
Answer
)
Properties
channel
Id
Link copied to clipboard
open
override
val
channelId
:
String
channel
Type
Link copied to clipboard
open
override
val
channelType
:
String
cid
Link copied to clipboard
open
override
val
cid
:
String
created
At
Link copied to clipboard
open
override
val
createdAt
:
Date
new
Answer
Link copied to clipboard
val
newAnswer
:
Answer
poll
Link copied to clipboard
open
override
val
poll
:
Poll
raw
Created
At
Link copied to clipboard
open
override
val
rawCreatedAt
:
String
?
type
Link copied to clipboard
open
override
val
type
:
String
Inherited properties
seq
Link copied to clipboard
val
seq
:
Int
Inherited functions
enrich
If
Needed
Link copied to clipboard
fun
ChatEvent
.
enrichIfNeeded
(
)
:
ChatEvent
process
Poll
Link copied to clipboard
fun
AnswerCastedEvent
.
processPoll
(
getOldPoll
:
(
String
)
->
Poll
?
)
:
Poll