jellyfin/MediaBrowser.Model/Notifications/Notification.cs

51 lines
1.0 KiB
C#
Raw Normal View History

2013-07-06 21:23:32 +00:00
using System;
2014-04-25 20:15:50 +00:00
using System.Collections.Generic;
2013-07-06 21:23:32 +00:00
namespace MediaBrowser.Model.Notifications
{
public class Notification
{
2014-04-25 20:15:50 +00:00
public string Id { get; set; }
2013-07-06 21:23:32 +00:00
2014-04-25 20:15:50 +00:00
public string UserId { get; set; }
2013-07-06 21:23:32 +00:00
public DateTime Date { get; set; }
public bool IsRead { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Url { get; set; }
public NotificationLevel Level { get; set; }
public Notification()
{
2014-04-25 20:15:50 +00:00
Date = DateTime.UtcNow;
}
}
public class NotificationRequest
{
public string Name { get; set; }
public string Description { get; set; }
public string Url { get; set; }
public NotificationLevel Level { get; set; }
public List<string> UserIds { get; set; }
public DateTime Date { get; set; }
public NotificationRequest()
{
UserIds = new List<string>();
2013-07-06 21:23:32 +00:00
Date = DateTime.UtcNow;
}
}
}