Loading...
Searching...
No Matches
AccelByte.Api.Session Class Reference
Inheritance diagram for AccelByte.Api.Session:

Public Member Functions

void GetPartyDetails (string partyId, ResultCallback< SessionV2PartySession > callback)
 Get Party details with partyId.
void UpdateParty (string partyId, SessionV2PartySessionUpdateRequest request, ResultCallback< SessionV2PartySession > callback)
 Update(Overwrite) all fields of a party. Note: Join type can only be updated by the party's leader.
void PatchUpdateParty (string partyId, SessionV2PartySessionUpdateRequest request, ResultCallback< SessionV2PartySession > callback)
 Update(Partially) specified field(s) of a party. Note: Join type can only be updated by the party's leader.
void InviteUserToParty (string partyId, string userId, ResultCallback callback)
 Invite a user to a party.
void InviteUserToParty (string partyId, string userId, InviteUserToPartyOptionalParameters optionalParameters, ResultCallback callback)
 Invite a user to a party.
void PromoteUserToPartyLeader (string partyId, string leaderId, ResultCallback< SessionV2PartySession > callback)
 Promotes a party member to be a party leader. Only leader can promote a new leader.
void JoinParty (string partyId, ResultCallback< SessionV2PartySession > callback)
 Join a party.
void LeaveParty (string partyId, ResultCallback callback)
 Leave a Party.
void RejectPartyInvitation (string partyId, ResultCallback callback)
 Reject a party invitation.
void KickUserFromParty (string partyId, string userId, ResultCallback< SessionV2PartySessionKickResponse > callback)
 Kick a player from a party. Requires invoker to be the party leader.
void CreateParty (SessionV2PartySessionCreateRequest request, ResultCallback< SessionV2PartySession > callback)
 Create a Party and assign invoker as leader.
void GetUserParties (ResultCallback< PaginatedResponse< SessionV2PartySession > > callback)
 Get all parties of a user(invoker).
void JoinPartyByCode (string code, ResultCallback< SessionV2PartySession > callback)
 Join a party using a code.
void GenerateNewPartyCode (string partyId, ResultCallback< SessionV2PartySession > callback)
 Generate new code for a party.
void RevokePartyCode (string sessionId, ResultCallback callback)
 Revoke party code.
void CancelPartyInvitation (string partyId, string userId, ResultCallback callback)
void CreateGameSession (SessionV2GameSessionCreateRequest request, ResultCallback< SessionV2GameSession > callback)
 Create Game Session.
void QueryGameSession (Dictionary< string, object > request, ResultCallback< PaginatedResponse< SessionV2GameSession > > callback)
 Query Game Session By default, API will return a list of available game sessions with free form input.
void QueryGameSession (GameSessionQuery query, ResultCallback< PaginatedResponse< SessionV2GameSession > > callback)
 Query Game Session By default, API will return a list of available game sessions.
void QueryGameSession (GameSessionQuery query, QueryGameSessionOptionalParameters optionalParameters, ResultCallback< PaginatedResponse< SessionV2GameSession > > callback)
 Query Game Session By default, API will return a list of available game sessions.
void GetGameSessionDetailsByPodName (string podName, ResultCallback< SessionV2GameSession > callback)
 Get game session detail by podName. Session service has several DSInformation status to track DS request to DSMC.
void GetGameSessionDetailsBySessionId (string sessionId, ResultCallback< SessionV2GameSession > callback)
 Get game session detail by sessionId. Session service has several DSInformation status to track DS request to DSMC.
void DeleteGameSession (string sessionId, ResultCallback callback)
 Delete a game session.
void PatchGameSession (string sessionId, SessionV2GameSessionUpdateRequest request, ResultCallback< SessionV2GameSession > callback)
 Patch updates a game session, only specified fields from game session data.
void InviteUserToGameSession (string sessionId, string userId, ResultCallback callback)
 Invite a user to a game session.
