PushApiClient

interface PushApiClient

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deletePushRule(scope: String, kind: PushRuleKind, ruleId: String): Result<Unit>
Link copied to clipboard
abstract suspend fun getNotifications(from: String? = null, limit: Long? = null, only: String? = null): Result<GetNotifications.Response>
Link copied to clipboard
abstract suspend fun getPushers(): Result<GetPushers.Response>
Link copied to clipboard
abstract suspend fun getPushRule(scope: String, kind: PushRuleKind, ruleId: String): Result<PushRule>
Link copied to clipboard
abstract suspend fun getPushRuleActions(scope: String, kind: PushRuleKind, ruleId: String): Result<Set<PushAction>>
Link copied to clipboard
abstract suspend fun getPushRuleEnabled(scope: String, kind: PushRuleKind, ruleId: String): Result<Boolean>
Link copied to clipboard
abstract suspend fun getPushRules(): Result<GetPushRules.Response>
Link copied to clipboard
abstract suspend fun setPushers(request: SetPushers.Request): 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): Result<Unit>
Link copied to clipboard
abstract suspend fun setPushRuleActions(scope: String, kind: PushRuleKind, ruleId: String, actions: Set<PushAction>): Result<Unit>
Link copied to clipboard
abstract suspend fun setPushRuleEnabled(scope: String, kind: PushRuleKind, ruleId: String, enabled: Boolean): Result<Unit>