A lot more lidarr work, i'm done for the day wow... !wip #2313

This commit is contained in:
Jamie 2018-08-24 23:02:40 +01:00
parent 207c60b7f8
commit 3750243f11
19 changed files with 174 additions and 94 deletions

View file

@ -1,8 +1,9 @@
using System;
using Ombi.Store.Entities;
namespace Ombi.Core.Models.Search
{
public class SearchAlbumViewModel
public class SearchAlbumViewModel : SearchViewModel
{
public string Title { get; set; }
public string ForeignAlbumId { get; set; }
@ -14,6 +15,9 @@ namespace Ombi.Core.Models.Search
public string ForeignArtistId { get; set; }
public string Cover { get; set; }
public string Disk { get; set; }
public decimal PercentOfTracks { get; set; }
public override RequestType Type => RequestType.Album;
public bool PartiallyAvailable => PercentOfTracks != 100 && PercentOfTracks > 0;
public bool FullyAvailable => PercentOfTracks == 100;
}
}

View file

@ -12,8 +12,6 @@ namespace Ombi.Core.Models.Search
public string Poster { get; set; }
public string Logo { get; set; }
public bool Monitored { get; set; }
public bool Available { get; set; }
public bool Requested { get; set; }
public string ArtistType { get; set; }
public string CleanName { get; set; }
public Link[] Links { get; set; } // Couldn't be bothered to map it