session profile decoupled.

This commit is contained in:
Miroslav Šedivý
2021-03-14 00:45:51 +01:00
parent 7d4f7694b9
commit 4a28307c1e
15 changed files with 38 additions and 79 deletions

View File

@ -19,21 +19,12 @@ type SessionState struct {
type Session interface {
ID() string
// profile
Name() string
IsAdmin() bool
CanLogin() bool
CanConnect() bool
CanWatch() bool
CanHost() bool
CanAccessClipboard() bool
GetProfile() MemberProfile
Profile() MemberProfile
// state
IsHost() bool
IsConnected() bool
GetState() SessionState
State() SessionState
// websocket
SetWebSocketPeer(websocketPeer WebSocketPeer)