示例#1
0
 public static Task <User> GetByUsernameAsync(string gameId, string privateKey, string username)
 {
     return(AsyncHelper.AsyncCall(action => { BeginGetByUsername(gameId, privateKey, username, action); }, EndGetByUsername));
 }
示例#2
0
 public static Task <User[]> GetByUserIdsAsync(string gameId, string privateKey, string[] userIds)
 {
     return(AsyncHelper.AsyncCall(action => { BeginGetByUserIds(gameId, privateKey, userIds, action); }, EndGetByUserIds));
 }
示例#3
0
 public static Task <string> AuthenticateUserAsync(string gameId, string privateKey, string username, string userToken)
 {
     return(AsyncHelper.AsyncCall(action => { BeginAuthenticateUser(gameId, privateKey, username, userToken, action); }, EndAuthenticateUser));
 }
示例#4
0
 public static Task <string[]> GetKeysAsync(string gameId, string privateKey, string username, string userToken, DataStoreType type)
 {
     return(AsyncHelper.AsyncCall(callback => BeginGetKeys(gameId, privateKey, username, userToken, type, callback), EndGetKeys));
 }
示例#5
0
 public static Task <string> RemoveByKeyAsync(string gameId, string privateKey, string username, string userToken, string key)
 {
     return(AsyncHelper.AsyncCall(callback => BeginRemoveByKey(gameId, privateKey, username, userToken, key, callback), EndRemoveByKey));
 }
示例#6
0
 public static Task <DataStore> UpdateByKeyAsync(string gameId, string privateKey, string username, string userToken, string key, DataStoreOperation operation, string value)
 {
     return(AsyncHelper.AsyncCall(callback => BeginUpdateByKey(gameId, privateKey, username, userToken, key, operation, value, callback), EndUpdateByKey));
 }
示例#7
0
 public static Task <string> SetByKeyAsync(string gameId, string privateKey, string username, string userToken, string key, string data)
 {
     return(AsyncHelper.AsyncCall(callback => BeginSetByKey(gameId, privateKey, username, userToken, key, data, callback), EndSetByKey));
 }
示例#8
0
 public static Task <DataStore> GetByKeyAsync(string gameId, string privateKey, string username, string userToken, string key)
 {
     return(AsyncHelper.AsyncCall(callback => BeginGetByKey(gameId, privateKey, username, userToken, key, callback), EndGetByKey));
 }