mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Implementation of playlist page visualization
This commit is contained in:
parent
95bcbb0f61
commit
051ba23b58
5 changed files with 35 additions and 17 deletions
|
|
@ -6,12 +6,13 @@ import java.util.Map;
|
|||
|
||||
import retrofit2.Call;
|
||||
import retrofit2.http.GET;
|
||||
import retrofit2.http.Query;
|
||||
import retrofit2.http.QueryMap;
|
||||
|
||||
public interface PlaylistService {
|
||||
@GET("getPlaylists")
|
||||
Call<SubsonicResponse> getPlaylists(@QueryMap Map<String, String> params);
|
||||
|
||||
@GET("getPlaylist?id={id}")
|
||||
Call<SubsonicResponse> getPlaylist(@QueryMap Map<String, String> params, String id);
|
||||
@GET("getPlaylist")
|
||||
Call<SubsonicResponse> getPlaylist(@QueryMap Map<String, String> params, @Query("id") String id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class SubsonicResponse {
|
|||
private License license;
|
||||
private JukeboxPlaylist jukeboxPlaylist;
|
||||
private JukeboxStatus jukeboxStatus;
|
||||
@Element
|
||||
@Element(name = "playlist")
|
||||
private PlaylistWithSongs playlist;
|
||||
@Element
|
||||
private Playlists playlists;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue