2022-02-24 00:27:34 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Selector.Model
|
|
|
|
|
{
|
2022-10-07 23:33:54 +01:00
|
|
|
|
public interface IScrobbleRepository: IListenRepository
|
2022-02-24 00:27:34 +00:00
|
|
|
|
{
|
|
|
|
|
void Add(UserScrobble item);
|
|
|
|
|
void AddRange(IEnumerable<UserScrobble> item);
|
2022-10-07 23:33:54 +01:00
|
|
|
|
//IEnumerable<UserScrobble> GetAll(string include = null, string userId = null, string username = null, string trackName = null, string albumName = null, string artistName = null, DateTime? from = null, DateTime? to = null);
|
2022-02-24 00:27:34 +00:00
|
|
|
|
UserScrobble Find(int key, string include = null);
|
|
|
|
|
void Remove(int key);
|
|
|
|
|
public void Remove(UserScrobble scrobble);
|
|
|
|
|
public void RemoveRange(IEnumerable<UserScrobble> scrobbles);
|
|
|
|
|
void Update(UserScrobble item);
|
|
|
|
|
Task<int> Save();
|
2022-10-07 23:33:54 +01:00
|
|
|
|
//int Count(string userId = null, string username = null, string trackName = null, string albumName = null, string artistName = null, DateTime? from = null, DateTime? to = null);
|
2022-02-24 00:27:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|