mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00

* update protobuf definitions * add additionally required proto files * update version.rs * adjust code to protobuf changes * fix formatting * apply suggestions, improve errors
41 lines
1.3 KiB
Protocol Buffer
41 lines
1.3 KiB
Protocol Buffer
// Extracted from: Spotify 1.2.52.442 (windows)
|
|
|
|
syntax = "proto2";
|
|
|
|
package spotify.collection_cosmos.track_list_request.proto;
|
|
|
|
import "collection/artist_collection_state.proto";
|
|
import "collection/track_collection_state.proto";
|
|
import "played_state/track_played_state.proto";
|
|
import "sync/track_sync_state.proto";
|
|
import "metadata/track_metadata.proto";
|
|
|
|
option objc_class_prefix = "SPTCollectionCosmosTrackList";
|
|
option optimize_for = CODE_SIZE;
|
|
|
|
message Item {
|
|
optional string header_field = 1;
|
|
optional uint32 index = 2;
|
|
optional uint32 add_time = 3;
|
|
optional cosmos_util.proto.TrackMetadata track_metadata = 4;
|
|
optional cosmos_util.proto.TrackSyncState track_offline_state = 5;
|
|
optional cosmos_util.proto.TrackPlayState track_play_state = 6;
|
|
optional cosmos_util.proto.TrackCollectionState track_collection_state = 7;
|
|
optional string group_label = 8;
|
|
repeated cosmos_util.proto.ArtistCollectionState artist_collection_state = 9;
|
|
}
|
|
|
|
message GroupHeader {
|
|
optional string header_field = 1;
|
|
optional uint32 index = 2;
|
|
optional uint32 length = 3;
|
|
}
|
|
|
|
message Response {
|
|
repeated Item item = 1;
|
|
optional uint32 unfiltered_length = 2;
|
|
optional uint32 unranged_length = 3;
|
|
optional bool loading_contents = 4;
|
|
optional string offline = 5;
|
|
optional uint32 sync_progress = 6;
|
|
}
|