2022-04-23 03:59:50 -05:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-09-16 13:05:51 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2018-10-10 20:23:41 -05:00
|
|
|
#include "common/common_types.h"
|
2018-09-16 13:05:51 -05:00
|
|
|
|
2020-08-22 18:23:22 -05:00
|
|
|
namespace WebService {
|
2018-09-16 13:05:51 -05:00
|
|
|
struct WebResult {
|
|
|
|
enum class Code : u32 {
|
|
|
|
Success,
|
|
|
|
InvalidURL,
|
|
|
|
CredentialsMissing,
|
|
|
|
LibError,
|
|
|
|
HttpError,
|
|
|
|
WrongContent,
|
|
|
|
NoWebservice,
|
|
|
|
};
|
|
|
|
Code result_code;
|
|
|
|
std::string result_string;
|
|
|
|
std::string returned_data;
|
|
|
|
};
|
2020-08-22 18:23:22 -05:00
|
|
|
} // namespace WebService
|