createFavorite

abstract fun createFavorite(peerId: String?, type: PeerType?, listener: RainbowListener<IRainbowFavorite, CreateFavoriteError>? = null)

Creates a favorite at the end of the list.

Parameters

peerId

String peerId to associated with the favorite. Can be a contactId or a roomId.

type

PeerType Type of the favorite, can be "user", "bot" or "room"

listener

RainbowListener callback (onSuccess, onError)