sippo-sdk / com.quobis.sippo.sipposdk.group / GroupRx

GroupRx

class GroupRx

Reactive API of Group.

This class replicates some of the methods included in Group but using Rx types as return values instead of callbacks.

Functions

add

fun add(participant: User): Completable

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

hasParticipant

fun hasParticipant(participant: User): Single<Boolean>

Checks if a participant belongs to this group.

leave

fun leave(): Completable

Leaves this group.

remove

fun remove(participant: User): Completable

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

removeAllParticipants

fun removeAllParticipants(): Completable

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

update

fun update(name: String): Completable

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