void InviteUserToGameSession (string sessionId, string userId, InviteUserToGameSessionOptionalParameters optionalParameters, ResultCallback callback)
 Invite a user to a game session.
void KickUserFromGameSession (string sessionId, string userId, ResultCallback callback)
 Kick a user from the game session. Only the leader can kick a member.
void JoinGameSession (string sessionId, ResultCallback< SessionV2GameSession > callback)
 Join a game session.
void LeaveGameSession (string sessionId, ResultCallback callback)
 Leave a game session.
void RejectGameSessionInvitation (string sessionId, ResultCallback callback)
 Reject a game session invitation.
void GetUserGameSessions (SessionV2StatusFilter? statusFilter, SessionV2AttributeOrderBy? orderBy, bool? sortDesc, ResultCallback< PaginatedResponse< SessionV2GameSession > > callback)
 Query user's game sessions. By default, API will return a list of user's active game sessions (INVITED,JOINED,CONNECTED).
void JoinGameSessionByCode (string code, ResultCallback< SessionV2GameSession > callback)
 Join a game session using a code.
void GenerateNewGameSessionCode (string sessionId, ResultCallback< SessionV2GameSession > callback)
 Generate new code for a game session.
void RevokeGameSessionCode (string sessionId, ResultCallback callback)
 Revoke game session code.
void PromoteUserToGameSessionLeader (string sessionId, string leaderId, ResultCallback< SessionV2GameSession > callback)
 Promote user to be a game session leader.
void UpdateLeaderStorage (string sessionId, JObject data, ResultCallback< JObject > callback)
 Update leader's session storage data, can only be updated by current session leader. This will overwrite leader storage data, if updating also provide latest leader storage. To clear current leader storage data update with empty JObject.
void UpdateMemberStorage (string sessionId, JObject data, ResultCallback< JObject > callback)
 Update current user's session member storage data. This will overwrite this user's storage data, if updating also provide latest user's storage. To clear current user's storage data update with empty jsonObject.
void GetPlayerAttributes (ResultCallback< PlayerAttributesResponseBody > callback)
 Get player attributes.
void StorePlayerAttributes (PlayerAttributesRequestBody requestBody, ResultCallback< PlayerAttributesResponseBody > callback)
 Set the behavior of player online session.
void ResetPlayerAttributes (ResultCallback callback)
 Reset player attributes.
void GetRecentPlayers (ResultCallback< SessionV2RecentPlayers > callback)
 Get recent players.
void GetRecentPlayers (GetRecentPlayersOptionalParameters optionalParameters, ResultCallback< SessionV2RecentPlayers > callback)
 Get recent players.

Additional Inherited Members

Properties inherited from AccelByte.Core.WrapperBase
Utils.AccelByteIdValidator IdValidator [get]

Member Function Documentation

◆ CreateGameSession()

void AccelByte.Api.Session.CreateGameSession ( SessionV2GameSessionCreateRequest request,
ResultCallback< SessionV2GameSession > callback )
inline

Create Game Session.

Parameters
requestDetails of creating game session.
callbackReturns a Result that contain SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ CreateParty()

void AccelByte.Api.Session.CreateParty ( SessionV2PartySessionCreateRequest request,
ResultCallback< SessionV2PartySession > callback )
inline

Create a Party and assign invoker as leader.

Parameters
requestCompiled request with details of the creating party session
callbackReturns a Result that contain SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ DeleteGameSession()

void AccelByte.Api.Session.DeleteGameSession ( string sessionId,
ResultCallback callback )
inline

Delete a game session.

Parameters
sessionIdTargeted game session's sessionId
callbackReturns a result via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GenerateNewGameSessionCode()

void AccelByte.Api.Session.GenerateNewGameSessionCode ( string sessionId,
ResultCallback< SessionV2GameSession > callback )
inline

Generate new code for a game session.

Parameters
sessionIdGame session ID.
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GenerateNewPartyCode()

