feat(remote): add NetworkStatus model for View-layer network state

feat/music-streaming
Laurent 1 month ago
parent 4bf1a5e4ef
commit fb76901366
  1. 17
      Music/Remote/NetworkStatus.swift

@ -0,0 +1,17 @@
import Foundation
struct NetworkStatus {
enum Mode {
case hosting(connectedRemote: String?)
case remote(hostName: String)
}
var mode: Mode
var onDisconnect: (() -> Void)?
var onRefreshLibrary: (() -> Void)?
var isRemoteMode: Bool {
if case .remote = mode { return true }
return false
}
}
Loading…
Cancel
Save