Gestita pagina notifiche

This commit is contained in:
2025-09-11 16:06:19 +02:00
parent 7319378e75
commit 7bfe67a97c
30 changed files with 611 additions and 105 deletions

View File

@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace salesbook.Shared.Core.Entity;
public class WtbDeviceNotification
{
[JsonPropertyName("userDeviceId")]
public long? UserDeviceId { get; set; }
[JsonPropertyName("notificationId")]
public long? NotificationId { get; set; }
[JsonPropertyName("readDate")]
public DateTime? ReadDate { get; set; }
}

View File

@@ -0,0 +1,37 @@
using System.Text.Json.Serialization;
using salesbook.Shared.Core.Dto;
namespace salesbook.Shared.Core.Entity;
public class WtbNotification
{
[JsonPropertyName("id")]
public long Id { get; set; }
[JsonPropertyName("title")]
public string? Title { get; set; }
[JsonPropertyName("body")]
public string? Body { get; set; }
[JsonPropertyName("imageUrl")]
public string? ImageUrl { get; set; }
[JsonPropertyName("notificationData")]
public NotificationDataDTO? NotificationData { get; set; }
[JsonPropertyName("startDate")]
public DateTime? StartDate { get; set; }
[JsonPropertyName("endDate")]
public DateTime? EndDate { get; set; }
[JsonPropertyName("persistent")]
public bool? Persistent { get; set; }
[JsonPropertyName("topics")]
public List<string>? Topics { get; set; }
[JsonPropertyName("wtbDeviceNotifications")]
public List<WtbDeviceNotification>? WtbDeviceNotifications { get; set; }
}