Iceshrimp.NET/Iceshrimp.Shared/Schemas/Web/NotificationResponse.cs
2024-10-23 05:04:55 +02:00

23 lines
751 B
C#

using System.Text.Json.Serialization;
using JI = System.Text.Json.Serialization.JsonIgnoreAttribute;
namespace Iceshrimp.Shared.Schemas.Web;
public class NotificationResponse
{
public required string Id { get; set; }
public required string Type { get; set; }
public required bool Read { get; set; }
public required string CreatedAt { get; set; }
public NoteResponse? Note { get; set; }
public UserResponse? User { get; set; }
[JI(Condition = JsonIgnoreCondition.WhenWritingNull)]
public BiteResponse? Bite { get; set; }
public class BiteResponse
{
public required string Id { get; set; }
public required bool BiteBack { get; set; }
}
}