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
|
2024-02-18 18:26:12 +08:00
|
|
|
psd *Psd
|
|
|
|
|
|
|
|
pcb *Button
|
|
|
|
pcbpl *Button
|
|
|
|
pcbj *Relay
|
|
|
|
pob *Button
|
|
|
|
pobpl *Button
|
|
|
|
pobj *Relay
|
|
|
|
pab *Button
|
|
|
|
pabpl *Button
|
|
|
|
pabj *Relay
|
|
|
|
wrzf *Button
|
|
|
|
wrzfpl *Button
|
|
|
|
wrzfj *Relay
|
|
|
|
qkqr *Button
|
|
|
|
qkqrpl *Button
|
|
|
|
qkqrj *Relay
|
|
|
|
mpl *Button
|
|
|
|
jxtcpl *Button
|
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
|
|
|
}
|
|
|
|
|
2024-02-18 18:26:12 +08:00
|
|
|
func (m *Mkx) Pcbpl() *Button {
|
|
|
|
return m.pcbpl
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2024-02-18 18:26:12 +08:00
|
|
|
func (m *Mkx) Pcbj() *Relay {
|
|
|
|
return m.pcbj
|
2023-10-19 17:09:47 +08:00
|
|
|
}
|
|
|
|
|
2024-02-18 18:26:12 +08:00
|
|
|
func (m *Mkx) Pob() *Button {
|
|
|
|
return m.pob
|
2023-11-01 16:52:03 +08:00
|
|
|
}
|
|
|
|
|
2024-02-18 18:26:12 +08:00
|
|
|
func (m *Mkx) Pobpl() *Button {
|
|
|
|
return m.pobpl
|
2023-11-01 16:52:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Pobj() *Relay {
|
|
|
|
return m.pobj
|
|
|
|
}
|
|
|
|
|
2024-02-18 18:26:12 +08:00
|
|
|
func (m *Mkx) Pab() *Button {
|
|
|
|
return m.pab
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Pabpl() *Button {
|
|
|
|
return m.pabpl
|
|
|
|
}
|
|
|
|
|
2023-11-01 16:52:03 +08:00
|
|
|
func (m *Mkx) Pabj() *Relay {
|
|
|
|
return m.pabj
|
2023-10-17 10:26:31 +08:00
|
|
|
}
|
2024-02-18 18:26:12 +08:00
|
|
|
|
|
|
|
func (m *Mkx) Wrzf() *Button {
|
|
|
|
return m.wrzf
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Wrzfpl() *Button {
|
|
|
|
return m.wrzfpl
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Wrzfj() *Relay {
|
|
|
|
return m.wrzfj
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Qkqr() *Button {
|
|
|
|
return m.qkqr
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Qkqrpl() *Button {
|
|
|
|
return m.qkqrpl
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Qkqrj() *Relay {
|
|
|
|
return m.qkqrj
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Mpl() *Button {
|
|
|
|
return m.mpl
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) Jxtcpl() *Button {
|
|
|
|
return m.jxtcpl
|
|
|
|
}
|