|
4 | 4 | using LootLocker.LootLockerEnums;
|
5 | 5 | #if LOOTLOCKER_USE_NEWTONSOFTJSON
|
6 | 6 | using Newtonsoft.Json;
|
7 |
| -using Newtonsoft.Json.Serialization; |
| 7 | +using Newtonsoft.Json.Serialization; |
8 | 8 | #else
|
9 | 9 | using LLlibs.ZeroDepJson;
|
10 | 10 | #endif
|
@@ -58,16 +58,16 @@ public static bool TryDeserializeObject<T>(string json, out T output)
|
58 | 58 | }
|
59 | 59 |
|
60 | 60 | public static bool TryDeserializeObject<T>(string json, JsonSerializerSettings options, out T output)
|
61 |
| - { |
62 |
| - try |
63 |
| - { |
64 |
| - output = JsonConvert.DeserializeObject<T>(json, options ?? LootLockerJsonSettings.Default); |
65 |
| - return true; |
66 |
| - } |
67 |
| - catch (Exception) |
68 |
| - { |
69 |
| - output = default(T); |
70 |
| - return false; |
| 61 | + { |
| 62 | + try |
| 63 | + { |
| 64 | + output = JsonConvert.DeserializeObject<T>(json, options ?? LootLockerJsonSettings.Default); |
| 65 | + return true; |
| 66 | + } |
| 67 | + catch (Exception) |
| 68 | + { |
| 69 | + output = default(T); |
| 70 | + return false; |
71 | 71 | }
|
72 | 72 | }
|
73 | 73 | #else //LOOTLOCKER_USE_NEWTONSOFTJSON
|
@@ -97,15 +97,15 @@ public static bool TryDeserializeObject<T>(string json, out T output)
|
97 | 97 | }
|
98 | 98 |
|
99 | 99 | public static bool TryDeserializeObject<T>(string json, JsonOptions options, out T output)
|
100 |
| - { |
101 |
| - try |
102 |
| - { |
103 |
| - output = Json.Deserialize<T>(json, options ?? LootLockerJsonSettings.Default); |
104 |
| - return true; |
105 |
| - } catch (Exception) |
106 |
| - { |
107 |
| - output = default(T); |
108 |
| - return false; |
| 100 | + { |
| 101 | + try |
| 102 | + { |
| 103 | + output = Json.Deserialize<T>(json, options ?? LootLockerJsonSettings.Default); |
| 104 | + return true; |
| 105 | + } catch (Exception) |
| 106 | + { |
| 107 | + output = default(T); |
| 108 | + return false; |
109 | 109 | }
|
110 | 110 | }
|
111 | 111 | #endif //LOOTLOCKER_USE_NEWTONSOFTJSON
|
@@ -307,50 +307,50 @@ public class LootLockerPaginationResponse<TKey>
|
307 | 307 | public TKey previous_cursor { get; set; }
|
308 | 308 | }
|
309 | 309 |
|
310 |
| - public class LootLockerExtendedPaginationError |
311 |
| - { |
312 |
| - /// <summary> |
313 |
| - /// Which field in the pagination that this error relates to |
| 310 | + public class LootLockerExtendedPaginationError |
| 311 | + { |
| 312 | + /// <summary> |
| 313 | + /// Which field in the pagination that this error relates to |
314 | 314 | /// </summary>
|
315 | 315 | public string field { get; set; }
|
316 |
| - /// <summary> |
317 |
| - /// The error message in question |
318 |
| - /// </summary> |
319 |
| - public string message { get; set; } |
| 316 | + /// <summary> |
| 317 | + /// The error message in question |
| 318 | + /// </summary> |
| 319 | + public string message { get; set; } |
320 | 320 | }
|
321 | 321 |
|
322 | 322 | public class LootLockerExtendedPagination
|
323 | 323 | {
|
324 |
| - /// <summary> |
325 |
| - /// How many entries in total exists in the paginated list |
| 324 | + /// <summary> |
| 325 | + /// How many entries in total exists in the paginated list |
326 | 326 | /// </summary>
|
327 | 327 | public int total { get; set; }
|
328 |
| - /// <summary> |
329 |
| - /// How many entries (counting from the beginning of the paginated list) from the first entry that the current page starts at |
| 328 | + /// <summary> |
| 329 | + /// How many entries (counting from the beginning of the paginated list) from the first entry that the current page starts at |
330 | 330 | /// </summary>
|
331 | 331 | public int offset { get; set; }
|
332 |
| - /// <summary> |
333 |
| - /// Number of entries on each page |
| 332 | + /// <summary> |
| 333 | + /// Number of entries on each page |
334 | 334 | /// </summary>
|
335 | 335 | public int per_page { get; set; }
|
336 |
| - /// <summary> |
337 |
| - /// The page index to use for fetching the last page of entries |
| 336 | + /// <summary> |
| 337 | + /// The page index to use for fetching the last page of entries |
338 | 338 | /// </summary>
|
339 | 339 | public int last_page { get; set; }
|
340 |
| - /// <summary> |
341 |
| - /// The page index used for fetching this page of entries |
| 340 | + /// <summary> |
| 341 | + /// The page index used for fetching this page of entries |
342 | 342 | /// </summary>
|
343 | 343 | public int current_page { get; set; }
|
344 |
| - /// <summary> |
345 |
| - /// The page index to use for fetching the page of entries immediately succeeding this page of entries |
| 344 | + /// <summary> |
| 345 | + /// The page index to use for fetching the page of entries immediately succeeding this page of entries |
346 | 346 | /// </summary>
|
347 | 347 | public int? next_page { get; set; }
|
348 |
| - /// <summary> |
349 |
| - /// The page index to use for fetching the page of entries immediately preceding this page of entries |
| 348 | + /// <summary> |
| 349 | + /// The page index to use for fetching the page of entries immediately preceding this page of entries |
350 | 350 | /// </summary>
|
351 | 351 | public int? prev_page { get; set; }
|
352 |
| - /// <summary> |
353 |
| - /// List of pagination errors (if any). These are errors specifically related to the pagination of the entry set. |
| 352 | + /// <summary> |
| 353 | + /// List of pagination errors (if any). These are errors specifically related to the pagination of the entry set. |
354 | 354 | /// </summary>
|
355 | 355 | public LootLockerExtendedPaginationError[] errors { get; set; }
|
356 | 356 | }
|
|
0 commit comments