Format and .clang-format
This commit is contained in:
1 parent
6aed7b0027
commit
b94b634a87
47 files changed
+42341
-39711
No files matched your search
@@ -4,25 +4,32 @@
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace Spotify {
|
||||
namespace Spotify
|
||||
{
|
||||
|
||||
struct CallbackResult {
|
||||
std::string code;
|
||||
std::string state;
|
||||
std::string error;
|
||||
};
|
||||
struct CallbackResult {
|
||||
std::string code;
|
||||
std::string state;
|
||||
std::string error;
|
||||
};
|
||||
|
||||
class HttpCallbackServer {
|
||||
public:
|
||||
HttpCallbackServer(std::string host, uint16_t port, std::string path);
|
||||
class HttpCallbackServer
|
||||
{
|
||||
public:
|
||||
|
||||
// Wait for one callback request or timeout. Returns std::nullopt on timeout.
|
||||
std::optional<CallbackResult> WaitForCallback(std::chrono::milliseconds timeout);
|
||||
HttpCallbackServer(std::string host, uint16_t port,
|
||||
std::string path);
|
||||
|
||||
private:
|
||||
std::string m_Host;
|
||||
uint16_t m_Port;
|
||||
std::string m_Path;
|
||||
};
|
||||
// Wait for one callback request or timeout. Returns std::nullopt on
|
||||
// timeout.
|
||||
std::optional<CallbackResult>
|
||||
WaitForCallback(std::chrono::milliseconds timeout);
|
||||
|
||||
} // namespace ts6bot
|
||||
private:
|
||||
|
||||
std::string m_Host;
|
||||
uint16_t m_Port;
|
||||
std::string m_Path;
|
||||
};
|
||||
|
||||
} // namespace Spotify
|
||||
Reference in new issue
Block a user