ChatChannel

sealed class ChatChannel(val channelId: String, val siteName: String, val previewText: String, val previewTimestamp: String?, val headerTitle: String, val subheaderTitle: String, val hasUnseenMessages: Boolean, val deletedTimestamp: String?)

Represents a single chat channel in ChatMyWay.

A ChatChannel can be part of an Order, Site, or Stop conversation. It contains common properties shared by all channel types, as well as specific properties for each subtype.

Inheritors

Constructors

Link copied to clipboard
protected constructor(channelId: String, siteName: String, previewText: String, previewTimestamp: String?, headerTitle: String, subheaderTitle: String, hasUnseenMessages: Boolean, deletedTimestamp: String?)

Types

Link copied to clipboard
data class Order(val channelId: String, val siteName: String, val previewText: String, val previewTimestamp: String?, val headerTitle: String, val subheaderTitle: String, val hasUnseenMessages: Boolean, val deletedTimestamp: String?, val orderNumber: String, val subProjectId: String?, val orderStatus: OrderStatus, val customerName: String) : ChatChannel

Represents an Order channel, which is a 3-way conversation between customer, driver, and site.

Link copied to clipboard
data class Site(val channelId: String, val siteName: String, val previewText: String, val previewTimestamp: String?, val headerTitle: String, val subheaderTitle: String, val hasUnseenMessages: Boolean, val deletedTimestamp: String?, val siteId: String, val storeCode: String) : ChatChannel

Represents a Site channel for direct communication with a site.

Link copied to clipboard
data class Stop(val channelId: String, val siteName: String, val previewText: String, val previewTimestamp: String?, val headerTitle: String, val subheaderTitle: String, val hasUnseenMessages: Boolean, val deletedTimestamp: String?, val routeId: String, val stopId: String, val customerName: String) : ChatChannel

Represents a Stop channel for communication related to a specific stop on a route.

Properties

Link copied to clipboard
open val channelId: String

Unique identifier for the channel.

Link copied to clipboard

Timestamp when the channel was deleted. Null if the channel is active.

Link copied to clipboard

Indicates whether there are unread messages in the channel.

Link copied to clipboard

Main title displayed for the channel.

Link copied to clipboard

A short preview of the last message in the channel.

Link copied to clipboard

Timestamp of the last message. Null if the channel has no messages.

Link copied to clipboard
open val siteName: String

Name of the site associated with the channel.

Link copied to clipboard

Secondary title or additional information about the channel.