ApResolve.h 428 B

1234567891011121314151617181920212223
  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. public:
  10. ApResolve(std::string apOverride);
  11. /**
  12. * @brief Connects to spotify's servers and returns first valid ap address
  13. * @returns std::string Address in form of url:port
  14. */
  15. std::string fetchFirstApAddress();
  16. private:
  17. std::string apOverride;
  18. };
  19. } // namespace cspot