radio.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. syntax = "proto2";
  2. message RadioRequest {
  3. repeated string uris = 0x1;
  4. optional int32 salt = 0x2;
  5. optional int32 length = 0x4;
  6. optional string stationId = 0x5;
  7. repeated string lastTracks = 0x6;
  8. }
  9. message MultiSeedRequest {
  10. repeated string uris = 0x1;
  11. }
  12. message Feedback {
  13. optional string uri = 0x1;
  14. optional string type = 0x2;
  15. optional double timestamp = 0x3;
  16. }
  17. message Tracks {
  18. repeated string gids = 0x1;
  19. optional string source = 0x2;
  20. optional string identity = 0x3;
  21. repeated string tokens = 0x4;
  22. repeated Feedback feedback = 0x5;
  23. }
  24. message Station {
  25. optional string id = 0x1;
  26. optional string title = 0x2;
  27. optional string titleUri = 0x3;
  28. optional string subtitle = 0x4;
  29. optional string subtitleUri = 0x5;
  30. optional string imageUri = 0x6;
  31. optional double lastListen = 0x7;
  32. repeated string seeds = 0x8;
  33. optional int32 thumbsUp = 0x9;
  34. optional int32 thumbsDown = 0xa;
  35. }
  36. message Rules {
  37. optional string js = 0x1;
  38. }
  39. message StationResponse {
  40. optional Station station = 0x1;
  41. repeated Feedback feedback = 0x2;
  42. }
  43. message StationList {
  44. repeated Station stations = 0x1;
  45. }
  46. message LikedPlaylist {
  47. optional string uri = 0x1;
  48. }