tsviewer/features/api/channel/channel.go

15 lines
405 B
Go
Raw Normal View History

2019-01-14 20:07:11 +00:00
package channel
type Service interface {
Channel(id int) (*Channel, error)
Channels() ([]*Channel, error)
}
type Channel struct {
ID int `json:"id"`
Name string `json:"name"`
2019-02-03 23:40:43 +00:00
Subchannels []Channel `json:"subchannels,omitempty"`
2019-01-14 20:07:11 +00:00
TotalClients int `json:"totalClients"`
NeededSubscribePower int `json:"neededSubscribePower"`
}