Selector/Selector.Model/Scrobble/IScrobbleMappingRepository.cs
andy fbbd42f97a working scrobble mapping command
added scrobble mapping repo
2022-02-24 00:27:34 +00:00

30 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Selector.Model
{
public interface IScrobbleMappingRepository
{
void Add(TrackLastfmSpotifyMapping item);
void Add(AlbumLastfmSpotifyMapping item);
void Add(ArtistLastfmSpotifyMapping item);
void AddRange(IEnumerable<TrackLastfmSpotifyMapping> item);
void AddRange(IEnumerable<AlbumLastfmSpotifyMapping> item);
void AddRange(IEnumerable<ArtistLastfmSpotifyMapping> item);
IEnumerable<TrackLastfmSpotifyMapping> GetTracks(string include = null, string trackName = null, string albumName = null, string artistName = null);
IEnumerable<AlbumLastfmSpotifyMapping> GetAlbums(string include = null, string albumName = null, string artistName = null);
IEnumerable<ArtistLastfmSpotifyMapping> GetArtists(string include = null, string artistName = null);
public void Remove(TrackLastfmSpotifyMapping mapping);
public void Remove(AlbumLastfmSpotifyMapping mapping);
public void Remove(ArtistLastfmSpotifyMapping mapping);
public void RemoveRange(IEnumerable<TrackLastfmSpotifyMapping> mappings);
public void RemoveRange(IEnumerable<AlbumLastfmSpotifyMapping> mappings);
public void RemoveRange(IEnumerable<ArtistLastfmSpotifyMapping> mappings);
Task<int> Save();
}
}