NetworkServiceProtocol.swift 446 B

123456789
  1. import Foundation
  2. protocol NetworkServiceProtocol {
  3. func fetchSessions() async throws -> [RemoteSession]
  4. func syncSession(_ session: CelestiaSession) async throws -> RemoteSession
  5. func uploadAsset(sessionID: String, clientID: String, kind: String, fileURL: URL) async throws -> RemoteAsset
  6. func downloadAsset(sessionID: String, asset: RemoteAsset, destinationURL: URL) async throws
  7. func recordSyncCheckpoint() async throws
  8. }