init project
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package device
|
||||
|
||||
type DeviceStatus string
|
||||
|
||||
const (
|
||||
On DeviceStatus = "On"
|
||||
Off DeviceStatus = "Off"
|
||||
)
|
||||
|
||||
func (b DeviceStatus) toString() string {
|
||||
return string(b)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package device
|
||||
|
||||
type DeviceConnectionStatus string
|
||||
|
||||
const (
|
||||
Connected DeviceConnectionStatus = "Connected"
|
||||
Disconnected DeviceConnectionStatus = "Disconnected"
|
||||
)
|
||||
|
||||
func (b DeviceConnectionStatus) toString() string {
|
||||
return string(b)
|
||||
}
|
||||
Reference in New Issue
Block a user