More work on #298. Everything wired up

This commit is contained in:
tidusjar 2016-06-09 13:36:34 +01:00
parent 81d26a5442
commit fcf2c84f61
22 changed files with 614 additions and 33 deletions

View file

@ -26,6 +26,8 @@
#endregion
using System;
using Newtonsoft.Json;
namespace PlexRequests.Core.SettingModels
{
public class LandingPageSettings : Settings
@ -37,5 +39,8 @@ namespace PlexRequests.Core.SettingModels
public bool EnabledNoticeTime { get; set; }
public DateTime NoticeStart { get; set; }
public DateTime NoticeEnd { get; set; }
[JsonIgnore]
public bool NoticeActive => DateTime.Now > NoticeEnd || DateTime.Now < NoticeStart;
}
}