Method, Variable, Class Renames in Readarr.Api

This commit is contained in:
Qstick
2020-05-15 17:22:44 -04:00
committed by ta264
parent 8080d375d0
commit ee4e44b81a
91 changed files with 945 additions and 948 deletions
@@ -70,8 +70,8 @@ namespace Readarr.Api.V1.ManualImport
Path = resource.Path,
Name = resource.Name,
Size = resource.Size,
Author = resource.Artist == null ? null : _authorService.GetAuthor(resource.Artist.Id),
Book = resource.Album == null ? null : _bookService.GetBook(resource.Album.Id),
Author = resource.Author == null ? null : _authorService.GetAuthor(resource.Author.Id),
Book = resource.Book == null ? null : _bookService.GetBook(resource.Book.Id),
Quality = resource.Quality,
DownloadId = resource.DownloadId,
AdditionalFile = resource.AdditionalFile,
@@ -4,8 +4,8 @@ using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.MediaFiles.BookImport.Manual;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Qualities;
using Readarr.Api.V1.Albums;
using Readarr.Api.V1.Artist;
using Readarr.Api.V1.Author;
using Readarr.Api.V1.Books;
using Readarr.Http.REST;
namespace Readarr.Api.V1.ManualImport
@@ -15,8 +15,8 @@ namespace Readarr.Api.V1.ManualImport
public string Path { get; set; }
public string Name { get; set; }
public long Size { get; set; }
public ArtistResource Artist { get; set; }
public AlbumResource Album { get; set; }
public AuthorResource Author { get; set; }
public BookResource Book { get; set; }
public QualityModel Quality { get; set; }
public int QualityWeight { get; set; }
public string DownloadId { get; set; }
@@ -41,8 +41,8 @@ namespace Readarr.Api.V1.ManualImport
Path = model.Path,
Name = model.Name,
Size = model.Size,
Artist = model.Author.ToResource(),
Album = model.Book.ToResource(),
Author = model.Author.ToResource(),
Book = model.Book.ToResource(),
Quality = model.Quality,
//QualityWeight