mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-10 10:22:33 +01:00
parent
5cbf502aa8
commit
fc1e094b41
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ namespace Lidarr.Api.V1.Tracks
|
|||
public class TrackResource : RestResource
|
||||
{
|
||||
public int ArtistId { get; set; }
|
||||
public string ForeignTrackId { get; set; }
|
||||
public string ForeignRecordingId { get; set; }
|
||||
public int TrackFileId { get; set; }
|
||||
public int AlbumId { get; set; }
|
||||
public bool Explicit { get; set; }
|
||||
|
|
@ -44,6 +46,8 @@ public static TrackResource ToResource(this Track model)
|
|||
Id = model.Id,
|
||||
|
||||
ArtistId = model.Artist.Value.Id,
|
||||
ForeignTrackId = model.ForeignTrackId,
|
||||
ForeignRecordingId = model.ForeignRecordingId,
|
||||
TrackFileId = model.TrackFileId,
|
||||
AlbumId = model.AlbumId,
|
||||
Explicit = model.Explicit,
|
||||
|
|
|
|||
Loading…
Reference in a new issue