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.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

SeacrhContracts.cs 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Text.Json.Serialization;
  5. namespace SpotifyService.Contracts
  6. {
  7. public partial class SearchContracts
  8. {
  9. [JsonPropertyName("tracks")]
  10. public Tracks? Tracks { get; set; }
  11. }
  12. public partial class Tracks
  13. {
  14. [JsonPropertyName("href")]
  15. public Uri Href { get; set; }
  16. [JsonPropertyName("items")]
  17. public Items[]? Items { get; set; }
  18. }
  19. public partial class Items
  20. {
  21. [JsonPropertyName("album")]
  22. public Album Album { get; set; }
  23. [JsonPropertyName("artists")]
  24. public Artist[] Artists { get; set; }
  25. [JsonPropertyName("duration_ms")]
  26. public long DurationMs { get; set; }
  27. [JsonPropertyName("external_urls")]
  28. public ExternalUrls ExternalUrls { get; set; }
  29. [JsonPropertyName("href")]
  30. public Uri Href { get; set; }
  31. [JsonPropertyName("id")]
  32. public string Id { get; set; }
  33. [JsonPropertyName("name")]
  34. public string Name { get; set; }
  35. [JsonPropertyName("popularity")]
  36. public long Popularity { get; set; }
  37. [JsonPropertyName("track_number")]
  38. public long TrackNumber { get; set; }
  39. [JsonPropertyName("type")]
  40. public string Type { get; set; }
  41. [JsonPropertyName("uri")]
  42. public string Uri { get; set; }
  43. }
  44. public partial class Album
  45. {
  46. [JsonPropertyName("href")]
  47. public Uri Href { get; set; }
  48. [JsonPropertyName("id")]
  49. public string Id { get; set; }
  50. [JsonPropertyName("images")]
  51. public Image[] Images { get; set; }
  52. [JsonPropertyName("name")]
  53. public string Name { get; set; }
  54. [JsonPropertyName("release_date")]
  55. public DateTimeOffset ReleaseDate { get; set; }
  56. [JsonPropertyName("total_tracks")]
  57. public long TotalTracks { get; set; }
  58. [JsonPropertyName("type")]
  59. public string Type { get; set; }
  60. [JsonPropertyName("uri")]
  61. public string Uri { get; set; }
  62. }
  63. public partial class Image
  64. {
  65. [JsonPropertyName("height")]
  66. public long Height { get; set; }
  67. [JsonPropertyName("url")]
  68. public Uri Url { get; set; }
  69. [JsonPropertyName("width")]
  70. public long Width { get; set; }
  71. }
  72. public partial class Artist
  73. {
  74. [JsonPropertyName("external_urls")]
  75. public ExternalUrls ExternalUrls { get; set; }
  76. [JsonPropertyName("href")]
  77. public Uri Href { get; set; }
  78. [JsonPropertyName("id")]
  79. public string Id { get; set; }
  80. [JsonPropertyName("name")]
  81. public string Name { get; set; }
  82. [JsonPropertyName("type")]
  83. public string Type { get; set; }
  84. [JsonPropertyName("uri")]
  85. public string Uri { get; set; }
  86. }
  87. public partial class ExternalUrls
  88. {
  89. [JsonPropertyName("spotify")]
  90. public Uri Spotify { get; set; }
  91. }
  92. }