Exemplo n.º 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() }
 });
Exemplo n.º 2
0
 private static string StorageUpdateOperationToString(StorageUpdateOperation operation)
 {
     return operation.ToString().ToLowerInvariant();
 }
Exemplo n.º 3
0
 private static string StorageUpdateOperationToString(StorageUpdateOperation operation)
 {
     return(operation.ToString().ToLowerInvariant());
 }