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 символов.

TokenRequest.cs 608B

1234567891011121314151617181920212223242526
  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.Auth
  9. {
  10. [ProtoContract]
  11. public class TokenRequest
  12. {
  13. [ProtoMember(1)]
  14. [JsonProperty("grant_type")]
  15. public string GrantType { get; set; } = "authorization_code";
  16. [ProtoMember(2)]
  17. [JsonProperty("code")]
  18. public string? Code { get; set; }
  19. [ProtoMember(3)]
  20. [JsonProperty("redirect_uri")]
  21. public string? RedirectUri { get; set; }
  22. }
  23. }