ApResolve.h 441 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <string> // for string
  3. #ifdef BELL_ONLY_CJSON
  4. #include "cJSON.h"
  5. #else
  6. #endif
  7. namespace cspot {
  8. class ApResolve {
  9. private:
  10. std::string apOverride;
  11. public:
  12. ApResolve(std::string apOverride);
  13. /**
  14. * @brief Connects to spotify's servers and returns first valid ap address
  15. *
  16. * @return std::string Address in form of url:port
  17. */
  18. std::string fetchFirstApAddress();
  19. };
  20. } // namespace cspot