@@ -35,15 +35,11 @@ message GetDisplayIndexResponse {}
3535
3636message AmountRequest {}
3737
38- message AmountResponse {
39- int32 amount = 1 ;
40- }
38+ message AmountResponse { int32 amount = 1 ; }
4139
4240message PlaylistResumeRequest {}
4341
44- message PlaylistResumeResponse {
45- int32 code = 1 ;
46- }
42+ message PlaylistResumeResponse { int32 code = 1 ; }
4743
4844message ResumeTrackRequest {
4945 int32 start_index = 1 ;
@@ -70,9 +66,7 @@ message SyncRequest {}
7066
7167message SyncResponse {}
7268
73- message RemoveAllTracksRequest {
74- optional string playlist_id = 1 ;
75- }
69+ message RemoveAllTracksRequest { optional string playlist_id = 1 ; }
7670
7771message RemoveAllTracksResponse {}
7872
@@ -86,11 +80,10 @@ message RemoveTracksResponse {}
8680message CreatePlaylistRequest {
8781 optional string name = 1 ;
8882 repeated string tracks = 2 ;
83+ optional string folder_id = 3 ;
8984}
9085
91- message CreatePlaylistResponse {
92- int32 start_index = 1 ;
93- }
86+ message CreatePlaylistResponse { int32 start_index = 1 ; }
9487
9588message InsertTracksRequest {
9689 optional string playlist_id = 1 ;
@@ -138,15 +131,11 @@ message InsertArtistTracksRequest {
138131
139132message InsertArtistTracksResponse {}
140133
141- message ShufflePlaylistRequest {
142- int32 start_index = 1 ;
143- }
134+ message ShufflePlaylistRequest { int32 start_index = 1 ; }
144135
145136message ShufflePlaylistResponse {}
146137
147- message GetPlaylistRequest {
148- string playlist_id = 1 ;
149- }
138+ message GetPlaylistRequest { string playlist_id = 1 ; }
150139
151140message GetPlaylistResponse {
152141 string id = 1 ;
@@ -165,37 +154,27 @@ message CreateFolderRequest {
165154 optional string parent_id = 2 ;
166155}
167156
168- message CreateFolderResponse {
169- string folder_id = 1 ;
170- }
157+ message CreateFolderResponse { string folder_id = 1 ; }
171158
172- message GetFolderRequest {
173- string id = 1 ;
174- }
159+ message GetFolderRequest { string id = 1 ; }
175160
176161message GetFolderResponse {
177162 string id = 1 ;
178163 string name = 2 ;
179164 optional string parent_id = 3 ;
180165}
181166
182- message GetFoldersRequest {
183- optional string parent_id = 1 ;
184- }
167+ message GetFoldersRequest { optional string parent_id = 1 ; }
185168
186169message GetFoldersResponse {
187170 repeated rockbox.v1alpha1.GetFolderResponse folders = 1 ;
188171}
189172
190- message RemoveFolderRequest {
191- string id = 1 ;
192- }
173+ message RemoveFolderRequest { string id = 1 ; }
193174
194175message RemoveFolderResponse {}
195176
196- message RemovePlaylistRequest {
197- string id = 1 ;
198- }
177+ message RemovePlaylistRequest { string id = 1 ; }
199178
200179message RemovePlaylistResponse {}
201180
@@ -227,9 +206,7 @@ message MoveFolderRequest {
227206
228207message MoveFolderResponse {}
229208
230- message GetPlaylistsRequest {
231- optional string folder_id = 1 ;
232- }
209+ message GetPlaylistsRequest { optional string folder_id = 1 ; }
233210
234211message GetPlaylistsResponse {
235212 repeated rockbox.v1alpha1.GetPlaylistResponse playlists = 1 ;
@@ -240,22 +217,27 @@ service PlaylistService {
240217 rpc GetResumeInfo (GetResumeInfoRequest ) returns (GetResumeInfoResponse ) {}
241218 rpc GetTrackInfo (GetTrackInfoRequest ) returns (GetTrackInfoResponse ) {}
242219 rpc GetFirstIndex (GetFirstIndexRequest ) returns (GetFirstIndexResponse ) {}
243- rpc GetDisplayIndex (GetDisplayIndexRequest ) returns (GetDisplayIndexResponse ) {}
220+ rpc GetDisplayIndex (GetDisplayIndexRequest )
221+ returns (GetDisplayIndexResponse ) {}
244222 rpc Amount (AmountRequest ) returns (AmountResponse ) {}
245223 rpc PlaylistResume (PlaylistResumeRequest ) returns (PlaylistResumeResponse ) {}
246224 rpc ResumeTrack (ResumeTrackRequest ) returns (ResumeTrackResponse ) {}
247225 rpc SetModified (SetModifiedRequest ) returns (SetModifiedResponse ) {}
248226 rpc Start (StartRequest ) returns (StartResponse ) {}
249227 rpc Sync (SyncRequest ) returns (SyncResponse ) {}
250- rpc RemoveAllTracks (RemoveAllTracksRequest ) returns (RemoveAllTracksResponse ) {}
228+ rpc RemoveAllTracks (RemoveAllTracksRequest )
229+ returns (RemoveAllTracksResponse ) {}
251230 rpc RemoveTracks (RemoveTracksRequest ) returns (RemoveTracksResponse ) {}
252231 rpc CreatePlaylist (CreatePlaylistRequest ) returns (CreatePlaylistResponse ) {}
253232 rpc InsertTracks (InsertTracksRequest ) returns (InsertTracksResponse ) {}
254- rpc InsertDirectory (InsertDirectoryRequest ) returns (InsertDirectoryResponse ) {}
233+ rpc InsertDirectory (InsertDirectoryRequest )
234+ returns (InsertDirectoryResponse ) {}
255235 rpc InsertPlaylist (InsertPlaylistRequest ) returns (InsertPlaylistResponse ) {}
256236 rpc InsertAlbum (InsertAlbumRequest ) returns (InsertAlbumResponse ) {}
257- rpc InsertArtistTracks (InsertArtistTracksRequest ) returns (InsertArtistTracksResponse ) {}
258- rpc ShufflePlaylist (ShufflePlaylistRequest ) returns (ShufflePlaylistResponse ) {}
237+ rpc InsertArtistTracks (InsertArtistTracksRequest )
238+ returns (InsertArtistTracksResponse ) {}
239+ rpc ShufflePlaylist (ShufflePlaylistRequest )
240+ returns (ShufflePlaylistResponse ) {}
259241 rpc GetPlaylist (GetPlaylistRequest ) returns (GetPlaylistResponse ) {}
260242 rpc GetPlaylists (GetPlaylistsRequest ) returns (GetPlaylistsResponse ) {}
261243 rpc CreateFolder (CreateFolderRequest ) returns (CreateFolderResponse ) {}
0 commit comments