예제 #1
0
 /// <summary>
 /// Returns a request to update the contents of a global storage item.
 /// </summary>
 /// <param name="key">The key that identifies the storage item.</param>
 /// <param name="operation">The operation to perform on the storage item's content.</param>
 /// <param name="value">The value to change the storage item content with.</param>
 public static GameJoltRequest <FetchResponse> Update(string key, StorageUpdateOperation operation, string value)
 => new GameJoltRequest <FetchResponse>("data-store/update",
                                        new Dictionary <string, string>()
 {
     { nameof(key), key },
     { nameof(value), value },
     { nameof(operation), operation.ToString().ToLowerInvariant() }
 });
예제 #2
0
파일: API.cs 프로젝트: nilllzz/Pokemon3D
 private static string StorageUpdateOperationToString(StorageUpdateOperation operation)
 {
     return operation.ToString().ToLowerInvariant();
 }
예제 #3
0
파일: API.cs 프로젝트: JoNMii/Pokemon3D
 private static string StorageUpdateOperationToString(StorageUpdateOperation operation)
 {
     return(operation.ToString().ToLowerInvariant());
 }