Loading...
Searching...
No Matches
AccelByte.Server.ServerSeasonPass Class Reference
Inheritance diagram for AccelByte.Server.ServerSeasonPass:

Public Member Functions

void GrantExpToUser (string userId, int exp, ResultCallback< UserSeasonInfoWithoutReward > callback, SeasonPassSource source=SeasonPassSource.SWEAT, string[] tags=null)
 Grant exp to user by UserId. After reaching to the next level, currentExp will be reset to 0, remainder will be added.
void GrantTierToUser (string userId, int count, ResultCallback< UserSeasonInfoWithoutReward > callback, SeasonPassSource source=SeasonPassSource.SWEAT, string[] tags=null)
 Grant tier to user by UserId. used to grant tier to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.
void GetUserSeasonData (string userId, string seasonId, ResultCallback< UserSeasonInfo > callback)
 Get User Season Data by UserId. Used for get user season data, season only located in non-publisher namespace.
void GetCurrentUserSeasonHistory (string userId, string seasonId, ResultCallback< UserSeasonExpHistory > callback)
 Get Current User Season History by UserId. used to get user exp acquisition history, season only located in non-publisher namespace.
void QueryUserSeasonExp (string userId, string seasonId, ResultCallback< QueryUserSeasonExp > callback)
 Get Query User Season Exp Season History by UserId. After reaching to the next level, used to get user exp acquisition history's tag list.
void GetCurrentUserSeasonProgression (string userId, ResultCallback< UserSeasonInfoWithoutReward > callback)
 Get current user season progression, season only located in non-publisher namespace.
void BulkGetUserSessionProgression (string[] userIds, ResultCallback< UserSeasonInfo[]> callback)
 Bulk get current user session progression.

Additional Inherited Members

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

Member Function Documentation

◆ BulkGetUserSessionProgression()

void AccelByte.Server.ServerSeasonPass.BulkGetUserSessionProgression ( string[] userIds,
ResultCallback< UserSeasonInfo[]> callback )
inline

Bulk get current user session progression.

Parameters
userIdThe User IDs to get user session progression.
callbackReturns a Result that contains UserSeasonInfo via callback when completed.

◆ GetCurrentUserSeasonHistory()

void AccelByte.Server.ServerSeasonPass.GetCurrentUserSeasonHistory ( string userId,
string seasonId,
ResultCallback< UserSeasonExpHistory > callback )
inline

Get Current User Season History by UserId. used to get user exp acquisition history, season only located in non-publisher namespace.

Parameters
userIdThe User ID will be granted the exp.
seasonIdThe Id of the Season.
callbackReturns a Result that contains UserSeasonExpHistory via callback when completed.

◆ GetCurrentUserSeasonProgression()

void AccelByte.Server.ServerSeasonPass.GetCurrentUserSeasonProgression ( string userId,
ResultCallback< UserSeasonInfoWithoutReward > callback )
inline

Get current user season progression, season only located in non-publisher namespace.

Parameters
userIdThe User ID to check user season progression.
callbackReturns a Result that contains UserSeasonInfoWithoutReward via callback when completed.

◆ GetUserSeasonData()

void AccelByte.Server.ServerSeasonPass.GetUserSeasonData ( string userId,
string seasonId,
ResultCallback< UserSeasonInfo > callback )
inline

Get User Season Data by UserId. Used for get user season data, season only located in non-publisher namespace.

Parameters
userIdThe User ID will be granted the exp.
expTotal of the exp will be granted to user.
sourceGranted tier source.
tagsGrant for reason.
callbackReturns a Result that contains UserSeasonInfo via callback when completed.

◆ GrantExpToUser()

void AccelByte.Server.ServerSeasonPass.GrantExpToUser ( string userId,
int exp,
ResultCallback< UserSeasonInfoWithoutReward > callback,
SeasonPassSource source = SeasonPassSource::SWEAT,
string[] tags = null )
inline

Grant exp to user by UserId. After reaching to the next level, currentExp will be reset to 0, remainder will be added.

Parameters
userIdThe User ID will be granted the exp.
expTotal of the exp will be granted to user.
callbackReturns a Result that contains UserSeasonInfoWithoutReward via callback when completed.
sourceGranted tier source. Default value SWEAT.
tagsGrant for reason. Default value null.

◆ GrantTierToUser()

void AccelByte.Server.ServerSeasonPass.GrantTierToUser ( string userId,
int count,
ResultCallback< UserSeasonInfoWithoutReward > callback,
SeasonPassSource source = SeasonPassSource::SWEAT,
string[] tags = null )
inline

Grant tier to user by UserId. used to grant tier to user, it will auto enroll if there's no user season but active published season exist, season only located in non-publisher namespace, otherwise ignore.

Parameters
userIdThe User ID will be granted the exp.
countTotal of the count will be granted to user.
sourceGranted tier source.
tagsGrant for reason.
callbackReturns a Result that contains UserSeasonInfoWithoutReward via callback when completed.

◆ QueryUserSeasonExp()

void AccelByte.Server.ServerSeasonPass.QueryUserSeasonExp ( string userId,
string seasonId,
ResultCallback< QueryUserSeasonExp > callback )
inline

Get Query User Season Exp Season History by UserId. After reaching to the next level, used to get user exp acquisition history's tag list.

Parameters
userIdThe User ID will be granted the exp.
seasonIdThe Id of the Season.
callbackReturns a Result that contains QueryUserSeasonExp via callback when completed.