mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
27 lines
534 B
Go
27 lines
534 B
Go
package model
|
|
|
|
import "github.com/AynaLivePlayer/liveroom-sdk"
|
|
|
|
type LiveRoomConfig struct {
|
|
AutoConnect bool `json:"auto_connect"`
|
|
}
|
|
|
|
type LiveRoom struct {
|
|
LiveRoom liveroom.LiveRoom `json:"live_room"`
|
|
Config LiveRoomConfig `json:"config"`
|
|
Title string `json:"title"`
|
|
Status bool `json:"status"`
|
|
}
|
|
|
|
func (r *LiveRoom) DisplayName() string {
|
|
if r.Title != "" {
|
|
return r.Title
|
|
}
|
|
return r.LiveRoom.Identifier()
|
|
}
|
|
|
|
type LiveRoomProviderInfo struct {
|
|
Name string
|
|
Description string
|
|
}
|