mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
move to new cspot
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
#ifndef APRESOLVE_H
|
||||
#define APRESOLVE_H
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class ApResolve {
|
||||
private:
|
||||
std::string getApList();
|
||||
#include "HTTPClient.h"
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
public:
|
||||
ApResolve();
|
||||
|
||||
/**
|
||||
namespace cspot {
|
||||
class ApResolve {
|
||||
private:
|
||||
std::string apOverride;
|
||||
|
||||
public:
|
||||
ApResolve(std::string apOverride);
|
||||
|
||||
/**
|
||||
* @brief Connects to spotify's servers and returns first valid ap address
|
||||
*
|
||||
* @return std::string Address in form of url:port
|
||||
*/
|
||||
std::string fetchFirstApAddress();
|
||||
std::string fetchFirstApAddress();
|
||||
};
|
||||
|
||||
#endif
|
||||
} // namespace cspot
|
||||
|
||||
Reference in New Issue
Block a user