added suggested live tv page

This commit is contained in:
Luke Pulverenti
2014-01-12 10:58:47 -05:00
parent c8a106f485
commit cc3e8dbbb9
11 changed files with 263 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.LiveTv;
using System;
namespace MediaBrowser.Controller.LiveTv
{
@@ -28,6 +29,26 @@ namespace MediaBrowser.Controller.LiveTv
}
}
public bool IsAiring
{
get
{
var now = DateTime.UtcNow;
return now >= ProgramInfo.StartDate && now < ProgramInfo.EndDate;
}
}
public bool HasAired
{
get
{
var now = DateTime.UtcNow;
return now >= ProgramInfo.EndDate;
}
}
public override string GetClientTypeName()
{
return "Program";