27 lines
398 B
Go
27 lines
398 B
Go
|
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
|
||
|
}
|