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.

ISearchService.cs 785B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.ServiceModel;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace GrpcShared.Interfaces
  9. {
  10. [ServiceContract]
  11. public interface ISearchService
  12. {
  13. Task<SearchResult> SearchTracks(SearchRequest req);
  14. }
  15. [DataContract]
  16. public class SearchResult
  17. {
  18. [DataMember(Order = 1)]
  19. public string NewQuery { get; set; }
  20. [DataMember(Order = 2)]
  21. public string NewType { get; set; }
  22. }
  23. [DataContract]
  24. public class SearchRequest
  25. {
  26. [DataMember(Order = 1)]
  27. public string Query { get; set; }
  28. [DataMember(Order = 2)]
  29. public string Type { get; set; } = "track";
  30. }
  31. }