mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
183a664405
Like with TelemetryJson, we can make the implementation details private and avoid the need to expose httplib to external libraries that need to use the Client class.
25 lines
523 B
C++
25 lines
523 B
C++
// Copyright 2018 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Common {
|
|
struct WebResult {
|
|
enum class Code : u32 {
|
|
Success,
|
|
InvalidURL,
|
|
CredentialsMissing,
|
|
LibError,
|
|
HttpError,
|
|
WrongContent,
|
|
NoWebservice,
|
|
};
|
|
Code result_code;
|
|
std::string result_string;
|
|
std::string returned_data;
|
|
};
|
|
} // namespace Common
|