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-10-19 17:09:47 +08:00
|
|
|
platformId string
|
|
|
|
pcbButtons []*Button
|
|
|
|
pobButtons []*Button
|
|
|
|
pabButtons []*Button
|
2023-10-17 10:26:31 +08:00
|
|
|
componentGroups []*ElectronicComponentGroup
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewMkx(id string) *Mkx {
|
|
|
|
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
|
|
|
},
|
|
|
|
componentGroups: nil,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-19 17:09:47 +08:00
|
|
|
func (m *Mkx) PlatformId() string {
|
|
|
|
return m.platformId
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) PcbButtons() []*Button {
|
|
|
|
return m.pcbButtons
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) PobButtons() []*Button {
|
|
|
|
return m.pobButtons
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Mkx) PabButtons() []*Button {
|
|
|
|
return m.pabButtons
|
|
|
|
}
|
|
|
|
|
2023-10-17 10:26:31 +08:00
|
|
|
func (m *Mkx) ComponentGroups() []*ElectronicComponentGroup {
|
|
|
|
return m.componentGroups
|
|
|
|
}
|