ServerMultiplex: Introduces a server mutiplexer
- Also moves all the existing Wemo* stuff over to support the multiplexer - Moves MainViewController to be the owner of the multiplexer, and its delegate
This commit is contained in:
@@ -8,23 +8,12 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
class WemoDevice: Hashable
|
||||
class WemoDevice : Device
|
||||
{
|
||||
enum State
|
||||
{
|
||||
case off
|
||||
case on
|
||||
}
|
||||
|
||||
enum DeviceType
|
||||
{
|
||||
case `switch`
|
||||
}
|
||||
|
||||
var name: String = ""
|
||||
var host: String = ""
|
||||
var model: String = ""
|
||||
var state: State = .off
|
||||
var state: DeviceState = .off
|
||||
var type: DeviceType = .switch
|
||||
var serial: String = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user