mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-15 22:48:16 +08:00
31 lines
429 B
Go
31 lines
429 B
Go
package liveclient
|
|
|
|
import "AynaLivePlayer/event"
|
|
|
|
const MODULE_NAME = "LiveClient"
|
|
|
|
type UserMedal struct {
|
|
Name string
|
|
Level int
|
|
}
|
|
|
|
type DanmuUser struct {
|
|
Uid string
|
|
Username string
|
|
Medal UserMedal
|
|
Admin bool
|
|
Privilege int
|
|
}
|
|
|
|
type DanmuMessage struct {
|
|
User DanmuUser
|
|
Message string
|
|
}
|
|
|
|
type LiveClient interface {
|
|
ClientName() string
|
|
Connect() bool
|
|
Disconnect() bool
|
|
Handler() *event.Handler
|
|
}
|