Skip to content

Commit b8b1d7e

Browse files
committed
Reorganize methods
1 parent 0180dc7 commit b8b1d7e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

TidepoolServiceKit/TidepoolService.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -468,18 +468,7 @@ extension TidepoolService: RemoteDataService {
468468
}
469469
}
470470
}
471-
472-
public func handleRemoteNotification(_ notification: [String: AnyObject]) async throws {
473-
enum TidepoolPushNotificationError: LocalizedError {
474-
case remoteCommandsNotSupported
475-
}
476-
477-
throw TidepoolPushNotificationError.remoteCommandsNotSupported
478-
}
479-
480-
public func handlePendingRemoteCommands() async throws {
481-
}
482-
471+
483472
func calculateSettingsData(_ stored: [StoredSettings], for userId: String, hostIdentifier: String, hostVersion: String) -> ([TDatum], [TDatum], TControllerSettingsDatum?, TCGMSettingsDatum?, TPumpSettingsDatum?, TPumpSettingsOverrideDeviceEventDatum?) {
484473
var created: [TDatum] = []
485474
var updated: [TDatum] = []
@@ -630,6 +619,17 @@ extension TidepoolService: RemoteDataService {
630619
throw error
631620
}
632621
}
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 {
632+
}
633633
}
634634

635635
extension KeychainManager: SessionStorage {

0 commit comments

Comments
 (0)