librespot/protocol/proto/capping_data.proto
Roderick van Domburg 113ac94c07
Update protobufs (#796)
* Import Spotify 1.1.61.583 (Windows) protobufs
* Import Spotify 1.1.33.569 protobufs missing in 1.1.61.583
* Remove unused protobufs, no longer present in 1.1.61.583
2021-06-19 22:29:48 +02:00

31 lines
598 B
Protocol Buffer

// Extracted from: Spotify 1.1.61.583 (Windows)
syntax = "proto3";
package spotify.capper3;
option java_multiple_files = true;
option java_package = "com.spotify.capper3.proto";
message ConsumeTokensRequest {
uint32 tokens = 1;
}
message CappingData {
uint32 remaining_tokens = 1;
uint32 capacity = 2;
uint32 seconds_until_next_refill = 3;
uint32 refill_amount = 4;
}
message ConsumeTokensResponse {
uint32 seconds_until_next_update = 1;
PlayCappingType capping_type = 2;
CappingData capping_data = 3;
}
enum PlayCappingType {
NONE = 0;
LINEAR = 1;
}