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 = "Titre")]
public string title { get; set; }
///
/// The body.
///
[Required, Display(Name = "Corps")]
public string body { get; set; }
///
/// The icon.
///
[Display(Name = "IcĂ´ne")]
public string icon { get; set; }
///
/// The sound.
///
[Display(Name = "Son")]
public string sound { get; set; }
///
/// The tag.
///
[Display(Name = "Tag")]
public string tag { get; set; }
///
/// The color.
///
[Display(Name = "Couleur")]
public string color { get; set; }
///
/// The click action.
///
[Required, Display(Name = "Label du click")]
public string click_action { get; set; }
///
/// When null, this must be seen by everynone.
/// user/{UserId} : it's for this user, and only this one, specified by ID,
/// pub/cga : the public "cga" topic
/// administration : for admins ...
///
///
public string Target { get; set; }
public Notification()
{
icon = "exclam";
}
}
}