2023-10-17 10:26:31 +08:00
|
|
|
package repository
|
|
|
|
|
2023-10-19 17:09:47 +08:00
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
|
2023-10-17 10:26:31 +08:00
|
|
|
type Mkx struct {
|
|
|
|
Identity
|
2023-11-01 16:52:03 +08:00
|
|
|
psd *Psd
|
|
|
|
pcb *Button
|
|
|
|
pob *Button
|
|
|
|
pab *Button
|
|
|
|
mpl *Button
|
|
|
|
pcbj *Relay
|
|
|
|
pobj *Relay
|
|
|
|
pabj *Relay
|
2023-10-17 10:26:31 +08:00
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func NewMkx(id string) *Mkx {
|
2023-10-17 10:26:31 +08:00
|
|
|
return &Mkx{
|
|
|
|
Identity: identity{
|
|
|
|
id: id,
|
2023-10-19 17:09:47 +08:00
|
|
|
deviceType: proto.DeviceType_DeviceType_Mkx,
|
2023-10-17 10:26:31 +08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Psd() *Psd {
|
|
|
|
return m.psd
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Pcb() *Button {
|
|
|
|
return m.pcb
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Pob() *Button {
|
|
|
|
return m.pob
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Pab() *Button {
|
|
|
|
return m.pab
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Mpl() *Button {
|
|
|
|
return m.mpl
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Pcbj() *Relay {
|
|
|
|
return m.pcbj
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Pobj() *Relay {
|
|
|
|
return m.pobj
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Pabj() *Relay {
|
|
|
|
return m.pabj
|
2023-10-17 10:26:31 +08:00
|
|
|
}
|