void AccelByte.Api.Session.GenerateNewPartyCode ( string partyId,
ResultCallback< SessionV2PartySession > callback )
inline

Generate new code for a party.

Parameters
partyIdParty ID.
callbackReturns a result of SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GetGameSessionDetailsByPodName()

void AccelByte.Api.Session.GetGameSessionDetailsByPodName ( string podName,
ResultCallback< SessionV2GameSession > callback )
inline

Get game session detail by podName. Session service has several DSInformation status to track DS request to DSMC.

Parameters
podNameTargeted game session's podName
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GetGameSessionDetailsBySessionId()

void AccelByte.Api.Session.GetGameSessionDetailsBySessionId ( string sessionId,
ResultCallback< SessionV2GameSession > callback )
inline

Get game session detail by sessionId. Session service has several DSInformation status to track DS request to DSMC.

Parameters
sessionIdTargeted game session's sessionId
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GetPartyDetails()

void AccelByte.Api.Session.GetPartyDetails ( string partyId,
ResultCallback< SessionV2PartySession > callback )
inline

Get Party details with partyId.

Parameters
partyIdTargeted party ID.
callbackReturns a Result that contain SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GetRecentPlayers() [1/2]

void AccelByte.Api.Session.GetRecentPlayers ( GetRecentPlayersOptionalParameters optionalParameters,
ResultCallback< SessionV2RecentPlayers > callback )
inline

Get recent players.

Parameters
optionalParametersOptional parameters including limit (default: 20, max: 200)
callbackReturns SessionV2RecentPlayers via callback when completed

◆ GetRecentPlayers() [2/2]

void AccelByte.Api.Session.GetRecentPlayers ( ResultCallback< SessionV2RecentPlayers > callback)
inline

Get recent players.

Parameters
callbackReturns SessionV2RecentPlayers via callback when completed

◆ GetUserGameSessions()

void AccelByte.Api.Session.GetUserGameSessions ( SessionV2StatusFilter? statusFilter,
SessionV2AttributeOrderBy? orderBy,
bool? sortDesc,
ResultCallback< PaginatedResponse< SessionV2GameSession > > callback )
inline

Query user's game sessions. By default, API will return a list of user's active game sessions (INVITED,JOINED,CONNECTED).

Parameters
statusFilterGame session status to filter. Supported status: INVITED, JOINED, CONNECTED
orderByOrder result by specific attribute. Supported: createdAt (default), updatedAt
sortDescIs descending order of the result. Default is true. Ascending order if false.
callbackReturns a paginated result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ GetUserParties()

void AccelByte.Api.Session.GetUserParties ( ResultCallback< PaginatedResponse< SessionV2PartySession > > callback)
inline

Get all parties of a user(invoker).

Parameters
callbackReturns a paginated result of SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ InviteUserToGameSession() [1/2]

void AccelByte.Api.Session.InviteUserToGameSession ( string sessionId,
string userId,
InviteUserToGameSessionOptionalParameters optionalParameters,
ResultCallback callback )
inline

Invite a user to a game session.

Parameters
sessionIdTargeted game session's sessionId
userIdTargeted user's userId
optionalParametersOptional parameters can be used
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ InviteUserToGameSession() [2/2]

void AccelByte.Api.Session.InviteUserToGameSession ( string sessionId,
string userId,
ResultCallback callback )
inline

Invite a user to a game session.

Parameters
sessionIdTargeted game session's sessionId
userIdTargeted user's userId
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ InviteUserToParty() [1/2]

void AccelByte.Api.Session.InviteUserToParty ( string partyId,
string userId,
InviteUserToPartyOptionalParameters optionalParameters,
ResultCallback callback )
inline

Invite a user to a party.

Parameters
partyIdTargeted party ID
userIdTargeted user ID
optionalParametersOptional parameters to be set
callbackReturns a Result with status code

Implements AccelByte.Api.Interface.IClientSession.

◆ InviteUserToParty() [2/2]

