24 lines
751 B
C#
24 lines
751 B
C#
namespace decePubClient.Models.Mastodon;
|
|||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// type: mention, status, reblog, follow, follow_request, favourite, poll, update, quote, quoted_update or
|
||
|
|
/// pleroma:emoji_reaction. Status is null for follows.
|
||
|
|
/// </summary>
|
||
|
|
public class Notification
|
||
|
|
{
|
||
|
|
public string Id { get; set; }
|
||
|
|
public string Type { get; set; }
|
||
|
|
public DateTime CreatedAt { get; set; }
|
||
|
|
public Account Account { get; set; }
|
||
|
|
public Status Status { get; set; }
|
||
|
|
public string Emoji { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>A direct conversation: its participants and its last post.</summary>
|
||
|
|
public class Conversation
|
||
|
|
{
|
||
|
|
public string Id { get; set; }
|
||
|
|
public bool Unread { get; set; }
|
||
|
|
public List<Account> Accounts { get; set; } = [];
|
||
|
|
public Status LastStatus { get; set; }
|
||
|
|
}
|