Documentation
¶
Index ¶
- type SessionService
- func (b *SessionService) AddPlayerToSession(input *sessionBrowser.AddPlayerToSessionParams) (*sessionbrowserclientmodels.ModelsAddPlayerResponse, error)
- func (b *SessionService) AdminGetSession(input *sessionBrowser.AdminGetSessionParams) (*sessionbrowserclientmodels.ModelsAdminSessionResponse, error)
- func (b *SessionService) CreateSession(input *sessionBrowser.CreateSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
- func (b *SessionService) DeleteSession(input *sessionBrowser.DeleteSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
- func (b *SessionService) DeleteSessionLocalDS(input *sessionBrowser.DeleteSessionLocalDSParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
- func (b *SessionService) GetActiveCustomGameSessions(input *sessionBrowser.GetActiveCustomGameSessionsParams) (*sessionbrowserclientmodels.ModelsActiveCustomGameResponse, error)
- func (b *SessionService) GetActiveMatchmakingGameSessions(input *sessionBrowser.GetActiveMatchmakingGameSessionsParams) (*sessionbrowserclientmodels.ModelsActiveMatchmakingGameResponse, error)
- func (b *SessionService) GetRecentPlayer(input *sessionBrowser.GetRecentPlayerParams) (*sessionbrowserclientmodels.ModelsRecentPlayerQueryResponse, error)
- func (b *SessionService) GetSession(input *sessionBrowser.GetSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
- func (b *SessionService) GetSessionByUserIDs(input *sessionBrowser.GetSessionByUserIDsParams) (*sessionbrowserclientmodels.ModelsSessionByUserIDsResponse, error)
- func (b *SessionService) GetTotalActiveSession(input *sessionBrowser.GetTotalActiveSessionParams) (*sessionbrowserclientmodels.ModelsCountActiveSessionResponse, error)
- func (b *SessionService) JoinSession(input *sessionBrowser.JoinSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
- func (b *SessionService) QuerySession(input *sessionBrowser.QuerySessionParams) (*sessionbrowserclientmodels.ModelsSessionQueryResponse, error)
- func (b *SessionService) RemovePlayerFromSession(input *sessionBrowser.RemovePlayerFromSessionParams) (*sessionbrowserclientmodels.ModelsAddPlayerResponse, error)
- func (b *SessionService) UpdateSession(input *sessionBrowser.UpdateSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionService ¶
type SessionService struct { Client *sessionbrowserclient.JusticeSessionbrowserService TokenRepository repository.TokenRepository }
func (*SessionService) AddPlayerToSession ¶
func (b *SessionService) AddPlayerToSession(input *sessionBrowser.AddPlayerToSessionParams) (*sessionbrowserclientmodels.ModelsAddPlayerResponse, error)
AddPlayerToSession is used to add a new player to a session ID
func (*SessionService) AdminGetSession ¶
func (b *SessionService) AdminGetSession(input *sessionBrowser.AdminGetSessionParams) (*sessionbrowserclientmodels.ModelsAdminSessionResponse, error)
AdminGetSession is used to get specified session by session ID
func (*SessionService) CreateSession ¶
func (b *SessionService) CreateSession(input *sessionBrowser.CreateSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
CreateSession is used to register a new game session by session ID
func (*SessionService) DeleteSession ¶
func (b *SessionService) DeleteSession(input *sessionBrowser.DeleteSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
DeleteSession is used to delete specified game session by session ID
func (*SessionService) DeleteSessionLocalDS ¶
func (b *SessionService) DeleteSessionLocalDS(input *sessionBrowser.DeleteSessionLocalDSParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
DeleteSessionLocalDS is used to delete session local
func (*SessionService) GetActiveCustomGameSessions ¶
func (b *SessionService) GetActiveCustomGameSessions(input *sessionBrowser.GetActiveCustomGameSessionsParams) (*sessionbrowserclientmodels.ModelsActiveCustomGameResponse, error)
GetActiveCustomGameSessions is used to get all active session for custom game this return only dedicated session type
func (*SessionService) GetActiveMatchmakingGameSessions ¶
func (b *SessionService) GetActiveMatchmakingGameSessions(input *sessionBrowser.GetActiveMatchmakingGameSessionsParams) (*sessionbrowserclientmodels.ModelsActiveMatchmakingGameResponse, error)
GetActiveMatchmakingGameSessions is used to get all active session for matchmaking game this return only dedicated session type
func (*SessionService) GetRecentPlayer ¶
func (b *SessionService) GetRecentPlayer(input *sessionBrowser.GetRecentPlayerParams) (*sessionbrowserclientmodels.ModelsRecentPlayerQueryResponse, error)
GetRecentPlayer is used to query recent players with given user id
func (*SessionService) GetSession ¶
func (b *SessionService) GetSession(input *sessionBrowser.GetSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
GetSession is used to get query game sessions by session ids
func (*SessionService) GetSessionByUserIDs ¶
func (b *SessionService) GetSessionByUserIDs(input *sessionBrowser.GetSessionByUserIDsParams) (*sessionbrowserclientmodels.ModelsSessionByUserIDsResponse, error)
GetSessionByUserIDs is used to get the session by session ID
func (*SessionService) GetTotalActiveSession ¶
func (b *SessionService) GetTotalActiveSession(input *sessionBrowser.GetTotalActiveSessionParams) (*sessionbrowserclientmodels.ModelsCountActiveSessionResponse, error)
GetTotalActiveSession gets all active session
func (*SessionService) JoinSession ¶
func (b *SessionService) JoinSession(input *sessionBrowser.JoinSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
JoinSession is used to join specified session by session ID
func (*SessionService) QuerySession ¶
func (b *SessionService) QuerySession(input *sessionBrowser.QuerySessionParams) (*sessionbrowserclientmodels.ModelsSessionQueryResponse, error)
QuerySession is used to query an available game session
func (*SessionService) RemovePlayerFromSession ¶
func (b *SessionService) RemovePlayerFromSession(input *sessionBrowser.RemovePlayerFromSessionParams) (*sessionbrowserclientmodels.ModelsAddPlayerResponse, error)
RemovePlayerFromSession is used to remove player from game session
func (*SessionService) UpdateSession ¶
func (b *SessionService) UpdateSession(input *sessionBrowser.UpdateSessionParams) (*sessionbrowserclientmodels.ModelsSessionResponse, error)
UpdateSession is used to update game session, update current player