Blazor & WASM in combination to get statistics from Spotify API for performing the song analysis. With separate microservices for auth, Spotify, user data tracking, and application, connected through gRPC with Polly.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TrackResponse.cs 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using ProtoBuf;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GrpcShared.DTO.Track
  8. {
  9. [ProtoContract]
  10. public class TrackResponse
  11. {
  12. [ProtoMember(1)]
  13. public int? Timestamp{ get; set; }
  14. [ProtoMember(2)]
  15. public int? Progress_ms { get; set; }
  16. [ProtoMember(3)]
  17. public bool? Is_playing { get; set; }
  18. [ProtoMember(4)]
  19. public Item? Item { get; set; }
  20. }
  21. [ProtoContract]
  22. public class Item
  23. {
  24. [ProtoMember(1)]
  25. public Album? Album { get; set; }
  26. [ProtoMember(2)]
  27. public Artist[]? Artists { get; set; }
  28. [ProtoMember(3)]
  29. public string? Id { get; set; }
  30. [ProtoMember(4)]
  31. public string? Name { get; set; }
  32. [ProtoMember(5)]
  33. public string? Href { get; set; }
  34. }
  35. [ProtoContract]
  36. public class Album
  37. {
  38. [ProtoMember(1)]
  39. public string? Id { get; set; }
  40. [ProtoMember(2)]
  41. public string? Name { get; set; }
  42. [ProtoMember(3)]
  43. public Image[]? Images { get; set; }
  44. [ProtoMember(4)]
  45. public string? Href { get; set; }
  46. }
  47. [ProtoContract]
  48. public class Artist
  49. {
  50. [ProtoMember(1)]
  51. public string? Id { get; set; }
  52. [ProtoMember(2)]
  53. public string? Name { get; set; }
  54. [ProtoMember(3)]
  55. public string? Href { get; set; }
  56. }
  57. [ProtoContract]
  58. public class Image
  59. {
  60. [ProtoMember(1)]
  61. public int? Height{ get; set; }
  62. [ProtoMember(2)]
  63. public string? Url { get; set; }
  64. [ProtoMember(3)]
  65. public int? Width { get; set; }
  66. }
  67. }