fetchUsersByName

abstract fun fetchUsersByName(channel: Channel, name: String, limit: Int = 20, offset: Int = 0, listener: RainbowListener<List<ChannelUser>, Unit>? = null)

Fetch users matching given names (from server). The search is done on users firstName and lastName and provides channel affiliation information.

Search can be name exact match (ex: 'John Doe' find 'John Doe'), partial match (ex: 'Jo Do' find 'John Doe') case insensitive (ex: 'john doe' find 'John Doe'), accents insensitive (ex: 'herve mothe' find 'Hervé Mothé') on only firstname or lastname (ex: 'john' find 'John Doe'), order firstname / lastname does not matter (ex: 'doe john' find 'John Doe').

Parameters

channel

Channel object whose users are retrieved

name

String name to search

limit

Int that allow to specify the number of reactions to retrieve (default value 20)

offset

Int Allow to specify the position of first channel to retrieve (default value 0)

listener

RainbowListenerChannelUser>, Unit> callback (onSuccess, onError)