rtss-core/model/station.go

27 lines
398 B
Go
Raw Normal View History

2024-06-19 19:29:46 +08:00
package model
type Station interface {
RtssModel
IsCentralized() bool
}
type StationImpl struct {
uid string
centralized bool
}
func NewStation(uid string, centralized bool) Station {
return &StationImpl{
uid: uid,
centralized: centralized,
}
}
func (s *StationImpl) Uid() string {
return s.uid
}
func (s *StationImpl) IsCentralized() bool {
return s.centralized
}