addUsersToChannel

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

Adds users to a Channel with specific ChannelUserAffiliationType.

Parameters

channel

Channel The channel where the users are added

type

ChannelUserAffiliationType The type of user to add

contactsId

List The user list to add

listener

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


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

Adds users to a Channel with specific ChannelUserAffiliationType.

Parameters

channel

Channel The channel where the users are added

type

ChannelUserAffiliationType The type of user to add

contacts

List<IRainbowContact> The user list to add

listener

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