mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-15 22:48:16 +08:00
Initial commit
This commit is contained in:
30
liveclient/liveclient.go
Normal file
30
liveclient/liveclient.go
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user