24 lines
717 B
C#
24 lines
717 B
C#
using System.ComponentModel;
|
|
using System.Text.Json.Serialization;
|
|
using decePubClient.Models.Types;
|
|
|
|
namespace decePubClient.Models
|
|
{
|
|
public class Message
|
|
{
|
|
public MessageUser User { get; set; } = new();
|
|
public MessageType MessageType { get; set; } = MessageType.Public;
|
|
public string RootMessageId { get; set; }
|
|
public string MessageId { get; set; }
|
|
public string Title { get; set; }
|
|
public string Content { get; set; }
|
|
public bool IsFavourite { get; set; } = false;
|
|
public bool IsBoosted { get; set; } = false;
|
|
public List<Media> Medias { get; set; } = new();
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
[Bindable(false), JsonIgnore]
|
|
public bool IsOptionsOpen { get; set; } = false;
|
|
}
|
|
}
|