void AccelByte.Api.Session.InviteUserToParty ( string partyId,
string userId,
ResultCallback callback )
inline

Invite a user to a party.

Parameters
partyIdTargeted party ID
userIdTargeted user ID
callbackReturns a Result with status code

Implements AccelByte.Api.Interface.IClientSession.

◆ JoinGameSession()

void AccelByte.Api.Session.JoinGameSession ( string sessionId,
ResultCallback< SessionV2GameSession > callback )
inline

Join a game session.

Parameters
sessionIdTargeted game session's sessionId
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ JoinGameSessionByCode()

void AccelByte.Api.Session.JoinGameSessionByCode ( string code,
ResultCallback< SessionV2GameSession > callback )
inline

Join a game session using a code.

Parameters
codeGame session code.
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ JoinParty()

void AccelByte.Api.Session.JoinParty ( string partyId,
ResultCallback< SessionV2PartySession > callback )
inline

Join a party.

Parameters
partyIdTargeted party ID.
callbackReturns a Result that contain SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ JoinPartyByCode()

void AccelByte.Api.Session.JoinPartyByCode ( string code,
ResultCallback< SessionV2PartySession > callback )
inline

Join a party using a code.

Parameters
codeParty code.
callbackReturns a result of SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ KickUserFromGameSession()

void AccelByte.Api.Session.KickUserFromGameSession ( string sessionId,
string userId,
ResultCallback callback )
inline

Kick a user from the game session. Only the leader can kick a member.

Parameters
sessionIdTargeted game session's sessionId
userIdTargeted user's userId
callbackReturns a result via callback when completed

Implements AccelByte.Api.Interface.IClientSession.

◆ KickUserFromParty()

void AccelByte.Api.Session.KickUserFromParty ( string partyId,
string userId,
ResultCallback< SessionV2PartySessionKickResponse > callback )
inline

Kick a player from a party. Requires invoker to be the party leader.

Parameters
partyIdTargeted party ID.
userIdTargeted user's ID.
callbackReturns a Result that contain SessionV2PartySessionKickResponse via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ LeaveGameSession()

void AccelByte.Api.Session.LeaveGameSession ( string sessionId,
ResultCallback callback )
inline

Leave a game session.

Parameters
sessionIdTargeted game session's sessionId
callbackReturns a result via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ LeaveParty()

void AccelByte.Api.Session.LeaveParty ( string partyId,
ResultCallback callback )
inline

Leave a Party.

Parameters
partyIdTargeted party ID.
callbackReturns a Result with status code

Implements AccelByte.Api.Interface.IClientSession.

◆ PatchGameSession()

void AccelByte.Api.Session.PatchGameSession ( string sessionId,
SessionV2GameSessionUpdateRequest request,
ResultCallback< SessionV2GameSession > callback )
inline

Patch updates a game session, only specified fields from game session data.

Parameters
sessionIdTargeted game session's sessionId
requestCompiled request of updating game session details
callbackReturns a result of updated SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ PatchUpdateParty()

void AccelByte.Api.Session.PatchUpdateParty ( string partyId,
SessionV2PartySessionUpdateRequest request,
ResultCallback< SessionV2PartySession > callback )
inline

Update(Partially) specified field(s) of a party. Note: Join type can only be updated by the party's leader.

Parameters
partyIdTargeted party ID.
requestCompiled request with the updating details of the party session
callbackReturns a Result that contain SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ PromoteUserToGameSessionLeader()

void AccelByte.Api.Session.PromoteUserToGameSessionLeader ( string sessionId,
string leaderId,
ResultCallback< SessionV2GameSession > callback )
inline

Promote user to be a game session leader.

Parameters
sessionIdGame session ID.
leaderIdTargeted user ID of new leader
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ PromoteUserToPartyLeader()

void AccelByte.Api.Session.PromoteUserToPartyLeader ( string partyId,
string leaderId,
ResultCallback< SessionV2PartySession > callback )
inline

