jellyfin/MediaBrowser.Model/Notifications/Notification.cs

51 lines
1 KiB
C#
Raw Normal View History

2013-07-06 23:23:32 +02:00
using System;
2014-04-25 22:15:50 +02:00
using System.Collections.Generic;
2013-07-06 23:23:32 +02:00
namespace MediaBrowser.Model.Notifications
{
public class Notification
{
2014-04-25 22:15:50 +02:00
public string Id { get; set; }
2013-07-06 23:23:32 +02:00
2014-04-25 22:15:50 +02:00
public string UserId { get; set; }
2013-07-06 23:23:32 +02: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 22:15:50 +02: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 23:23:32 +02:00
Date = DateTime.UtcNow;
}
}
}