Skip to content

Commit 2716d19

Browse files
committed
Remote handling rearchitecture
1 parent 0eef224 commit 2716d19

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

TidepoolServiceKit/TidepoolService.swift

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -619,14 +619,16 @@ extension TidepoolService: RemoteDataService {
619619
throw error
620620
}
621621
}
622-
623-
public func commandFromPushNotification(_ notification: [String: AnyObject]) async throws -> RemoteCommand {
624-
625-
enum TidepoolPushNotificationError: LocalizedError {
626-
case remoteCommandsNotSupported
627-
}
628-
629-
throw TidepoolPushNotificationError.remoteCommandsNotSupported
622+
623+
public func handleRemoteNotification(_ notification: [String: AnyObject]) async throws {
624+
throw RemoteNotificationError.remoteCommandsNotSupported
625+
}
626+
627+
enum RemoteNotificationError: LocalizedError {
628+
case remoteCommandsNotSupported
629+
}
630+
631+
public func processPendingRemoteCommands() async throws {
630632
}
631633
}
632634

0 commit comments

Comments
 (0)