Uwaa/Pleroma/Models/Relationship.cs
2024-12-25 23:34:13 +00:00

57 lines
1.4 KiB
C#

namespace Uwaa.Pleroma;
/// <summary>
/// A relationship with another account.
/// </summary>
public class Relationship
{
/// <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>
[JsonPropertyName("id")]
public string ID { get; set; } = null!;
[JsonPropertyName("blocked_by")]
public bool BlockedBy { get; set; }
[JsonPropertyName("blocking")]
public bool Blocking { get; set; }
[JsonPropertyName("domain_blocking")]
public bool DomainBlocking { get; set; }
[JsonPropertyName("endorsed")]
public bool Endorsed { get; set; }
[JsonPropertyName("followed_by")]
public bool FollowedBy { get; set; }
[JsonPropertyName("following")]
public bool Following { get; set; }
[JsonPropertyName("muting")]
public bool Muting { get; set; }
[JsonPropertyName("muting_notifications")]
public bool MutingNotifications { get; set; }
[JsonPropertyName("note")]
public string Note { get; set; } = null!;
[JsonPropertyName("notifying")]
public bool Notifying { get; set; }
[JsonPropertyName("requested")]
public bool Requested { get; set; }
[JsonPropertyName("showing_reblogs")]
public bool ShowingReblogs { get; set; }
[JsonPropertyName("subscribing")]
public bool Subscribing { get; set; }
[JsonConstructor()]
internal Relationship()
{
}
}