|
using System.Text.Json.Serialization; |
|
using Newtonsoft.Json; |
|
|
|
namespace Crawler.Models; |
|
|
|
public class Comment |
|
{ |
|
public long Id { get; set; } |
|
|
|
public string Title { get; set; } |
|
|
|
public string Body { get; set; } |
|
|
|
[JsonPropertyName("created_at")] |
|
[JsonProperty("created_at")] |
|
public string CreatedAt { get; set; } |
|
|
|
public double Rate { get; set; } |
|
|
|
public Reaction Reactions { get; set; } |
|
|
|
[JsonProperty("user_name")] |
|
[JsonPropertyName("user_name")] |
|
public string UserName { get; set; } |
|
|
|
|
|
public List<string> Advantages { get; set; } |
|
|
|
public List<string> Disadvantages { get; set; } |
|
} |