ParticipantChangedPayload
@JsonClass(generateAdapter = true)
Indicates that participants in the conversation have joined, left, or changed roles.
See also
Samples
val payload = entry.payload as? EntryPayload.ParticipantChangedPayload ?: return
for (change in payload.entries) {
when (change.operation) {
ParticipantChangedOperation.Add -> showParticipantJoined(change.displayName)
ParticipantChangedOperation.Remove -> showParticipantLeft(change.displayName)
else -> { }
}
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(id: String, entries: List<ParticipantChangedEntry>, activeModalities: List<Modality>? = null)