1
+ using System ;
2
+ using System . Text . Json . Serialization ;
3
+
4
+ namespace MultiRPC . Discord . Status
5
+ {
6
+ /*public class Page
7
+ {
8
+ [JsonPropertyName("id")]
9
+ public string Id { get; set; }
10
+
11
+ [JsonPropertyName("name")]
12
+ public string Name { get; set; }
13
+
14
+ [JsonPropertyName("url")]
15
+ public string Url { get; set; }
16
+
17
+ [JsonPropertyName("time_zone")]
18
+ public string TimeZone { get; set; }
19
+
20
+ [JsonPropertyName("updated_at")]
21
+ public DateTime UpdatedAt { get; set; }
22
+ }*/
23
+
24
+ public class Component
25
+ {
26
+ [ JsonPropertyName ( "id" ) ]
27
+ public string Id { get ; set ; }
28
+
29
+ [ JsonPropertyName ( "name" ) ]
30
+ public string Name { get ; set ; }
31
+
32
+ [ JsonPropertyName ( "status" ) ]
33
+ public string Status { get ; set ; }
34
+
35
+ [ JsonPropertyName ( "created_at" ) ]
36
+ public DateTime CreatedAt { get ; set ; }
37
+
38
+ [ JsonPropertyName ( "updated_at" ) ]
39
+ public DateTime UpdatedAt { get ; set ; }
40
+
41
+ [ JsonPropertyName ( "position" ) ]
42
+ public int Position { get ; set ; }
43
+
44
+ [ JsonPropertyName ( "description" ) ]
45
+ public string Description { get ; set ; }
46
+
47
+ [ JsonPropertyName ( "showcase" ) ]
48
+ public bool Showcase { get ; set ; }
49
+
50
+ [ JsonPropertyName ( "start_date" ) ]
51
+ public string StartDate { get ; set ; }
52
+
53
+ [ JsonPropertyName ( "group_id" ) ]
54
+ public string GroupId { get ; set ; }
55
+
56
+ [ JsonPropertyName ( "page_id" ) ]
57
+ public string PageId { get ; set ; }
58
+
59
+ [ JsonPropertyName ( "group" ) ]
60
+ public bool Group { get ; set ; }
61
+
62
+ [ JsonPropertyName ( "only_show_if_degraded" ) ]
63
+ public bool OnlyShowIfDegraded { get ; set ; }
64
+
65
+ [ JsonPropertyName ( "components" ) ]
66
+ public string [ ] Components { get ; set ; }
67
+ }
68
+
69
+ public class Data
70
+ {
71
+ //[JsonPropertyName("page")]
72
+ //public Page Page { get; set; }
73
+
74
+ [ JsonPropertyName ( "components" ) ]
75
+ public Component [ ] Components { get ; set ; }
76
+ }
77
+ }
0 commit comments