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个字符

MultipleTrackResponse.cs 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.MultipleTrack
  8. {
  9. [ProtoContract]
  10. public class MultipleTrackResponse
  11. {
  12. [ProtoMember(1)]
  13. public List<AudioFeature>? Audio_Features { get; set; }
  14. }
  15. [ProtoContract]
  16. public class AudioFeature
  17. {
  18. [ProtoMember(1)]
  19. public float? Danceability { get; set; }
  20. [ProtoMember(2)]
  21. public float? Energy { get; set; }
  22. [ProtoMember(3)]
  23. public int? Key { get; set; }
  24. [ProtoMember(4)]
  25. public float? Loudness { get; set; }
  26. [ProtoMember(5)]
  27. public int? Mode { get; set; }
  28. [ProtoMember(6)]
  29. public float? Speechiness { get; set; }
  30. [ProtoMember(7)]
  31. public float? Acousticness { get; set; }
  32. [ProtoMember(8)]
  33. public int? Instrumentalness { get; set; }
  34. [ProtoMember(9)]
  35. public float? Liveness { get; set; }
  36. [ProtoMember(10)]
  37. public float? Valence { get; set; }
  38. [ProtoMember(11)]
  39. public float? Tempo { get; set; }
  40. [ProtoMember(12)]
  41. public string? Type { get; set; }
  42. [ProtoMember(13)]
  43. public string? Id { get; set; }
  44. [ProtoMember(14)]
  45. public string? Uri { get; set; }
  46. [ProtoMember(15)]
  47. public Uri? TrackHref { get; set; }
  48. [ProtoMember(16)]
  49. public Uri? AnalysisUrl { get; set; }
  50. [ProtoMember(17)]
  51. public int? DurationMs { get; set; }
  52. [ProtoMember(18)]
  53. public int? TimeSignature { get; set; }
  54. }
  55. }