-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPushNotificationService.swift
More file actions
28 lines (26 loc) · 1020 Bytes
/
Copy pathPushNotificationService.swift
File metadata and controls
28 lines (26 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// PushNotificationService.swift
// DevLogData
//
// Created by opfic on 5/14/26.
//
import Combine
import Foundation
import DevLogDomain
public protocol PushNotificationService {
func fetchPushNotificationEnabled() async throws -> Bool
func fetchPushNotificationTime() async throws -> DateComponents
func updatePushNotificationSettings(isEnabled: Bool, components: DateComponents) async throws
func requestNotifications(
_ notificationQuery: PushNotificationQuery,
cursor: PushNotificationCursorDTO?
) async throws -> PushNotificationPageResponse
func observeNotifications(
_ query: PushNotificationQuery,
limit: Int
) throws -> AnyPublisher<PushNotificationPageResponse, Error>
func observeUnreadPushCount() throws -> AnyPublisher<Int, Error>
func deleteNotification(_ notificationID: String) async throws
func undoDeleteNotification(_ notificationID: String) async throws
func toggleNotificationRead(_ todoId: String) async throws
}