feat(playlists): reorder tracks
This commit is contained in:
@@ -11,6 +11,7 @@ service Library {
|
||||
rpc DeletePlaylist(DeletePlaylistRequest) returns (google.protobuf.Empty);
|
||||
rpc AddTrackToPlaylist(AddTrackToPlaylistRequest) returns (google.protobuf.Empty);
|
||||
rpc RemoveTrackFromPlaylist(RemoveTrackFromPlaylistRequest) returns (google.protobuf.Empty);
|
||||
rpc SwapTracks(SwapTracksRequest) returns (TrackList);
|
||||
}
|
||||
|
||||
message TrackList {
|
||||
@@ -56,3 +57,9 @@ message RemoveTrackFromPlaylistRequest {
|
||||
uint32 playlist_id = 1;
|
||||
uint32 track_rank = 2;
|
||||
}
|
||||
|
||||
message SwapTracksRequest {
|
||||
uint32 playlist_id = 1;
|
||||
uint32 a_rank = 2;
|
||||
uint32 b_rank = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user