mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-13 13:38:16 +08:00
fix gui freeze bug (work round)
This commit is contained in:
40
core/model/liveroom.go
Normal file
40
core/model/liveroom.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type LiveRoom struct {
|
||||
ClientName string
|
||||
ID string
|
||||
Title string
|
||||
AutoConnect bool
|
||||
AutoReconnect bool
|
||||
}
|
||||
|
||||
func (r *LiveRoom) String() string {
|
||||
return fmt.Sprintf("<LiveRooms %s:%s>", r.ClientName, r.ID)
|
||||
}
|
||||
|
||||
func (r *LiveRoom) Identifier() string {
|
||||
return fmt.Sprintf("%s_%s", r.ClientName, r.ID)
|
||||
}
|
||||
|
||||
type UserMedal struct {
|
||||
Name string
|
||||
Level int
|
||||
RoomID string
|
||||
}
|
||||
|
||||
type DanmuUser struct {
|
||||
Uid string
|
||||
Username string
|
||||
Medal UserMedal
|
||||
Admin bool
|
||||
Privilege int
|
||||
}
|
||||
|
||||
type DanmuMessage struct {
|
||||
User DanmuUser
|
||||
Message string
|
||||
}
|
||||
Reference in New Issue
Block a user