class Group
A group instance.
This class allows performing actions over this specific group like adding, expelling or checking its participants.
val id: String |
|
val name: String |
|
val participants: List<User> |
|
val rx: GroupRx
Access to the reactive API of the group. |
fun add(participant: User, onCompletion: (SippoResourceError?) -> Unit): Unit
Adds a new participant to this group. Note: The user needs to be the group's owner. |
|
fun hasParticipant(participant: User, onCompletion: (Either<Boolean, SippoResourceError>) -> Unit): Unit
Checks if a participant belongs to this group. |
|
fun leave(onCompletion: (SippoResourceError?) -> Unit): Unit
Leaves this group. |
|
fun remove(participant: User, onCompletion: (SippoResourceError?) -> Unit): Unit
Removes a participant from this group. Note: The user needs to be the group's owner. |
|
fun removeAllParticipants(onCompletion: (SippoResourceError?) -> Unit): Unit
Removes all participants from this group. Note: The user needs to be the group's owner. |
|
fun update(name: String, onCompletion: (SippoResourceError?) -> Unit): Unit
Updates the group name. Note: The user needs to be the group's owner. |