You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Music/Music/Remote/NetworkStatus.swift

17 lines
351 B

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
}
}