Acidmanic commited on
Commit
7d0afa7
1 Parent(s): c60b94c

Add C# models

Browse files
c-sharp-models/Comment.cs ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ using System.Text.Json.Serialization;
2
+ using Newtonsoft.Json;
3
+
4
+ namespace Crawler.Models;
5
+
6
+ public class Comment
7
+ {
8
+ public long Id { get; set; }
9
+
10
+ public string Title { get; set; }
11
+
12
+ public string Body { get; set; }
13
+
14
+ [JsonPropertyName("created_at")]
15
+ [JsonProperty("created_at")]
16
+ public string CreatedAt { get; set; }
17
+
18
+ public double Rate { get; set; }
19
+
20
+ public Reaction Reactions { get; set; }
21
+
22
+ [JsonProperty("user_name")]
23
+ [JsonPropertyName("user_name")]
24
+ public string UserName { get; set; }
25
+
26
+
27
+ public List<string> Advantages { get; set; }
28
+
29
+ public List<string> Disadvantages { get; set; }
30
+ }
c-sharp-models/Reaction.cs ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ namespace Crawler.Models;
2
+
3
+ public class Reaction
4
+ {
5
+ public int Likes { get; set; }
6
+
7
+ public int Dislikes { get; set; }
8
+
9
+
10
+ }