SessionBrowser API to handle custom game session. More...
#include <AccelByteSessionBrowserApi.h>
Public Member Functions | |
| SessionBrowser (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient=nullptr) | |
| SessionBrowser (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| FAccelByteTaskWPtr | CreateGameSession (FString const &GameMode, FString const &GameMapName, FString const &GameVersion, uint32 BotCount, uint32 MaxPlayer, TSharedPtr< FJsonObject > OtherSettings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Create public P2P game session to Session Browser. | |
| FAccelByteTaskWPtr | CreateGameSession (FString const &GameMode, FString const &GameMapName, FString const &GameVersion, uint32 BotCount, uint32 MaxPlayer, uint32 MaxSpectator, FString const &Password, TSharedPtr< FJsonObject > OtherSettings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Create private P2P game session to Session Browser. | |
| FAccelByteTaskWPtr | CreateGameSession (FString const &SessionTypeString, FString const &GameMode, FString const &GameMapName, FString const &GameVersion, uint32 BotCount, uint32 MaxPlayer, uint32 MaxSpectator, FString const &Password, TSharedPtr< FJsonObject > OtherSettings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Create custom game session to Session Browser specified by the type. | |
| FAccelByteTaskWPtr | CreateGameSession (EAccelByteSessionType SessionType, FString const &GameMode, FString const &GameMapName, FString const &GameVersion, uint32 BotCount, uint32 MaxPlayer, uint32 MaxSpectator, FString const &Password, TSharedPtr< FJsonObject > OtherSettings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Create custom game session to Session Browser specified by the type. | |
| FAccelByteTaskWPtr | CreateGameSession (FAccelByteModelsSessionBrowserCreateRequest const &CreateSessionRequest, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Create custom game session to Session Browser specified by the type. | |
| FAccelByteTaskWPtr | UpdateGameSession (FString const &SessionId, uint32 MaxPlayer, uint32 CurrentPlayerCount, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Update the session to Session Browser. Current player count can not be updated from update session. CurrentPlayerCount will be updated automatically when register / unregister players. | |
| FAccelByteTaskWPtr | UpdateGameSession (FString const &SessionId, uint32 MaxPlayer, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Update the session to Session Browser. | |
| FAccelByteTaskWPtr | UpdateGameSession (FString const &SessionId, FAccelByteModelsSessionBrowserUpdateRequest const &UpdateSessionRequest, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Update the session to Session Browser. | |
| FAccelByteTaskWPtr | UpdateGameSettings (FString const &SessionId, TMap< FString, FString > Settings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Update the session to Session Browser. | |
| FAccelByteTaskWPtr | UpdateGameSettings (FString const &SessionId, TSharedPtr< FJsonObject > Settings, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Update the session to Session Browser. | |
| FAccelByteTaskWPtr | RemoveGameSession (FString const &SessionId, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Remove the session to Session Browser. | |
| FAccelByteTaskWPtr | GetGameSessions (FString const &SessionTypeString, FString const &GameMode, THandler< FAccelByteModelsSessionBrowserGetResult > const &OnSuccess, FErrorHandler const &OnError, uint32 Offset=0, uint32 Limit=10) |
| Query game session. | |
| FAccelByteTaskWPtr | GetGameSessions (EAccelByteSessionType SessionType, FString const &GameMode, THandler< FAccelByteModelsSessionBrowserGetResult > const &OnSuccess, FErrorHandler const &OnError, uint32 Offset=0, uint32 Limit=10) |
| Query game session. | |
| FAccelByteTaskWPtr | GetGameSessions (FString const &SessionTypeString, FString const &GameMode, FString const &MatchExist, THandler< FAccelByteModelsSessionBrowserGetResult > const &OnSuccess, FErrorHandler const &OnError, uint32 Offset=0, uint32 Limit=10) |
| Query game session. | |
| FAccelByteTaskWPtr | GetGameSessions (EAccelByteSessionType SessionType, FString const &GameMode, FString const &MatchExist, THandler< FAccelByteModelsSessionBrowserGetResult > const &OnSuccess, FErrorHandler const &OnError, uint32 Offset=0, uint32 Limit=10) |
| Query game session. | |
| FAccelByteTaskWPtr | GetGameSessionsByUserIds (const TArray< FString > &UserIds, THandler< FAccelByteModelsSessionBrowserGetByUserIdsResult > const &OnSuccess, FErrorHandler const &OnError) |
| Query game session by user ids. | |
| FAccelByteTaskWPtr | RegisterPlayer (FString const &SessionId, FString const &PlayerToAdd, bool AsSpectator, THandler< FAccelByteModelsSessionBrowserAddPlayerResponse > const &OnSuccess, FErrorHandler const &OnError) |
| RegisterPlayer to game session. | |
| FAccelByteTaskWPtr | UnregisterPlayer (FString const &SessionId, FString const &PlayerToRemove, THandler< FAccelByteModelsSessionBrowserAddPlayerResponse > const &OnSuccess, FErrorHandler const &OnError) |
| RegisterPlayer to game session. | |
| FAccelByteTaskWPtr | GetRecentPlayer (FString const &UserId, THandler< FAccelByteModelsSessionBrowserRecentPlayerGetResult > const &OnSuccess, FErrorHandler const &OnError, uint32 Offset=0, uint32 Limit=10) |
| GetRecentPlayer to game session. | |
| FAccelByteTaskWPtr | JoinSession (FString const &SessionId, FString const &Password, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| JoinSession to game session. | |
| FAccelByteTaskWPtr | GetGameSession (FString const &SessionId, THandler< FAccelByteModelsSessionBrowserData > const &OnSuccess, FErrorHandler const &OnError) |
| Get game session data by session ID. | |
| Public Member Functions inherited from AccelByte::FApiBase | |
| FApiBase (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient) | |
| FApiBase (Credentials const &InCredentialsRef, Settings const &InSettingsRef, FHttpRetrySchedulerBase &InHttpRef, FAccelBytePlatformPtr const &InAccelBytePlatform) | |
| void | SetApiClient (TSharedPtr< AccelByte::FApiClient, ESPMode::ThreadSafe > const &InApiClient) |
Additional Inherited Members | |
| Protected Member Functions inherited from AccelByte::FApiBase | |
| template<typename T> | |
| bool | ValidateAccelByteId (FString const &Id, EAccelByteIdHypensRule HypenRule, FString const &ErrorMessage, T const &OnError) |
| Protected Attributes inherited from AccelByte::FApiBase | |
| TSharedRef< Credentials const, ESPMode::ThreadSafe > | CredentialsRef |
| Settings const & | SettingsRef |
| FHttpRetrySchedulerBase & | HttpRef |
| FHttpClient | HttpClient |
| FAccelBytePlatformPtr | AccelBytePlatformPtr |
SessionBrowser API to handle custom game session.
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::CreateGameSession | ( | EAccelByteSessionType | SessionType, |
| FString const & | GameMode, | ||
| FString const & | GameMapName, | ||
| FString const & | GameVersion, | ||
| uint32 | BotCount, | ||
| uint32 | MaxPlayer, | ||
| uint32 | MaxSpectator, | ||
| FString const & | Password, | ||
| TSharedPtr< FJsonObject > | OtherSettings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Create custom game session to Session Browser specified by the type.
| SessionType | type of the session: p2p or dedicated |
| GameMode | game mode of the game. |
| GameMapName | map of the game. |
| GameVersion | version of the played game. |
| BotCount | number of bot. |
| MaxPlayer | maximum number of player can join the session. |
| Password | password of the game session |
| MaxSpectator | maximum of spectator |
| OtherSettings | other setting in json format |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::CreateGameSession | ( | FAccelByteModelsSessionBrowserCreateRequest const & | CreateSessionRequest, |
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Create custom game session to Session Browser specified by the type.
| CreateSessionRequest | create session parameters. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::CreateGameSession | ( | FString const & | GameMode, |
| FString const & | GameMapName, | ||
| FString const & | GameVersion, | ||
| uint32 | BotCount, | ||
| uint32 | MaxPlayer, | ||
| TSharedPtr< FJsonObject > | OtherSettings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Create public P2P game session to Session Browser.
| GameMode | game mode of the game. |
| GameMapName | map of the game. |
| GameVersion | version of the played game. |
| BotCount | number of bot. |
| MaxPlayer | maximum number of player can join the session. |
| OtherSettings | other setting in json format |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::CreateGameSession | ( | FString const & | GameMode, |
| FString const & | GameMapName, | ||
| FString const & | GameVersion, | ||
| uint32 | BotCount, | ||
| uint32 | MaxPlayer, | ||
| uint32 | MaxSpectator, | ||
| FString const & | Password, | ||
| TSharedPtr< FJsonObject > | OtherSettings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Create private P2P game session to Session Browser.
| GameMode | game mode of the game. |
| GameMapName | map of the game. |
| GameVersion | version of the played game. |
| BotCount | number of bot. |
| MaxPlayer | maximum number of player can join the session. |
| Password | password of the game session |
| MaxSpectator | maximum of spectator |
| OtherSettings | other setting in json format |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::CreateGameSession | ( | FString const & | SessionTypeString, |
| FString const & | GameMode, | ||
| FString const & | GameMapName, | ||
| FString const & | GameVersion, | ||
| uint32 | BotCount, | ||
| uint32 | MaxPlayer, | ||
| uint32 | MaxSpectator, | ||
| FString const & | Password, | ||
| TSharedPtr< FJsonObject > | OtherSettings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Create custom game session to Session Browser specified by the type.
| SessionTypeString | type of the session: p2p or dedicated |
| GameMode | game mode of the game. |
| GameMapName | map of the game. |
| GameVersion | version of the played game. |
| BotCount | number of bot. |
| MaxPlayer | maximum number of player can join the session. |
| Password | password of the game session |
| MaxSpectator | maximum of spectator |
| OtherSettings | other setting in json format |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSession | ( | FString const & | SessionId, |
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Get game session data by session ID.
| SessionId | id of the session |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSessions | ( | EAccelByteSessionType | SessionType, |
| FString const & | GameMode, | ||
| FString const & | MatchExist, | ||
| THandler< FAccelByteModelsSessionBrowserGetResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Offset = 0, | ||
| uint32 | Limit = 10 ) |
Query game session.
| SessionType | the session type, either "dedicated", opr "p2p". |
| GameMode | the game mode of the session to query. |
| MatchExist | value will be true, false or empty |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserGetResult. |
| OnError | This will be called when the operation failed. |
| Offset | offset of the query |
| Limit | number of data to return |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSessions | ( | EAccelByteSessionType | SessionType, |
| FString const & | GameMode, | ||
| THandler< FAccelByteModelsSessionBrowserGetResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Offset = 0, | ||
| uint32 | Limit = 10 ) |
Query game session.
| SessionType | the session type, either "dedicated", opr "p2p". |
| GameMode | the game mode of the session to query. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserGetResult. |
| OnError | This will be called when the operation failed. |
| Offset | offset of the query |
| Limit | number of data to return |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSessions | ( | FString const & | SessionTypeString, |
| FString const & | GameMode, | ||
| FString const & | MatchExist, | ||
| THandler< FAccelByteModelsSessionBrowserGetResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Offset = 0, | ||
| uint32 | Limit = 10 ) |
Query game session.
| SessionTypeString | the session type, either "dedicated", opr "p2p". |
| GameMode | the game mode of the session to query. |
| MatchExist | value will be true, false or empty |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserGetResult. |
| OnError | This will be called when the operation failed. |
| Offset | offset of the query |
| Limit | number of data to return |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSessions | ( | FString const & | SessionTypeString, |
| FString const & | GameMode, | ||
| THandler< FAccelByteModelsSessionBrowserGetResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Offset = 0, | ||
| uint32 | Limit = 10 ) |
Query game session.
| SessionTypeString | the session type, either "dedicated", opr "p2p". |
| GameMode | the game mode of the session to query. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserGetResult. |
| OnError | This will be called when the operation failed. |
| Offset | offset of the query |
| Limit | number of data to return |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetGameSessionsByUserIds | ( | const TArray< FString > & | UserIds, |
| THandler< FAccelByteModelsSessionBrowserGetByUserIdsResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Query game session by user ids.
| UserIds | List of user id |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserGetByUserIdsResult. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::GetRecentPlayer | ( | FString const & | UserId, |
| THandler< FAccelByteModelsSessionBrowserRecentPlayerGetResult > const & | OnSuccess, | ||
| FErrorHandler const & | OnError, | ||
| uint32 | Offset = 0, | ||
| uint32 | Limit = 10 ) |
GetRecentPlayer to game session.
| UserId | id of the user |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserRecentPlayerGetResult. |
| OnError | This will be called when the operation failed. |
| Offset | offset of the query |
| Limit | number of data to return |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::JoinSession | ( | FString const & | SessionId, |
| FString const & | Password, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
JoinSession to game session.
| SessionId | id of the session |
| Password | password to join if required |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::RegisterPlayer | ( | FString const & | SessionId, |
| FString const & | PlayerToAdd, | ||
| bool | AsSpectator, | ||
| THandler< FAccelByteModelsSessionBrowserAddPlayerResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
RegisterPlayer to game session.
| SessionId | id of the session |
| PlayerToAdd | player to add |
| AsSpectator | indicates as spectator |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserAddPlayerResponse. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::RemoveGameSession | ( | FString const & | SessionId, |
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Remove the session to Session Browser.
| SessionId | id of the session want to update. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UnregisterPlayer | ( | FString const & | SessionId, |
| FString const & | PlayerToRemove, | ||
| THandler< FAccelByteModelsSessionBrowserAddPlayerResponse > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
RegisterPlayer to game session.
| SessionId | id of the session |
| PlayerToRemove | player to remove from game session |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserAddPlayerResponse. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UpdateGameSession | ( | FString const & | SessionId, |
| FAccelByteModelsSessionBrowserUpdateRequest const & | UpdateSessionRequest, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update the session to Session Browser.
| SessionId | id of the session want to update. |
| UpdateSessionRequest | update session parameters. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UpdateGameSession | ( | FString const & | SessionId, |
| uint32 | MaxPlayer, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update the session to Session Browser.
| SessionId | id of the session want to update. |
| MaxPlayer | maximum number of player can join the session. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UpdateGameSession | ( | FString const & | SessionId, |
| uint32 | MaxPlayer, | ||
| uint32 | CurrentPlayerCount, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update the session to Session Browser. Current player count can not be updated from update session. CurrentPlayerCount will be updated automatically when register / unregister players.
| SessionId | id of the session want to update. |
| CurrentPlayerCount | current number of player in the session. |
| MaxPlayer | maximum number of player can join the session. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UpdateGameSettings | ( | FString const & | SessionId, |
| TMap< FString, FString > | Settings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update the session to Session Browser.
| SessionId | id of the session want to update. |
| Settings | update settings parameters. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |
| FAccelByteTaskWPtr AccelByte::Api::SessionBrowser::UpdateGameSettings | ( | FString const & | SessionId, |
| TSharedPtr< FJsonObject > | Settings, | ||
| THandler< FAccelByteModelsSessionBrowserData > const & | OnSuccess, | ||
| FErrorHandler const & | OnError ) |
Update the session to Session Browser.
| SessionId | id of the session want to update. |
| Settings | update settings parameters. |
| OnSuccess | This will be called when the operation succeeded. The result is FAccelByteModelsSessionBrowserData. |
| OnError | This will be called when the operation failed. |