|
|
@ -8,6 +8,7 @@ namespace Lidarr.Api.V1.Albums
|
|
|
|
public class AlbumReleaseResource
|
|
|
|
public class AlbumReleaseResource
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string Id { get; set; }
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
public string Title { get; set; }
|
|
|
|
public DateTime? ReleaseDate { get; set; }
|
|
|
|
public DateTime? ReleaseDate { get; set; }
|
|
|
|
public int TrackCount { get; set; }
|
|
|
|
public int TrackCount { get; set; }
|
|
|
|
public int MediaCount { get; set; }
|
|
|
|
public int MediaCount { get; set; }
|
|
|
@ -29,6 +30,7 @@ namespace Lidarr.Api.V1.Albums
|
|
|
|
return new AlbumReleaseResource
|
|
|
|
return new AlbumReleaseResource
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Id = model.Id,
|
|
|
|
Id = model.Id,
|
|
|
|
|
|
|
|
Title = model.Title,
|
|
|
|
ReleaseDate = model.ReleaseDate,
|
|
|
|
ReleaseDate = model.ReleaseDate,
|
|
|
|
TrackCount = model.TrackCount,
|
|
|
|
TrackCount = model.TrackCount,
|
|
|
|
MediaCount = model.MediaCount,
|
|
|
|
MediaCount = model.MediaCount,
|
|
|
@ -49,6 +51,7 @@ namespace Lidarr.Api.V1.Albums
|
|
|
|
return new AlbumRelease
|
|
|
|
return new AlbumRelease
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Id = resource.Id,
|
|
|
|
Id = resource.Id,
|
|
|
|
|
|
|
|
Title = resource.Title,
|
|
|
|
ReleaseDate = resource.ReleaseDate,
|
|
|
|
ReleaseDate = resource.ReleaseDate,
|
|
|
|
TrackCount = resource.TrackCount,
|
|
|
|
TrackCount = resource.TrackCount,
|
|
|
|
MediaCount = resource.MediaCount,
|
|
|
|
MediaCount = resource.MediaCount,
|
|
|
|