mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-12 05:08:12 +08:00
19 lines
327 B
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)
|
|
}
|