Users

class Users

The user service.

This class allows performing user related actions such as, given a string, searching for those that contain some field that matches it.

Parameters

rx

Access to the reactive API of the service.

Properties

Link copied to clipboard
val rx: UsersRx

Functions

Link copied to clipboard
fun addListener(listener: UserListener)

Adds a listener to receive user events.

Link copied to clipboard
fun getUserBy(id: String, onCompletion: (Either<User, SippoResourceError>) -> Unit)

Searches for the user who have an id that matches the specified id.

Link copied to clipboard
fun getUserByUri(userUri: String, onCompletion: (Either<User, SippoResourceError>) -> Unit)

Searches for the user who have an Uri that matches the specified userUri.

Link copied to clipboard
fun getUsersBy(identifier: String, onCompletion: (Either<List<User>, SippoResourceError>) -> Unit)

Searches for users who have any field that matches the specified identifier.

Link copied to clipboard

Removes the specified listener.