aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-01 13:07:55 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-06-01 13:07:55 -0400
commit418bb8787869b13eca2da0095e94be6b22f2f10d (patch)
treeaacac83852e3c7f0f797cf9006810d1590a42600 /MediaBrowser.Controller
parent17fe8caee47a5de0184649feaec434ac8c076019 (diff)
update recording database
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Entities/IHasId.cs9
-rw-r--r--MediaBrowser.Controller/Entities/IHasImages.cs9
-rw-r--r--MediaBrowser.Controller/Entities/IHasMediaSources.cs9
-rw-r--r--MediaBrowser.Controller/Entities/IHasProgramAttributes.cs12
-rw-r--r--MediaBrowser.Controller/Entities/IHasUserData.cs9
-rw-r--r--MediaBrowser.Controller/LiveTv/ILiveTvItem.cs5
-rw-r--r--MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs20
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs23
-rw-r--r--MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs23
-rw-r--r--MediaBrowser.Controller/MediaBrowser.Controller.csproj1
10 files changed, 89 insertions, 31 deletions
diff --git a/MediaBrowser.Controller/Entities/IHasId.cs b/MediaBrowser.Controller/Entities/IHasId.cs
new file mode 100644
index 000000000..9698adf7a
--- /dev/null
+++ b/MediaBrowser.Controller/Entities/IHasId.cs
@@ -0,0 +1,9 @@
+using System;
+
+namespace MediaBrowser.Controller.Entities
+{
+ public interface IHasId
+ {
+ Guid Id { get; }
+ }
+}
diff --git a/MediaBrowser.Controller/Entities/IHasImages.cs b/MediaBrowser.Controller/Entities/IHasImages.cs
index 1871d7b68..ffb351c94 100644
--- a/MediaBrowser.Controller/Entities/IHasImages.cs
+++ b/MediaBrowser.Controller/Entities/IHasImages.cs
@@ -1,13 +1,12 @@
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
-using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Entities
{
- public interface IHasImages : IHasProviderIds
+ public interface IHasImages : IHasProviderIds, IHasId
{
/// <summary>
/// Gets the name.
@@ -28,12 +27,6 @@ namespace MediaBrowser.Controller.Entities
string FileNameWithoutExtension { get; }
/// <summary>
- /// Gets the identifier.
- /// </summary>
- /// <value>The identifier.</value>
- Guid Id { get; }
-
- /// <summary>
/// Gets the type of the location.
/// </summary>
/// <value>The type of the location.</value>
diff --git a/MediaBrowser.Controller/Entities/IHasMediaSources.cs b/MediaBrowser.Controller/Entities/IHasMediaSources.cs
index 17a147806..85ce3c781 100644
--- a/MediaBrowser.Controller/Entities/IHasMediaSources.cs
+++ b/MediaBrowser.Controller/Entities/IHasMediaSources.cs
@@ -1,18 +1,11 @@
using MediaBrowser.Model.Dto;
-using System;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Entities
{
- public interface IHasMediaSources
+ public interface IHasMediaSources : IHasId
{
/// <summary>
- /// Gets the identifier.
- /// </summary>
- /// <value>The identifier.</value>
- Guid Id { get; }
-
- /// <summary>
/// Gets the media sources.
/// </summary>
/// <param name="enablePathSubstitution">if set to <c>true</c> [enable path substitution].</param>
diff --git a/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs b/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs
index 1878d8d2c..391c8f7a7 100644
--- a/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs
+++ b/MediaBrowser.Controller/Entities/IHasProgramAttributes.cs
@@ -1,9 +1,19 @@
-
+using MediaBrowser.Model.LiveTv;
+using System;
+
namespace MediaBrowser.Controller.Entities
{
public interface IHasProgramAttributes
{
bool IsMovie { get; set; }
bool IsSports { get; set; }
+ bool IsNews { get; set; }
+ bool IsKids { get; set; }
+ bool IsRepeat { get; set; }
+ bool? IsHD { get; set; }
+ bool IsLive { get; set; }
+ bool IsPremiere { get; set; }
+ ProgramAudio? Audio { get; set; }
+ DateTime? OriginalAirDate { get; set; }
}
}
diff --git a/MediaBrowser.Controller/Entities/IHasUserData.cs b/MediaBrowser.Controller/Entities/IHasUserData.cs
index d576d90c4..34a820853 100644
--- a/MediaBrowser.Controller/Entities/IHasUserData.cs
+++ b/MediaBrowser.Controller/Entities/IHasUserData.cs
@@ -1,20 +1,13 @@
using MediaBrowser.Model.Dto;
-using System;
namespace MediaBrowser.Controller.Entities
{
/// <summary>
/// Interface IHasUserData
/// </summary>
- public interface IHasUserData
+ public interface IHasUserData : IHasId
{
/// <summary>
- /// Gets or sets the identifier.
- /// </summary>
- /// <value>The identifier.</value>
- Guid Id { get; set; }
-
- /// <summary>
/// Gets the user data key.
/// </summary>
/// <returns>System.String.</returns>
diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvItem.cs b/MediaBrowser.Controller/LiveTv/ILiveTvItem.cs
index 6c277a2e1..313675fb7 100644
--- a/MediaBrowser.Controller/LiveTv/ILiveTvItem.cs
+++ b/MediaBrowser.Controller/LiveTv/ILiveTvItem.cs
@@ -1,10 +1,9 @@
-using System;
+using MediaBrowser.Controller.Entities;
namespace MediaBrowser.Controller.LiveTv
{
- public interface ILiveTvItem
+ public interface ILiveTvItem : IHasId
{
- Guid Id { get; }
string ServiceName { get; set; }
}
}
diff --git a/MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs b/MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs
index 93e1e576a..1dd267c93 100644
--- a/MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs
+++ b/MediaBrowser.Controller/LiveTv/ILiveTvRecording.cs
@@ -2,19 +2,21 @@
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Library;
+using MediaBrowser.Model.LiveTv;
+using System;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Controller.LiveTv
{
- public interface ILiveTvRecording : IHasImages, IHasMediaSources, IHasUserData, ILiveTvItem
+ public interface ILiveTvRecording : IHasImages, IHasMediaSources, IHasUserData, ILiveTvItem, IHasStartDate, IHasProgramAttributes
{
+ string ChannelId { get; }
+ string ProgramId { get; set; }
string MediaType { get; }
string Container { get; }
- RecordingInfo RecordingInfo { get; set; }
-
long? RunTimeTicks { get; set; }
string GetClientTypeName();
@@ -28,5 +30,17 @@ namespace MediaBrowser.Controller.LiveTv
bool CanDelete();
bool CanDelete(User user);
+
+ string ProviderImagePath { get; set; }
+
+ string ProviderImageUrl { get; set; }
+
+ string ExternalId { get; set; }
+ string EpisodeTitle { get; set; }
+ bool IsSeries { get; set; }
+ string SeriesTimerId { get; set; }
+ RecordingStatus Status { get; set; }
+ DateTime? EndDate { get; set; }
+ ChannelType ChannelType { get; set; }
}
}
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs b/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
index 0dc296d5a..20bde7483 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvAudioRecording.cs
@@ -3,7 +3,9 @@ using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
+using MediaBrowser.Model.LiveTv;
using MediaBrowser.Model.Users;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
@@ -12,6 +14,27 @@ namespace MediaBrowser.Controller.LiveTv
{
public class LiveTvAudioRecording : Audio, ILiveTvRecording
{
+ public string ExternalId { get; set; }
+ public string ProviderImagePath { get; set; }
+ public string ProviderImageUrl { get; set; }
+ public string EpisodeTitle { get; set; }
+ public bool IsSeries { get; set; }
+ public string SeriesTimerId { get; set; }
+ public DateTime StartDate { get; set; }
+ public RecordingStatus Status { get; set; }
+ public bool IsSports { get; set; }
+ public bool IsNews { get; set; }
+ public bool IsKids { get; set; }
+ public bool IsRepeat { get; set; }
+ public bool IsMovie { get; set; }
+ public bool? IsHD { get; set; }
+ public bool IsLive { get; set; }
+ public bool IsPremiere { get; set; }
+ public ChannelType ChannelType { get; set; }
+ public string ProgramId { get; set; }
+ public ProgramAudio? Audio { get; set; }
+ public DateTime? OriginalAirDate { get; set; }
+
/// <summary>
/// Gets the user data key.
/// </summary>
diff --git a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
index 3669f9440..a9028989f 100644
--- a/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
+++ b/MediaBrowser.Controller/LiveTv/LiveTvVideoRecording.cs
@@ -2,7 +2,9 @@
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Entities;
+using MediaBrowser.Model.LiveTv;
using MediaBrowser.Model.Users;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
@@ -11,6 +13,27 @@ namespace MediaBrowser.Controller.LiveTv
{
public class LiveTvVideoRecording : Video, ILiveTvRecording
{
+ public string ExternalId { get; set; }
+ public string ProviderImagePath { get; set; }
+ public string ProviderImageUrl { get; set; }
+ public string EpisodeTitle { get; set; }
+ public bool IsSeries { get; set; }
+ public string SeriesTimerId { get; set; }
+ public DateTime StartDate { get; set; }
+ public RecordingStatus Status { get; set; }
+ public bool IsSports { get; set; }
+ public bool IsNews { get; set; }
+ public bool IsKids { get; set; }
+ public bool IsRepeat { get; set; }
+ public bool IsMovie { get; set; }
+ public bool? IsHD { get; set; }
+ public bool IsLive { get; set; }
+ public bool IsPremiere { get; set; }
+ public ChannelType ChannelType { get; set; }
+ public string ProgramId { get; set; }
+ public ProgramAudio? Audio { get; set; }
+ public DateTime? OriginalAirDate { get; set; }
+
/// <summary>
/// Gets the user data key.
/// </summary>
diff --git a/MediaBrowser.Controller/MediaBrowser.Controller.csproj b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
index e1a18164e..216f1cf81 100644
--- a/MediaBrowser.Controller/MediaBrowser.Controller.csproj
+++ b/MediaBrowser.Controller/MediaBrowser.Controller.csproj
@@ -142,6 +142,7 @@
<Compile Include="Entities\IHasBudget.cs" />
<Compile Include="Entities\IHasCriticRating.cs" />
<Compile Include="Entities\IHasDisplayOrder.cs" />
+ <Compile Include="Entities\IHasId.cs" />
<Compile Include="Entities\IHasImages.cs" />
<Compile Include="Entities\IHasKeywords.cs" />
<Compile Include="Entities\IHasMediaSources.cs" />