C# Class Pokemon3D.GameJolt.API.Calls.Storage

Contains static methods to create valid API calls to the Game Jolt API accessing the game's data storage.
Mostra file Open project: nilllzz/Pokemon3D

Public Methods

Method Description
FetchGlobal ( string key ) : APICall

Creates an API call to fetch data from an entry in the game's global data storage.

FetchUser ( string key, string username, string token ) : APICall

Creates an API call to fetch data from an entry in the user's data storage.

GetKeysGlobal ( ) : APICall

Creates an API call to get all storage keys for this game.

GetKeysGlobal ( string pattern ) : APICall

Creates an API call to get all storage keys for this game that match the given pattern.

GetKeysUser ( string username, string token ) : APICall

Creates an API call to get all storage keys for this user.

GetKeysUser ( string pattern, string username, string token ) : APICall

Creates an API call to get all storage keys for this user that match the given pattern.

RemoveGlobal ( string key ) : APICall

Creates an API call that removes an entry from the global data storage.

RemoveGlobal ( string key, string username, string token ) : APICall

Creates an API call that removes an entry from the user's data storage.

SetGlobal ( string key, string data ) : APICall

Creates an API call to set a global data storage entry.

SetRestricted ( string key, string data, string username, string token ) : APICall

Creates an API call that sets a global data storage item that can only be set by the user that created it.

SetUser ( string key, string data, string username, string token ) : APICall

Creates an API call to set a user's data storage entry.

UpdateGlobal ( string key, StorageUpdateOperation operation, string value ) : APICall

Creates an API call that updates a value in the global data storage.

UpdateGlobal ( string key, StorageUpdateOperation operation, string value, string username, string token ) : APICall

Creates an API call that updates a value in the user's data storage.

Method Details

FetchGlobal() public static method

Creates an API call to fetch data from an entry in the game's global data storage.
public static FetchGlobal ( string key ) : APICall
key string The key to return the data from.
return APICall

FetchUser() public static method

Creates an API call to fetch data from an entry in the user's data storage.
public static FetchUser ( string key, string username, string token ) : APICall
key string The key to return the data from.
username string The username of the user.
token string The token of the user.
return APICall

GetKeysGlobal() public static method

Creates an API call to get all storage keys for this game.
public static GetKeysGlobal ( ) : APICall
return APICall

GetKeysGlobal() public static method

Creates an API call to get all storage keys for this game that match the given pattern.
public static GetKeysGlobal ( string pattern ) : APICall
pattern string
return APICall

GetKeysUser() public static method

Creates an API call to get all storage keys for this user.
public static GetKeysUser ( string username, string token ) : APICall
username string
token string
return APICall

GetKeysUser() public static method

Creates an API call to get all storage keys for this user that match the given pattern.
public static GetKeysUser ( string pattern, string username, string token ) : APICall
pattern string
username string
token string
return APICall

RemoveGlobal() public static method

Creates an API call that removes an entry from the global data storage.
public static RemoveGlobal ( string key ) : APICall
key string
return APICall

RemoveGlobal() public static method

Creates an API call that removes an entry from the user's data storage.
public static RemoveGlobal ( string key, string username, string token ) : APICall
key string
username string
token string
return APICall

SetGlobal() public static method

Creates an API call to set a global data storage entry.
public static SetGlobal ( string key, string data ) : APICall
key string
data string
return APICall

SetRestricted() public static method

Creates an API call that sets a global data storage item that can only be set by the user that created it.
public static SetRestricted ( string key, string data, string username, string token ) : APICall
key string
data string
username string
token string
return APICall

SetUser() public static method

Creates an API call to set a user's data storage entry.
public static SetUser ( string key, string data, string username, string token ) : APICall
key string
data string
username string
token string
return APICall

UpdateGlobal() public static method

Creates an API call that updates a value in the global data storage.
public static UpdateGlobal ( string key, StorageUpdateOperation operation, string value ) : APICall
key string
operation StorageUpdateOperation
value string
return APICall

UpdateGlobal() public static method

Creates an API call that updates a value in the user's data storage.
public static UpdateGlobal ( string key, StorageUpdateOperation operation, string value, string username, string token ) : APICall
key string
operation StorageUpdateOperation
value string
username string
token string
return APICall