updateUsersToChannel

abstract fun updateUsersToChannel(channel: Channel, type: ChannelUserAffiliationType, contactsId: List<String>, listener: RainbowListener<Pair<List<ChannelUser>, List<String>>, Unit>? = null)

Updates users to a Channel with specific ChannelUserAffiliationType.

Parameters

channel

Channel The channel where the users are updated

type

ChannelUserAffiliationType The type of user to update

contactsId

List The user list to update

listener

RainbowListener, List>, Unit> callback (onSuccess, onError)


abstract fun updateUsersToChannel(channel: Channel, type: ChannelUserAffiliationType, contacts: ArrayList<IRainbowContact>, listener: RainbowListener<Pair<List<ChannelUser>, List<String>>, Unit>? = null)

Updates users to a Channel with specific ChannelUserAffiliationType.

Parameters

channel

Channel The channel where the users are updated

type

ChannelUserAffiliationType The type of user to update

contacts

List<IRainbowContact> The user list to add

listener

RainbowListener, List>, Unit> callback (onSuccess, onError)