librespot/protocol/proto/playlist4meta.proto

53 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

syntax = "proto2";
2015-06-23 14:38:29 +00:00
message ListChecksum {
2015-07-01 17:49:03 +00:00
optional int32 version = 0x1;
optional bytes sha1 = 0x4;
2015-06-23 14:38:29 +00:00
}
2015-07-01 17:49:03 +00:00
2015-06-23 14:38:29 +00:00
message DownloadFormat {
2015-07-01 17:49:03 +00:00
optional Codec codec = 0x1;
enum Codec {
CODEC_UNKNOWN = 0x0;
OGG_VORBIS = 0x1;
FLAC = 0x2;
MPEG_1_LAYER_3 = 0x3;
}
}
2015-06-23 14:38:29 +00:00
message ListAttributes {
2015-07-01 17:49:03 +00:00
optional string name = 0x1;
optional string description = 0x2;
optional bytes picture = 0x3;
optional bool collaborative = 0x4;
optional string pl3_version = 0x5;
optional bool deleted_by_owner = 0x6;
optional bool restricted_collaborative = 0x7;
optional int64 deprecated_client_id = 0x8;
optional bool public_starred = 0x9;
optional string client_id = 0xa;
}
2015-06-23 14:38:29 +00:00
message ItemAttributes {
2015-07-01 17:49:03 +00:00
optional string added_by = 0x1;
optional int64 timestamp = 0x2;
optional string message = 0x3;
optional bool seen = 0x4;
optional int64 download_count = 0x5;
optional DownloadFormat download_format = 0x6;
optional string sevendigital_id = 0x7;
optional int64 sevendigital_left = 0x8;
optional int64 seen_at = 0x9;
optional bool public = 0xa;
}
2015-06-23 14:38:29 +00:00
message StringAttribute {
2015-07-01 17:49:03 +00:00
optional string key = 0x1;
optional string value = 0x2;
2015-06-23 14:38:29 +00:00
}
2015-07-01 17:49:03 +00:00
2015-06-23 14:38:29 +00:00
message StringAttributes {
2015-07-01 17:49:03 +00:00
repeated StringAttribute attribute = 0x1;
2015-06-23 14:38:29 +00:00
}
2015-07-01 17:49:03 +00:00