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.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

TopItemResponse.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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
  12. {
  13. [ProtoMember(1)]
  14. [JsonProperty("items")]
  15. public Item[]? Items { get; set; }
  16. [ProtoMember(2)]
  17. [JsonProperty("total")]
  18. public int? Total { get; set; }
  19. [ProtoMember(3)]
  20. [JsonProperty("limit")]
  21. public int? Limit { get; set; }
  22. [ProtoMember(4)]
  23. [JsonProperty("offset")]
  24. public int? Offset { get; set; }
  25. [ProtoMember(5)]
  26. [JsonProperty("href")]
  27. public Uri? Href { get; set; }
  28. }
  29. [ProtoContract]
  30. public partial class Item
  31. {
  32. [ProtoMember(1)]
  33. [JsonProperty("genres")]
  34. public string[]? Genres { get; set; }
  35. [ProtoMember(2)]
  36. [JsonProperty("id")]
  37. public string? Id { get; set; }
  38. [ProtoMember(3)]
  39. [JsonProperty("images")]
  40. public Image[]? Images { get; set; }
  41. [ProtoMember(4)]
  42. [JsonProperty("name")]
  43. public string? Name { get; set; }
  44. [ProtoMember(5)]
  45. [JsonProperty("uri")]
  46. public string? Uri { get; set; }
  47. }
  48. [ProtoContract]
  49. public partial class Image
  50. {
  51. [ProtoMember(1)]
  52. [JsonProperty("height")]
  53. public int? Height { get; set; }
  54. [ProtoMember(2)]
  55. [JsonProperty("url")]
  56. public Uri? Url { get; set; }
  57. [ProtoMember(3)]
  58. [JsonProperty("width")]
  59. public int? Width { get; set; }
  60. }
  61. }