mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 02:09:26 +02:00
Update protobuf files (#1424)
* update protobuf definitions * add additionally required proto files * update version.rs * adjust code to protobuf changes * fix formatting * apply suggestions, improve errors
This commit is contained in:
parent
0ad1f7249b
commit
2a574267ae
335 changed files with 3331 additions and 1204 deletions
|
@ -1,25 +1,42 @@
|
|||
// Extracted from: Spotify 1.1.73.517 (macOS)
|
||||
// Extracted from: Spotify 1.2.52.442 (windows)
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
package spotify.your_library.proto;
|
||||
|
||||
option java_package = "spotify.your_library.esperanto.proto";
|
||||
option java_multiple_files = true;
|
||||
option optimize_for = CODE_SIZE;
|
||||
|
||||
message PinRequest {
|
||||
string uri = 1;
|
||||
oneof position {
|
||||
string after_uri = 2;
|
||||
string before_uri = 3;
|
||||
bool first = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message MovePinRequest {
|
||||
string move_uri = 1;
|
||||
oneof position {
|
||||
string after_uri = 2;
|
||||
string before_uri = 3;
|
||||
bool first = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message PinResponse {
|
||||
PinStatus status = 1;
|
||||
enum PinStatus {
|
||||
UNKNOWN = 0;
|
||||
PINNED = 1;
|
||||
NOT_PINNED = 2;
|
||||
}
|
||||
|
||||
|
||||
PinStatus status = 1;
|
||||
bool has_maximum_pinned_items = 2;
|
||||
int32 maximum_pinned_items = 3;
|
||||
uint32 status_code = 98;
|
||||
string error = 99;
|
||||
}
|
||||
|
||||
|
@ -28,7 +45,3 @@ message PinItem {
|
|||
bool in_library = 2;
|
||||
}
|
||||
|
||||
message PinList {
|
||||
repeated PinItem item = 1;
|
||||
string error = 99;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue