11using System ;
22using System . Text . Json . Serialization ;
33
4+ // ReSharper disable UnusedAutoPropertyAccessor.Global
5+ #pragma warning disable CS8618
46namespace MultiRPC . Discord . Status
57{
68 /*public class Page
79 {
810 [JsonPropertyName("id")]
9- public string Id { get; set ; }
11+ public string Id { get; init ; }
1012
1113 [JsonPropertyName("name")]
12- public string Name { get; set ; }
14+ public string Name { get; init ; }
1315
1416 [JsonPropertyName("url")]
15- public string Url { get; set ; }
17+ public string Url { get; init ; }
1618
1719 [JsonPropertyName("time_zone")]
18- public string TimeZone { get; set ; }
20+ public string TimeZone { get; init ; }
1921
2022 [JsonPropertyName("updated_at")]
21- public DateTime UpdatedAt { get; set ; }
23+ public DateTime UpdatedAt { get; init ; }
2224 }*/
2325
2426 public class Component
2527 {
2628 [ JsonPropertyName ( "id" ) ]
27- public string Id { get ; set ; }
29+ public string Id { get ; init ; }
2830
2931 [ JsonPropertyName ( "name" ) ]
30- public string Name { get ; set ; }
32+ public string Name { get ; init ; }
3133
3234 [ JsonPropertyName ( "status" ) ]
33- public string Status { get ; set ; }
35+ public string Status { get ; init ; }
3436
3537 [ JsonPropertyName ( "created_at" ) ]
36- public DateTime CreatedAt { get ; set ; }
38+ public DateTime CreatedAt { get ; init ; }
3739
3840 [ JsonPropertyName ( "updated_at" ) ]
39- public DateTime UpdatedAt { get ; set ; }
41+ public DateTime UpdatedAt { get ; init ; }
4042
4143 [ JsonPropertyName ( "position" ) ]
42- public int Position { get ; set ; }
44+ public int Position { get ; init ; }
4345
4446 [ JsonPropertyName ( "description" ) ]
45- public string Description { get ; set ; }
47+ public string Description { get ; init ; }
4648
4749 [ JsonPropertyName ( "showcase" ) ]
48- public bool Showcase { get ; set ; }
50+ public bool Showcase { get ; init ; }
4951
5052 [ JsonPropertyName ( "start_date" ) ]
51- public string StartDate { get ; set ; }
53+ public string StartDate { get ; init ; }
5254
5355 [ JsonPropertyName ( "group_id" ) ]
54- public string GroupId { get ; set ; }
56+ public string GroupId { get ; init ; }
5557
5658 [ JsonPropertyName ( "page_id" ) ]
57- public string PageId { get ; set ; }
59+ public string PageId { get ; init ; }
5860
5961 [ JsonPropertyName ( "group" ) ]
60- public bool Group { get ; set ; }
62+ public bool Group { get ; init ; }
6163
6264 [ JsonPropertyName ( "only_show_if_degraded" ) ]
63- public bool OnlyShowIfDegraded { get ; set ; }
65+ public bool OnlyShowIfDegraded { get ; init ; }
6466
6567 [ JsonPropertyName ( "components" ) ]
66- public string [ ] Components { get ; set ; }
68+ public string [ ] Components { get ; init ; }
6769 }
6870
6971 public class Data
7072 {
7173 //[JsonPropertyName("page")]
72- //public Page Page { get; set ; }
74+ //public Page Page { get; init ; }
7375
7476 [ JsonPropertyName ( "components" ) ]
75- public Component [ ] Components { get ; set ; }
77+ public Component [ ] Components { get ; init ; }
7678 }
7779}
0 commit comments