blob: dca2f08d2665ba4d14cd6a5a6abe774c265a68c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
using System.Text.Json.Serialization;
namespace Spacebar.Models.Api;
public class GifItem {
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("title"), Obsolete("Deprecated")]
public string? Title { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("src")]
public string Source { get; set; }
[JsonPropertyName("gif_src")]
public string GifSource { get; set; }
[JsonPropertyName("preview")]
public string Preview { get; set; }
[JsonPropertyName("width")]
public int Width { get; set; }
[JsonPropertyName("height")]
public int Height { get; set; }
}
public class TrendingGifsResult {
[JsonPropertyName("categories")]
public List<CategoryEntry> Categories { get; set; }
[JsonPropertyName("gifs")]
public List<GifItem> Gifs { get; set; }
public class CategoryEntry {
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("src")]
public string Source { get; set; }
}
}
|