NewMessageEvent

data class NewMessageEvent(    val type: String,     val createdAt: Date,     val rawCreatedAt: String,     val user: User,     val cid: String,     val channelType: String,     val channelId: String,     val message: Message,     val watcherCount: Int = 0,     val totalUnreadCount: Int = 0,     val unreadChannels: Int = 0,     val channelLastMessageAt: Date?) : CidEvent, UserEvent, HasMessage, HasWatcherCount, HasUnreadCounts

Triggered when a new message is added on a channel.

Constructors

Link copied to clipboard
constructor(    type: String,     createdAt: Date,     rawCreatedAt: String,     user: User,     cid: String,     channelType: String,     channelId: String,     message: Message,     watcherCount: Int = 0,     totalUnreadCount: Int = 0,     unreadChannels: Int = 0,     channelLastMessageAt: Date?)

Properties

Link copied to clipboard
open override val channelId: String
Link copied to clipboard
open override val channelLastMessageAt: Date?
Link copied to clipboard
open override val channelType: String
Link copied to clipboard
open override val cid: String
Link copied to clipboard
open override val createdAt: Date
Link copied to clipboard
open override val message: Message
Link copied to clipboard
open override val rawCreatedAt: String
Link copied to clipboard
open override val totalUnreadCount: Int = 0
Link copied to clipboard
open override val type: String
Link copied to clipboard
open override val unreadChannels: Int = 0
Link copied to clipboard
open override val user: User
Link copied to clipboard
open override val watcherCount: Int = 0

Inherited properties

Link copied to clipboard
val seq: Int

Inherited functions

Link copied to clipboard