Files
adas-core/adas-core.Domain/Models/WebMessageNotification.cs
T
2026-06-26 10:29:23 +02:00

24 lines
857 B
C#

namespace adas_core.Domain.Models;
/// <summary>
/// Represents a notification that is delivered via a web-based message channel.
/// </summary>
/// <remarks>
/// This type encapsulates the data required to send or describe a web message notification to a recipient.
/// </remarks>
public class WebMessageNotification
{
//{"notification":
//{"title":"Notifications are cool",
//"body":"Know how to send notifications through Angular with this article!",
//"icon":"https://www.shareicon.net/data/256x256/2015/10/02/110808_blog_512x512.png",
//"vibrate":[100,50,100],
//"data":{"url":"https://medium.com/@arjenbrandenburgh/angulars-pwa-swpush-and-swupdate-15a7e5c154ac"}}
public string? Title { get; set; }
public string? Body { get; set; }
public int[]? Vibrate { get; set; }
public string? Icon { get; set; }
}