move to new cspot

This commit is contained in:
philippe44
2023-03-25 16:48:41 -07:00
parent c712b78931
commit 008c36facf
2983 changed files with 465270 additions and 13569 deletions

View File

@@ -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