2024-12-13 13:25:20 +01:00
|
|
|
|
namespace Uwaa.Pleroma;
|
2024-11-22 09:55:08 +01:00
|
|
|
|
|
|
|
|
|
public class Account
|
|
|
|
|
{
|
2024-12-11 03:49:46 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Pleroma uses 128-bit ids as opposed to Mastodon's 64 bits. However just like Mastodon's ids they are lexically sortable strings
|
|
|
|
|
/// </summary>
|
2024-11-22 09:55:08 +01:00
|
|
|
|
[JsonPropertyName("id")]
|
|
|
|
|
public string ID { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("bot")]
|
|
|
|
|
public bool Bot { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("display_name")]
|
|
|
|
|
public string DisplayName { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("username")]
|
|
|
|
|
public string Username { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("statuses_count")]
|
|
|
|
|
public uint StatusesCount { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("url")]
|
|
|
|
|
public string URL { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("followers_count")]
|
|
|
|
|
public uint Followers { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("following_count")]
|
|
|
|
|
public uint Following { get; set; }
|
|
|
|
|
|
|
|
|
|
public override string ToString() => $"@{Username}";
|
|
|
|
|
}
|