Class NewMessageEvent
-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.events.HasMessage,io.getstream.chat.android.client.events.HasUnreadCounts,io.getstream.chat.android.client.events.HasWatcherCount,io.getstream.chat.android.client.events.UserEvent
public final class NewMessageEvent extends CidEvent implements UserEvent, HasMessage, HasWatcherCount, HasUnreadCounts
Triggered when a new message is added on a channel.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final DatecreatedAtprivate final StringrawCreatedAtprivate final Useruserprivate final Stringcidprivate final StringchannelTypeprivate final StringchannelIdprivate final Messagemessageprivate final IntegerwatcherCountprivate final IntegertotalUnreadCountprivate final IntegerunreadChannelsprivate final Integerseq
-
Method Summary
Modifier and Type Method Description StringgetType()DategetCreatedAt()StringgetRawCreatedAt()UsergetUser()StringgetCid()StringgetChannelType()StringgetChannelId()MessagegetMessage()IntegergetWatcherCount()IntegergetTotalUnreadCount()IntegergetUnreadChannels()-
-
Method Detail
-
getCreatedAt
Date getCreatedAt()
-
getRawCreatedAt
String getRawCreatedAt()
-
getUser
User getUser()
-
getChannelType
String getChannelType()
-
getChannelId
String getChannelId()
-
getMessage
Message getMessage()
-
getWatcherCount
Integer getWatcherCount()
-
getTotalUnreadCount
Integer getTotalUnreadCount()
-
getUnreadChannels
Integer getUnreadChannels()
-
-
-
-