SunshineConversationsClient::Participant

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
idStringThe unique ID of the participant.[optional]
user_idStringThe id of the associated user.[optional]
unread_countIntegerNumber of messages the user has not yet read.[optional]
client_associationsArray<ClientAssociation>Represents the clients that are active in the conversation for a particular user. A participant can have multiple clientAssociations in the case of channel transfer, business initiated conversations, or identified users. The order of the array indicates how recently a client has interacted with the conversation, with the most recent client first. The first item in the array is considered to be the user's primary client for that conversation, and will be selected first for message delivery.[optional]
user_external_idStringThe externalId of the associated user.[optional]
last_readStringA datetime string with the format YYYY-MM-DDThh:mm:ss.SSSZ representing the latest message the user has read.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Participant.new(
  id: c93bb9c14dde8ffb94564eae,
  user_id: 42589ad070d43be9b00ff7e5,
  unread_count: 0,
  client_associations: null,
  user_external_id: your-own-id,
  last_read: 2019-01-14T18:55:12.515Z
)