Method LoadAsync
LoadAsync(HashSet<string>)
Downloads one or more values from Cloud Save, based on provided keys.
HashSet
as a parameter ensures the uniqueness of keys.
There is no client validation in place. This method includes pagination. Throws a CloudSaveException with a reason code and explanation of what happened.
Declaration
[Obsolete("This method will be removed in an upcoming release. In order to get a serialized object value, call: Task<Dictionary<string, Item>> CloudSaveService.Instance.Data.Player.LoadAsync(ISet<string> keys) and use the GetAsString() method provided by IDeserializable on Item.Value", false)]
Task<Dictionary<string, string>> LoadAsync(HashSet<string> keys = null)
Parameters
Type | Name | Description |
---|---|---|
HashSet<string> | keys | The HashSet of keys to download from the server |
Returns
Type | Description |
---|---|
Task<Dictionary<string, string>> | The dictionary of key-value pairs that represents the current state of data on the server |
Exceptions
Type | Condition |
---|---|
CloudSaveException | Thrown if request is unsuccessful. |
CloudSaveValidationException | Thrown if the service returned validation error. |
CloudSaveRateLimitedException | Thrown if the service returned rate limited error. |