Group

A group instance.

This class allows performing actions over this specific group like adding, expelling or checking its participants.

Properties

Link copied to clipboard
open override val callerId: String
Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ringingStrategy: RingingStrategy
Link copied to clipboard
val rx: GroupRx

Access to the reactive API of the group.

Functions

Link copied to clipboard
fun add(participant: Contact, onCompletion: (SippoResourceError?) -> Unit)

Adds a new participant to this group. Note: The user needs to be the group's owner.

Link copied to clipboard
fun changeRingingStrategy(strategy: RingingStrategy, onCompletion: (SippoResourceError?) -> Unit)

Update ringing strategy for this group.

Link copied to clipboard
fun hasParticipant(participant: Contact, onCompletion: (Either<Boolean, SippoResourceError>) -> Unit)

Checks if a participant belongs to this group.

Link copied to clipboard
fun leave(onCompletion: (SippoResourceError?) -> Unit)

Leaves this group.

Link copied to clipboard
fun remove(participant: Contact, onCompletion: (SippoResourceError?) -> Unit)

Removes a participant from this group. Note: The user needs to be the group's owner.

Link copied to clipboard

Removes all participants from this group. Note: The user needs to be the group's owner.

Link copied to clipboard
fun reorderParticipants(participants: List<Contact>, onCompletion: (SippoResourceError?) -> Unit)

Reorder the participant list for this group.

Link copied to clipboard
fun update(name: String, onCompletion: (SippoResourceError?) -> Unit)

Updates the group name. Note: The user needs to be the group's owner.