35 lines
569 B
Go
35 lines
569 B
Go
package repository
|
|
|
|
import "joylink.club/rtsssimulation/repository/model/proto"
|
|
|
|
type CkmPsl struct {
|
|
Identity
|
|
ckm *Ckm
|
|
kma *Button
|
|
gma *Button
|
|
mpla *Button
|
|
mmsa *Button
|
|
}
|
|
|
|
func NewCkmPsl(id string) *CkmPsl {
|
|
return &CkmPsl{
|
|
Identity: identity{id, proto.DeviceType_DeviceType_CkmPsl},
|
|
}
|
|
}
|
|
|
|
func (psl *CkmPsl) Ckm() *Ckm {
|
|
return psl.ckm
|
|
}
|
|
func (psl *CkmPsl) Kma() *Button {
|
|
return psl.kma
|
|
}
|
|
func (psl *CkmPsl) Gma() *Button {
|
|
return psl.gma
|
|
}
|
|
func (psl *CkmPsl) Mpla() *Button {
|
|
return psl.mpla
|
|
}
|
|
func (psl *CkmPsl) Mmsa() *Button {
|
|
return psl.mmsa
|
|
}
|