Finished adding subscriptions for TV Shows

This commit is contained in:
Jamie Rees 2018-05-16 12:07:46 +01:00
commit 16952cb44c
11 changed files with 95 additions and 29 deletions

View file

@ -13,6 +13,15 @@ namespace Ombi.Store.Entities.Requests
public int? IssueId { get; set; }
public SeriesType SeriesType { get; set; }
/// <summary>
/// This is to see if the user is subscribed in the UI
/// </summary>
[NotMapped]
public bool Subscribed { get; set; }
[NotMapped]
public bool ShowSubscribe { get; set; }
[ForeignKey(nameof(IssueId))]
public List<Issues> Issues { get; set; }

View file

@ -14,6 +14,8 @@ namespace Ombi.Store.Entities.Requests
[NotMapped]
public bool Subscribed { get; set; }
[NotMapped]
public bool ShowSubscribe { get; set; }
public int RootPathOverride { get; set; }
public int QualityOverride { get; set; }

View file

@ -17,11 +17,6 @@ namespace Ombi.Store.Entities.Requests
public DateTime ReleaseDate { get; set; }
public string Status { get; set; }
/// <summary>
/// This is to see if the user is subscribed in the UI
/// </summary>
[NotMapped]
public bool Subscribed { get; set; }
/// <summary>
/// This is so we can correctly send the right amount of seasons to Sonarr
/// </summary>