using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Yavsc.Models.Messaging { /// /// A Notification, that mocks the one sent to Google, /// since it fits my needs /// public class Notification { [Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public long Id { get; set; } /// /// The title. /// [Required, Display(Name = "Title")] public string title { get; set; } /// /// The body. /// [Required, Display(Name = "Title")] public string body { get; set; } /// /// The icon. /// [Display(Name = "Icon")] public string icon { get; set; } /// /// The sound. /// [Display(Name = "Sound")] public string sound { get; set; } /// /// The tag. /// [Display(Name = "Tag")] public string tag { get; set; } /// /// The color. /// [Display(Name = "Color")] public string color { get; set; } /// /// The click action. /// [Required, Display(Name = "Click action")] public string click_action { get; set; } } }