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.

SearchDetails.cs 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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.Search
  8. {
  9. [ProtoContract]
  10. public class SearchDetails
  11. {
  12. [ProtoContract]
  13. public partial class SearchContracts
  14. {
  15. [ProtoMember(1)]
  16. public Tracks? Tracks { get; set; }
  17. }
  18. [ProtoContract]
  19. public partial class Tracks
  20. {
  21. [ProtoMember(1)]
  22. public Uri Href { get; set; }
  23. [ProtoMember(2)]
  24. public Item[]? Items { get; set; }
  25. }
  26. [ProtoContract]
  27. public partial class Item
  28. {
  29. [ProtoMember(1)]
  30. public Album Album { get; set; }
  31. [ProtoMember(2)]
  32. public Artist[] Artists { get; set; }
  33. [ProtoMember(3)]
  34. public long DurationMs { get; set; }
  35. [ProtoMember(4)]
  36. public ExternalUrls ExternalUrls { get; set; }
  37. [ProtoMember(5)]
  38. public Uri Href { get; set; }
  39. [ProtoMember(6)]
  40. public string Id { get; set; }
  41. [ProtoMember(7)]
  42. public string Name { get; set; }
  43. [ProtoMember(8)]
  44. public long Popularity { get; set; }
  45. [ProtoMember(9)]
  46. public long TrackNumber { get; set; }
  47. [ProtoMember(10)]
  48. public string Type { get; set; }
  49. [ProtoMember(11)]
  50. public string Uri { get; set; }
  51. }
  52. [ProtoContract]
  53. public partial class Album
  54. {
  55. [ProtoMember(1)]
  56. public Uri Href { get; set; }
  57. [ProtoMember(2)]
  58. public string Id { get; set; }
  59. [ProtoMember(3)]
  60. public Image[] Images { get; set; }
  61. [ProtoMember(4)]
  62. public string Name { get; set; }
  63. [ProtoMember(5)]
  64. public DateTimeOffset ReleaseDate { get; set; }
  65. [ProtoMember(6)]
  66. public long TotalTracks { get; set; }
  67. [ProtoMember(7)]
  68. public string Type { get; set; }
  69. [ProtoMember(8)]
  70. public string Uri { get; set; }
  71. }
  72. [ProtoContract]
  73. public partial class Image
  74. {
  75. [ProtoMember(1)]
  76. public long Height { get; set; }
  77. [ProtoMember(2)]
  78. public Uri Url { get; set; }
  79. [ProtoMember(3)]
  80. public long Width { get; set; }
  81. }
  82. [ProtoContract]
  83. public partial class Artist
  84. {
  85. [ProtoMember(1)]
  86. public ExternalUrls ExternalUrls { get; set; }
  87. [ProtoMember(2)]
  88. public Uri Href { get; set; }
  89. [ProtoMember(3)]
  90. public string Id { get; set; }
  91. [ProtoMember(4)]
  92. public string Name { get; set; }
  93. [ProtoMember(5)]
  94. public string Type { get; set; }
  95. [ProtoMember(6)]
  96. public string Uri { get; set; }
  97. }
  98. [ProtoContract]
  99. public partial class ExternalUrls
  100. {
  101. [ProtoMember(1)]
  102. public Uri Spotify { get; set; }
  103. }
  104. }
  105. }