Promotes a party member to be a party leader. Only leader can promote a new leader.

Parameters
partyIdTargeted party ID
leaderIdTargeted user ID of new leader
callbackReturns a Result that contain SessionV2PartySession via callback when completed

Implements AccelByte.Api.Interface.IClientSession.

◆ QueryGameSession() [1/3]

void AccelByte.Api.Session.QueryGameSession ( Dictionary< string, object > request,
ResultCallback< PaginatedResponse< SessionV2GameSession > > callback )
inline

Query Game Session By default, API will return a list of available game sessions with free form input.

Parameters
requestList of attributes to filter from available sessions
callbackReturns a paginated result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ QueryGameSession() [2/3]

void AccelByte.Api.Session.QueryGameSession ( GameSessionQuery query,
QueryGameSessionOptionalParameters optionalParameters,
ResultCallback< PaginatedResponse< SessionV2GameSession > > callback )
inline

Query Game Session By default, API will return a list of available game sessions.

Parameters
queryQuery Object
optionalParametersContains query optional parameter
callbackReturns a paginated result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ QueryGameSession() [3/3]

void AccelByte.Api.Session.QueryGameSession ( GameSessionQuery query,
ResultCallback< PaginatedResponse< SessionV2GameSession > > callback )
inline

Query Game Session By default, API will return a list of available game sessions.

Parameters
queryQuery Object
callbackReturns a paginated result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ RejectGameSessionInvitation()

void AccelByte.Api.Session.RejectGameSessionInvitation ( string sessionId,
ResultCallback callback )
inline

Reject a game session invitation.

Parameters
sessionIdTargeted game session's sessionId
callbackReturns a result via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ RejectPartyInvitation()

void AccelByte.Api.Session.RejectPartyInvitation ( string partyId,
ResultCallback callback )
inline

Reject a party invitation.

Parameters
partyIdTargeted party ID.
callbackReturns a Result with status code

Implements AccelByte.Api.Interface.IClientSession.

◆ RevokeGameSessionCode()

void AccelByte.Api.Session.RevokeGameSessionCode ( string sessionId,
ResultCallback callback )
inline

Revoke game session code.

Parameters
sessionIdGame session ID.
callbackReturns a result of SessionV2GameSession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ RevokePartyCode()

void AccelByte.Api.Session.RevokePartyCode ( string sessionId,
ResultCallback callback )
inline

Revoke party code.

Parameters
sessionIdParty ID.
callbackReturns a result of SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ UpdateLeaderStorage()

void AccelByte.Api.Session.UpdateLeaderStorage ( string sessionId,
JObject data,
ResultCallback< JObject > callback )
inline

Update leader's session storage data, can only be updated by current session leader. This will overwrite leader storage data, if updating also provide latest leader storage. To clear current leader storage data update with empty JObject.

Parameters
sessionIdThe game or party session id.
dataData to update leader storage.
callbackCallback will be called when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ UpdateMemberStorage()

void AccelByte.Api.Session.UpdateMemberStorage ( string sessionId,
JObject data,
ResultCallback< JObject > callback )
inline

Update current user's session member storage data. This will overwrite this user's storage data, if updating also provide latest user's storage. To clear current user's storage data update with empty jsonObject.

Parameters
sessionIdThe game or party session id.
dataData to update leader storage.
callbackCallback will be called when completed.

Implements AccelByte.Api.Interface.IClientSession.

◆ UpdateParty()

void AccelByte.Api.Session.UpdateParty ( string partyId,
SessionV2PartySessionUpdateRequest request,
ResultCallback< SessionV2PartySession > callback )
inline

Update(Overwrite) all fields of a party. Note: Join type can only be updated by the party's leader.

Parameters
partyIdTargeted party ID.
requestCompiled request with the updating details of the party session
callbackReturns a Result that contain SessionV2PartySession via callback when completed.

Implements AccelByte.Api.Interface.IClientSession.