wabbajack/Wabbajack.Lib/NexusApi/Dtos.cs

72 lines
2.7 KiB
C#
Raw Normal View History

using System;
namespace Wabbajack.Lib.NexusApi
{
public class UserStatus
{
2020-04-10 01:29:53 +00:00
public string email = string.Empty;
public bool is_premium;
public bool is_supporter;
2020-04-10 01:29:53 +00:00
public string key = string.Empty;
public string name = string.Empty;
public string profile_url = string.Empty;
public string user_id = string.Empty;
}
public class NexusFileInfo
{
2020-04-03 03:57:59 +00:00
public long category_id { get; set; }
2020-04-10 01:29:53 +00:00
public string category_name { get; set; } = string.Empty;
public string changelog_html { get; set; } = string.Empty;
public string description { get; set; } = string.Empty;
public string external_virus_scan_url { get; set; } = string.Empty;
2020-04-03 03:57:59 +00:00
public long file_id { get; set; }
2020-04-10 01:29:53 +00:00
public string file_name { get; set; } = string.Empty;
2020-01-08 04:41:50 +00:00
public bool is_primary { get; set; }
2020-04-10 01:29:53 +00:00
public string mod_version { get; set; } = string.Empty;
public string name { get; set; } = string.Empty;
2020-04-03 03:57:59 +00:00
public long size { get; set; }
public long size_kb { get; set; }
2020-01-08 04:41:50 +00:00
public DateTime uploaded_time { get; set; }
2020-04-03 03:57:59 +00:00
public long uploaded_timestamp { get; set; }
2020-04-10 01:29:53 +00:00
public string version { get; set; } = string.Empty;
}
public class ModInfo
{
2020-04-10 01:29:53 +00:00
public string name { get; set; } = string.Empty;
public string summary { get; set; } = string.Empty;
2020-04-15 12:05:05 +00:00
public string description { get; set; } = string.Empty;
public Uri picture_url { get; set; } = new Uri(string.Empty);
public string mod_id { get; set; } = string.Empty;
2020-04-12 04:18:21 +00:00
public long game_id { get; set; }
public bool allow_rating { get; set; }
2020-04-15 12:05:05 +00:00
public string domain_name { get; set; } = string.Empty;
2020-04-12 04:18:21 +00:00
public long category_id { get; set; }
2020-04-15 12:05:05 +00:00
public string version { get; set; } = string.Empty;
2020-04-12 04:18:21 +00:00
public long endorsement_count { get; set; }
public long created_timestamp { get; set; }
2020-04-15 12:05:05 +00:00
public DateTime created_time { get; set; }
2020-04-12 04:18:21 +00:00
public long updated_timestamp { get; set; }
public DateTime updated_time { get; set; }
2020-04-10 01:29:53 +00:00
public string author { get; set; } = string.Empty;
public string uploaded_by { get; set; } = string.Empty;
2020-04-15 12:05:05 +00:00
public Uri uploaded_users_profile_url { get; set; } = new Uri(string.Empty);
2020-01-08 04:41:50 +00:00
public bool contains_adult_content { get; set; }
2020-04-15 12:05:05 +00:00
public string status { get; set; } = string.Empty;
2020-04-12 04:18:21 +00:00
public bool available { get; set; } = true;
}
2019-11-04 15:11:58 +00:00
public class MD5Response
2019-11-04 14:32:28 +00:00
{
2020-04-10 01:29:53 +00:00
public ModInfo? mod;
public NexusFileInfo? file_details;
2019-11-04 14:32:28 +00:00
}
public class EndorsementResponse
{
2020-04-10 01:29:53 +00:00
public string message = string.Empty;
public string status = string.Empty;
}
}