Order

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.

Constructors

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

Properties

Link copied to clipboard
open override val channelId: String

Unique identifier for the channel.

Link copied to clipboard

Name of the customer associated with the order.

Link copied to clipboard
open override val deletedTimestamp: String?

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

Link copied to clipboard
open override val hasUnseenMessages: Boolean

Indicates whether there are unread messages in the channel.

Link copied to clipboard
open override val headerTitle: String

Main title displayed for the channel.

Link copied to clipboard

The unique identifier for the order.

Link copied to clipboard

Current status of the order.

Link copied to clipboard
open override val previewText: String

A short preview of the last message in the channel.

Link copied to clipboard
open override val previewTimestamp: String?

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

Link copied to clipboard
open override val siteName: String

Name of the site associated with the channel.

Link copied to clipboard
open override val subheaderTitle: String

Secondary title or additional information about the channel.

Link copied to clipboard

Identifier for the sub-project. Null if the order is not part of a sub-project.