KUSConversation
KUSConversation Class reference for Kustomer Chat iOS Core API .
A conversation between a KUSCustomer and zero or more KUSUsers.
public class KUSConversation : CustomStringConvertible
Properties
id
public var id: String?
createdAt
public var createdAt: Date?
lastMessageAt
public var lastMessageAt: Date?
status
This has been deprecated as of version 2.7.8. Use
lockedAtorlockReasonto determine the status of a KUSConversation.
public var status: KUSConversationStatus?
lockedAt
Date the conversation was closed.
public var lockedAt: Date?
lockedByCustomer
Was this conversation closed by the customer?
public var lockedByCustomer: Bool?
lockReason
Reason for the conversation being closed
public var lockReason: KUSConversationLockReason?
preview
public var preview: String?
previewDetails
Contains additional data to render with the preview for the conversation: the LastResponder (contains displayName and avatarUrl for the last user who sent a message in the conversation), and the messageCreatedAt date.
public var previewDetails: PreviewDetails?
respondingUserIds
IDs of KUSUsers who have responded to this conversation.
public var respondingUserIds: [String?]?
unreadMessageCount
Count of unread messages
public var unreadMessageCount: Int?
customers
KUSCustomerss who have sent at least one message in this conversation.
In some cases this may contain KUSCustomers in addition to the currently logged in [KUSCustomer](../Classes/KUSCustomer.html).
public var customers: [KUSCustomer]?
users
KUSUsers who have sent at least one message in this conversation.
public var users: [KUSUser]?
localUuid
Temporary local ID. A unique identifier for conversations that have been created on-device, but not successfully sent to Kustomer’s servers and processed by the Kustomer platform.
public var localUuid: String?
Updated over 2 years ago