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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using Newtonsoft.Json;
  2. using ProtoBuf;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GrpcShared.DTO.TopItem
  9. {
  10. [ProtoContract]
  11. public class TopItemResponse : StatusCodeMessage
  12. {
  13. [ProtoMember(1)]
  14. [JsonProperty("items")]
  15. public Item[]? Items { get; set; }
  16. [ProtoMember(2)]
  17. [JsonProperty("href")]
  18. public Uri? Href { get; set; }
  19. }
  20. [ProtoContract]
  21. public partial class Item
  22. {
  23. [ProtoMember(1)]
  24. [JsonProperty("id")]
  25. public string? Id { get; set; }
  26. [ProtoMember(2)]
  27. [JsonProperty("images")]
  28. public Image[]? Images { get; set; }
  29. [ProtoMember(3)]
  30. [JsonProperty("name")]
  31. public string? Name { get; set; }
  32. [ProtoMember(4)]
  33. [JsonProperty("uri")]
  34. public string? Uri { get; set; }
  35. }
  36. [ProtoContract]
  37. public partial class Image
  38. {
  39. [ProtoMember(1)]
  40. [JsonProperty("height")]
  41. public int? Height { get; set; }
  42. [ProtoMember(2)]
  43. [JsonProperty("url")]
  44. public Uri? Url { get; set; }
  45. [ProtoMember(3)]
  46. [JsonProperty("width")]
  47. public int? Width { get; set; }
  48. }
  49. }