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
+6 -6
View File
@@ -1,6 +1,6 @@
using NzbDrone.Core.Parser;
using Readarr.Api.V1.Albums;
using Readarr.Api.V1.Artist;
using Readarr.Api.V1.Author;
using Readarr.Api.V1.Books;
using Readarr.Http;
namespace Readarr.Api.V1.Parse
@@ -33,9 +33,9 @@ namespace Readarr.Api.V1.Parse
return new ParseResource
{
Title = title,
ParsedAlbumInfo = remoteAlbum.ParsedBookInfo,
Artist = remoteAlbum.Author.ToResource(),
Albums = remoteAlbum.Books.ToResource()
ParsedBookInfo = remoteAlbum.ParsedBookInfo,
Author = remoteAlbum.Author.ToResource(),
Books = remoteAlbum.Books.ToResource()
};
}
else
@@ -43,7 +43,7 @@ namespace Readarr.Api.V1.Parse
return new ParseResource
{
Title = title,
ParsedAlbumInfo = parsedAlbumInfo
ParsedBookInfo = parsedAlbumInfo
};
}
}
+5 -5
View File
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using NzbDrone.Core.Parser.Model;
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.Parse
@@ -9,8 +9,8 @@ namespace Readarr.Api.V1.Parse
public class ParseResource : RestResource
{
public string Title { get; set; }
public ParsedBookInfo ParsedAlbumInfo { get; set; }
public ArtistResource Artist { get; set; }
public List<AlbumResource> Albums { get; set; }
public ParsedBookInfo ParsedBookInfo { get; set; }
public AuthorResource Author { get; set; }
public List<BookResource> Books { get; set; }
}
}