User objects.
More...
◆ User() [1/3]
GameJolt.API.Objects.User.User |
( |
int |
id | ) |
|
|
inline |
Initializes a new instance of the User class.
- Parameters
-
◆ User() [2/3]
GameJolt.API.Objects.User.User |
( |
string |
name, |
|
|
string |
token |
|
) |
| |
|
inline |
Initializes a new instance of the User class.
- Parameters
-
◆ User() [3/3]
GameJolt.API.Objects.User.User |
( |
JSONClass |
data | ) |
|
|
inline |
Initializes a new instance of the User class.
- Parameters
-
◆ DownloadAvatar()
void GameJolt.API.Objects.User.DownloadAvatar |
( |
Action< bool > |
callback = null | ) |
|
|
inline |
Downloads the User avatar.
- Parameters
-
callback | A callback function accepting a single parameter, a boolean indicating success. |
Will set the Avatar
field on the user.
◆ Get()
void GameJolt.API.Objects.User.Get |
( |
Action< User > |
callback = null | ) |
|
|
inline |
Get the User information.
- Parameters
-
callback | A callback function accepting a single parameter, a User. |
Shortcut for GameJolt.API.Users.Get(this);
◆ PopulateFromJson()
override void GameJolt.API.Objects.User.PopulateFromJson |
( |
JSONClass |
data | ) |
|
|
inlineprotectedvirtual |
◆ SignIn()
void GameJolt.API.Objects.User.SignIn |
( |
Action< bool > |
signedInCallback = null , |
|
|
Action< bool > |
userFetchedCallback = null , |
|
|
bool |
rememberMe = false |
|
) |
| |
|
inline |
Signs in the user.
- Parameters
-
signedInCallback | A callback function accepting a single parameter, a boolean indicating whether the user has been signed-in successfully. |
userFetchedCallback | A callback function accepting a single parameter, a boolean indicating whether the user's information have been fetched successfully. |
rememberMe | Whether the user's credentials should be stored in the player prefs. |
◆ SignOut()
void GameJolt.API.Objects.User.SignOut |
( |
| ) |
|
|
inline |
◆ ToString()
override string GameJolt.API.Objects.User.ToString |
( |
| ) |
|
|
inline |
Returns a string that represents the current User.
- Returns
- A string that represents the current User.
◆ Avatar
Sprite GameJolt.API.Objects.User.Avatar |
|
getset |
Gets or sets the user avatar.
The user avatar.
Settings this will only affect your game and won't be saved to GameJolt.
◆ AvatarURL
string GameJolt.API.Objects.User.AvatarURL |
|
getset |
Gets or sets the user avatar URL.
The user avatar URL.
Settings this will only affect your game and won't be saved to GameJolt.
◆ DeveloperDescription
string GameJolt.API.Objects.User.DeveloperDescription |
|
get |
The user's profile description. HTML tags and line breaks will be removed.
◆ DeveloperName
string GameJolt.API.Objects.User.DeveloperName |
|
get |
◆ DeveloperWebsite
string GameJolt.API.Objects.User.DeveloperWebsite |
|
get |
The user's website (or empty string if not specified)
◆ ID
int GameJolt.API.Objects.User.ID |
|
getset |
Gets or sets the ID.
The ID.
Settings this will only affect your game and won't be saved to GameJolt.
◆ IsAuthenticated
bool GameJolt.API.Objects.User.IsAuthenticated |
|
get |
Gets a value indicating whether this User is authenticated.
true
if this User is authenticated; otherwise, false
.
◆ IsOnline
bool GameJolt.API.Objects.User.IsOnline |
|
get |
Whether this user is currently logged in into Game Jolt.
◆ LastLoggedIn
string GameJolt.API.Objects.User.LastLoggedIn |
|
get |
How long ago the user was last logged in. Will be "Online Now" if the user is currently online. Example: 2 minutes ago
◆ LastLoggedInTimestamp
int GameJolt.API.Objects.User.LastLoggedInTimestamp |
|
get |
The timestamp (in seconds) of when the user was last logged in. Example: 1502471604
◆ Name
string GameJolt.API.Objects.User.Name |
|
getset |
Gets or sets the name.
The name.
Setting the name to a different value (case insensitive) will cause an authenticated User to not be authenticated anymore.
Settings this will only affect your game and won't be saved to GameJolt.
◆ SignedUp
string GameJolt.API.Objects.User.SignedUp |
|
get |
How long ago the user signed up. Example: "1 year ago"
◆ SignedUpTimestamp
int GameJolt.API.Objects.User.SignedUpTimestamp |
|
get |
The timestamp (in seconds) of when the user signed up. Example: 1502471604
◆ Status
Gets the user status.
The user status.
◆ Token
string GameJolt.API.Objects.User.Token |
|
getset |
Gets or sets the token.
The token.
Setting the token to a different value (case insensitive) will cause an authenticated User to not be authenticated anymore.
Settings this will only affect your game and won't be saved to GameJolt.
◆ Type
Gets the user type.
The user type.
The documentation for this class was generated from the following file:
- D:/Dev/Unity/AssetStore/GameJoltAPI/Assets/Plugins/GameJolt/Scripts/API/Objects/User.cs