message.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. syntax = "proto3";
  2. package model;
  3. option go_package = "./model";
  4. import "google/protobuf/timestamp.proto";
  5. message Message {
  6. google.protobuf.Timestamp at = 1 [json_name = "at"];
  7. string platform = 2 [json_name = "platform"];
  8. string broadcaster = 3 [json_name = "broadcaster"];
  9. bytes raw = 4 [json_name = "raw"];
  10. User user = 10 [json_name = "user"];
  11. string text = 11 [json_name = "text"];
  12. bool sticker = 12 [json_name = "sticker"];
  13. }
  14. message Donation {
  15. google.protobuf.Timestamp at = 1 [json_name = "at"];
  16. string platform = 2 [json_name = "platform"];
  17. string broadcaster = 3 [json_name = "broadcaster"];
  18. bytes raw = 4 [json_name = "raw"];
  19. User user = 10 [json_name = "user"];
  20. uint64 amount = 11 [json_name = "amount"];
  21. }
  22. message Online {
  23. google.protobuf.Timestamp at = 1 [json_name = "at"];
  24. string platform = 2 [json_name = "platform"];
  25. string broadcaster = 3 [json_name = "broadcaster"];
  26. bytes raw = 4 [json_name = "raw"];
  27. uint64 total = 12 [json_name = "total"];
  28. uint64 device_pc = 13 [json_name = "device_pc"];
  29. uint64 device_mobile = 14 [json_name = "device_mobile"];
  30. uint64 device_unknown = 15 [json_name = "device_unknown"];
  31. }
  32. message RosterChange {
  33. enum Op {
  34. OP_UNSPECIFIED = 0;
  35. OP_JOINED = 1;
  36. OP_LEFT = 2;
  37. }
  38. google.protobuf.Timestamp at = 1 [json_name = "at"];
  39. string platform = 2 [json_name = "platform"];
  40. string broadcaster = 3 [json_name = "broadcaster"];
  41. bytes raw = 4 [json_name = "raw"];
  42. User user = 10 [json_name = "user"];
  43. Op operation = 11 [json_name = "op"];
  44. }
  45. message User {
  46. string id = 1 [json_name = "id"];
  47. string name = 2 [json_name = "name"];
  48. }