2017-04-28 22:05:35 +00:00
|
|
|
|
using NzbDrone.Core.Datastore;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Music
|
|
|
|
|
{
|
|
|
|
|
public interface ITrackService
|
|
|
|
|
{
|
|
|
|
|
Track GetTrack(int id);
|
|
|
|
|
List<Track> GetTracks(IEnumerable<int> ids);
|
2017-05-07 19:32:13 +00:00
|
|
|
|
Track FindTrack(string artistId, string albumId, int trackNumber);
|
|
|
|
|
Track FindTrackByTitle(string artistId, string albumId, string releaseTitle);
|
|
|
|
|
List<Track> GetTrackByArtist(string artistId);
|
|
|
|
|
List<Track> GetTracksByAlbum(string artistId, string albumId);
|
|
|
|
|
List<Track> GetTracksByAlbumTitle(string artistId, string albumTitle);
|
|
|
|
|
List<Track> TracksWithFiles(string artistId);
|
2017-04-28 22:05:35 +00:00
|
|
|
|
PagingSpec<Track> TracksWithoutFiles(PagingSpec<Track> pagingSpec);
|
|
|
|
|
List<Track> GeTracksByFileId(int trackFileId);
|
|
|
|
|
void UpdateTrack(Track track);
|
|
|
|
|
void SetTrackMonitored(int trackId, bool monitored);
|
|
|
|
|
void UpdateTracks(List<Track> tracks);
|
|
|
|
|
void InsertMany(List<Track> tracks);
|
|
|
|
|
void UpdateMany(List<Track> tracks);
|
|
|
|
|
void DeleteMany(List<Track> tracks);
|
2017-05-07 19:32:13 +00:00
|
|
|
|
void SetTrackMonitoredByAlbum(string artistId, string albumId, bool monitored);
|
2017-04-28 22:05:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class TrackService : ITrackService
|
|
|
|
|
{
|
|
|
|
|
public void DeleteMany(List<Track> tracks)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public Track FindTrack(string artistId, string albumId, int trackNumber)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public Track FindTrackByTitle(string artistId, string albumId, string releaseTitle)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Track> GeTracksByFileId(int trackFileId)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Track GetTrack(int id)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public List<Track> GetTrackByArtist(string artistId)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Track> GetTracks(IEnumerable<int> ids)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public List<Track> GetTracksByAlbum(string artistId, string albumId)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public List<Track> GetTracksByAlbumTitle(string artistId, string albumTitle)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void InsertMany(List<Track> tracks)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetTrackMonitored(int trackId, bool monitored)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public void SetTrackMonitoredByAlbum(string artistId, string albumId, bool monitored)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-07 19:32:13 +00:00
|
|
|
|
public List<Track> TracksWithFiles(string artistId)
|
2017-04-28 22:05:35 +00:00
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PagingSpec<Track> TracksWithoutFiles(PagingSpec<Track> pagingSpec)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateMany(List<Track> tracks)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateTrack(Track track)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void UpdateTracks(List<Track> tracks)
|
|
|
|
|
{
|
|
|
|
|
throw new NotImplementedException();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|