mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
More work on #298. Everything wired up
This commit is contained in:
parent
81d26a5442
commit
fcf2c84f61
22 changed files with 614 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue