Contact

data class Contact(val channelId: String?, val siteId: String?, val storeCode: String?, val orderNumber: String?, val subProjectId: String?, val stopId: String?, val routeId: String?, val title: String, val subtitle: String?, val contactType: ContactType)

Represents a contact that can be used to start a new or resume an existing conversation.

A contact can be associated with a site (2-way conversation), an order (3-way conversation), or a stop (3-way conversation).

Constructors

Link copied to clipboard
constructor(channelId: String?, siteId: String?, storeCode: String?, orderNumber: String?, subProjectId: String?, stopId: String?, routeId: String?, title: String, subtitle: String?, contactType: ContactType)

Properties

Link copied to clipboard

The ID of an existing conversation with this contact. Null if no conversation exists.

Link copied to clipboard
Link copied to clipboard

The order number for an ContactType.ORDER contact. Null otherwise.

Link copied to clipboard

The ID of the route for a ContactType.STOP contact. Null otherwise.

Link copied to clipboard

The ID of the site for a ContactType.SITE contact. Null otherwise.

Link copied to clipboard

The ID of the stop for a ContactType.STOP contact. Null otherwise.

Link copied to clipboard

The store code associated with a ContactType.SITE contact. Null otherwise.

Link copied to clipboard

The ID of the sub-project for ContactType.ORDER contacts. Null otherwise or if the order is not part of a sub-project.

Link copied to clipboard

Additional contextual information about the contact (e.g., Site Address, Customer Name).

Link copied to clipboard

The main title or name of the contact (e.g., Site Name, Order Title, Stop Address).