PushApiClient

interface PushApiClient

Functions

Link copied to clipboard
abstract suspend fun deletePushRule(scope: String, kind: PushRuleKind, ruleId: String, asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun getNotifications(from: String? = null, limit: Long? = null, only: String? = null, asUserId: UserId? = null): Result<GetNotifications.Response>
Link copied to clipboard
abstract suspend fun getPushers(asUserId: UserId? = null): Result<GetPushers.Response>
Link copied to clipboard
abstract suspend fun getPushRule(scope: String, kind: PushRuleKind, ruleId: String, asUserId: UserId? = null): Result<PushRule>
Link copied to clipboard
abstract suspend fun getPushRuleActions(scope: String, kind: PushRuleKind, ruleId: String, asUserId: UserId? = null): Result<Set<PushAction>>
Link copied to clipboard
abstract suspend fun getPushRuleEnabled(scope: String, kind: PushRuleKind, ruleId: String, asUserId: UserId? = null): Result<Boolean>
Link copied to clipboard
abstract suspend fun getPushRules(asUserId: UserId? = null): Result<GetPushRules.Response>
Link copied to clipboard
abstract suspend fun setPushers(request: SetPushers.Request, asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun setPushRule(scope: String, kind: PushRuleKind, ruleId: String, pushRule: SetPushRule.Request, beforeRuleId: String? = null, afterRuleId: String? = null, asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun setPushRuleActions(scope: String, kind: PushRuleKind, ruleId: String, actions: Set<PushAction>, asUserId: UserId? = null): Result<Unit>
Link copied to clipboard
abstract suspend fun setPushRuleEnabled(scope: String, kind: PushRuleKind, ruleId: String, enabled: Boolean, asUserId: UserId? = null): Result<Unit>

Inheritors

Link copied to clipboard