2021-09-27 12:42:46 +00:00
|
|
|
using System;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.Networking.NexusApi.DTOs;
|
|
|
|
|
|
|
|
public class User
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("member_id")] public int MemberId { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("member_group_id")] public int MemberGroupId { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("name")] public string Name { get; set; }
|
|
|
|
}
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public class Endorsement
|
|
|
|
{
|
|
|
|
[JsonPropertyName("endorse_status")] public string EndorseStatus { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2022-01-17 17:02:52 +00:00
|
|
|
[JsonPropertyName("timestamp")] public string? Timestamp { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
|
|
|
}
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public class ModInfo
|
|
|
|
{
|
|
|
|
[JsonPropertyName("name")] public string Name { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("summary")] public string Summary { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("description")] public string Description { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("picture_url")] public string PictureUrl { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("uid")] public long Uid { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("mod_id")] public int ModId { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("game_id")] public int GameId { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("allow_rating")] public bool AllowRating { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("domain_name")] public string DomainName { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("category_id")] public int CategoryId { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("version")] public string Version { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("endorsement_count")]
|
|
|
|
public int EndorsementCount { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("created_timestamp")]
|
|
|
|
public int CreatedTimestamp { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("created_time")] public DateTime CreatedTime { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("updated_timestamp")]
|
|
|
|
public int UpdatedTimestamp { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("updated_time")] public DateTime UpdatedTime { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("author")] public string Author { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("uploaded_by")] public string UploadedBy { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("uploaded_users_profile_url")]
|
|
|
|
public string UploadedUsersProfileUrl { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("contains_adult_content")]
|
|
|
|
public bool ContainsAdultContent { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("status")] public string Status { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("available")] public bool Available { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("user")] public User User { get; set; } = new();
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
[JsonPropertyName("endorsement")] public Endorsement Endorsement { get; set; } = new();
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|