Made some good process on getting the backend up and running for requesting albums etc

This commit is contained in:
Jamie Rees 2019-08-13 13:45:32 +01:00
commit 4b7d7410ae
15 changed files with 114 additions and 42 deletions

View file

@ -28,7 +28,6 @@ namespace Ombi.Core.Models.Search
[NotMapped]
public string TheMovieDbId { get; set; }
[NotMapped]
public bool Subscribed { get; set; }
[NotMapped]

View file

@ -53,13 +53,4 @@ namespace Ombi.Core.Models.Search.V2.Music
public string Google { get; set; }
public string Apple { get; set; }
}
public class ReleaseGroup
{
public string Id { get; set; }
public string Title { get; set; }
public string ReleaseDate { get; set; }
public string Type { get; set; }
}
}

View file

@ -0,0 +1,17 @@
using Ombi.Store.Entities;
namespace Ombi.Core.Models.Search.V2.Music
{
public class ReleaseGroup : SearchViewModel
{
public new string Id { get; set; }
public override RequestType Type => RequestType.Album;
public string Title { get; set; }
public string ReleaseDate { get; set; }
public string ReleaseType { get; set; }
public decimal PercentOfTracks { get; set; }
public bool Monitored { get; set; }
public bool PartiallyAvailable => PercentOfTracks != 100 && PercentOfTracks > 0;
public bool FullyAvailable => PercentOfTracks == 100;
}
}