using Roadie.Library.Models.ThirdPartyApi.Subsonic; using System.Threading.Tasks; namespace Roadie.Api.Services { public interface ISubsonicService { Task> AddChatMessage(Request request, Roadie.Library.Models.Users.User roadieUser); Task> Authenticate(Request request); Task> CreateBookmark(Request request, Roadie.Library.Models.Users.User roadieUser, int position, string comment); Task> CreatePlaylist(Request request, Roadie.Library.Models.Users.User roadieUser, string name, string[] songIds, string playlistId = null); Task> DeleteBookmark(Request request, Roadie.Library.Models.Users.User roadieUser); Task> DeletePlaylist(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetAlbum(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetAlbumInfo(Request request, Roadie.Library.Models.Users.User roadieUser, AlbumInfoVersion version); Task> GetAlbumList(Request request, Roadie.Library.Models.Users.User roadieUser, AlbumListVersions version); Task> GetArtist(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetArtistInfo(Request request, int? count, bool includeNotPresent, ArtistInfoVersion version); Task> GetArtists(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetBookmarks(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetChatMessages(Request request, Roadie.Library.Models.Users.User roadieUser, long? since); Task> GetCoverArt(Request request, int? size); Task> GetGenres(Request request); Task> GetIndexes(Request request, Roadie.Library.Models.Users.User roadieUser, long? ifModifiedSince = null); SubsonicOperationResult GetLicense(Request request); SubsonicOperationResult GetLyrics(Request request, string artistId, string title); Task> GetMusicDirectory(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetMusicFolders(Request request); Task> GetNowPlaying(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetPlaylist(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetPlaylists(Request request, Roadie.Library.Models.Users.User roadieUser, string filterToUserName); Task> GetPlayQueue(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetPodcasts(Request request); Task> GetRandomSongs(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetSimliarSongs(Request request, Roadie.Library.Models.Users.User roadieUser, SimilarSongsVersion version, int? count = 50); Task> GetSong(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetSongsByGenre(Request request, Roadie.Library.Models.Users.User roadieUser); Task> GetStarred(Request request, Roadie.Library.Models.Users.User roadieUser, StarredVersion version); Task> GetTopSongs(Request request, Roadie.Library.Models.Users.User roadieUser, int? count = 50); Task> GetUser(Request request, string username); SubsonicOperationResult GetVideos(Request request); SubsonicOperationResult Ping(Request request); Task> SavePlayQueue(Request request, Roadie.Library.Models.Users.User roadieUser, string current, long? position); Task> Search(Request request, Roadie.Library.Models.Users.User roadieUser, SearchVersion version); Task> SetRating(Request request, Roadie.Library.Models.Users.User roadieUser, short rating); Task> ToggleStar(Request request, Roadie.Library.Models.Users.User roadieUser, bool star, string[] albumIds = null, string[] artistIds = null); Task> UpdatePlaylist(Request request, Roadie.Library.Models.Users.User roadieUser, string playlistId, string name = null, string comment = null, bool? isPublic = null, string[] songIdsToAdd = null, int[] songIndexesToRemove = null); } }