MessageReminder

@Immutable
data class MessageReminder(val remindAt: Date?, val cid: String, val channel: Channel?, val messageId: String, val message: Message?, val createdAt: Date, val updatedAt: Date) : ComparableFieldProvider

Model holding data about a message reminder.

Constructors

Link copied to clipboard
constructor(remindAt: Date?, cid: String, channel: Channel?, messageId: String, message: Message?, createdAt: Date, updatedAt: Date)

Types

Link copied to clipboard
class Builder

Builder for MessageReminder.

Properties

Link copied to clipboard

The channel in which the message belongs to.

Link copied to clipboard
val cid: String

CID of the channel in which the message is.

Link copied to clipboard

Date when the reminder was created.

Link copied to clipboard

The message that has been marked for reminder.

Link copied to clipboard

ID of the message for which the reminder is set.

Link copied to clipboard

The date when the user should be reminded about this message. If null, this is a bookmark type reminder without a notification.

Link copied to clipboard

Date when the reminder was last updated.

Functions

Link copied to clipboard
open override fun getComparableField(fieldName: String): Comparable<*>?

Gets a comparable fields from a name.

Link copied to clipboard

Creates a Builder of this MessageReminder instance, allowing to modify some of its properties.