SohaUser¶
Overview¶
Represents a user. Invalidated users (such as those whose passwords have been changed on another client) are automatically logged out.
Properties¶
serverID¶
Use this property to set server id.
Declaration
serverName¶
Use this property to set server name.
Declaration
characterID¶
Use this property to set character id.
Declaration
characterName¶
Use this property to set character level.
Declaration
accessToken¶
Access token of the current use. Use this property to authentication with SohaGame platform.
Declaration
userId¶
The id of the current user.
Declaration
userName¶
The name of the current user.
Declaration
userEmail¶
The email of the current user.
Declaration
avatarImgLink¶
The avatar url of the current user.
Declaration
new_user¶
Indicates this user is a new user.
Declaration
isPlayNow¶
Indicates this user logged in via play now.
Declaration
isLoggingOut¶
Indicates this user is logged out.
Declaration
isTestUser¶
Indicates this user is a test user.
Declaration
Methods¶
currentUser¶
Gets the singleton instance of the SohaUser class.
Declaration
updateInfoWithData¶
Updates information for the user.
Declaration
Parameters
userInfo
The infomation of user.
clearData¶
Clears the current user's data from the cache.
Declaration