# PresenceManager

class PresenceManager(localDataSource: LocalDataSource, remoteDataSource: RemoteDataSource, localUserId: String) : PresenceRepository

## Constructors

PresenceManager
Link copied to clipboard
constructor(localDataSource: LocalDataSource, remoteDataSource: RemoteDataSource, localUserId: String)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

isCacheDirty
Link copied to clipboard
open override var isCacheDirty: Boolean

## Functions

getPresenceByAddress
Link copied to clipboard
open override fun getPresenceByAddress(address: String): Single<Presence>
getPresenceByUserId
Link copied to clipboard
open override fun getPresenceByUserId(id: String): Single<Presence>
getPresences
Link copied to clipboard
open override fun getPresences(withoutAvatar: Boolean): Single<List<Presence>>
savePresence
Link copied to clipboard
open override fun savePresence(presence: Presence)
subscribeById
Link copied to clipboard
open override fun subscribeById(userId: String): Single<Presence>
subscribeByUserIds
Link copied to clipboard
open override fun subscribeByUserIds(userIds: List<String>): Single<List<Presence>>
subscribeByUserUri
Link copied to clipboard
open override fun subscribeByUserUri(userUri: String): Single<Presence>
subscribeByUserUris
Link copied to clipboard
open override fun subscribeByUserUris(userUris: List<String>): Single<List<Presence>>
updatePresence
Link copied to clipboard
open override fun updatePresence(request: UpdatePresenceRequest): Single<Presence>