Files
AynaLivePlayer/model/liveroom.go

19 lines
327 B
Go

package model
import "fmt"
type LiveRoom struct {
ClientName string
ID string
AutoConnect bool
AutoReconnect bool
}
func (r *LiveRoom) String() string {
return fmt.Sprintf("<LiveRooms %s:%s>", r.ClientName, r.ID)
}
func (r *LiveRoom) Title() string {
return fmt.Sprintf("%s-%s", r.ClientName, r.ID)
}