Uwaa/Pleroma/Models/Relationship.cs

58 lines
1.4 KiB
C#
Raw Normal View History

2024-12-18 10:56:02 +01:00
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; }
2024-12-26 00:09:26 +01:00
2024-12-26 00:34:13 +01:00
[JsonConstructor()]
2024-12-26 00:09:26 +01:00
internal Relationship()
{
}
2024-12-18 10:56:02 +01:00
}