2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-09-16 14:05:51 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2018-10-10 21:23:41 -04:00
|
|
|
#include "common/common_types.h"
|
2018-09-16 14:05:51 -04:00
|
|
|
|
2020-08-22 19:23:22 -04:00
|
|
|
namespace WebService {
|
2018-09-16 14:05:51 -04: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 19:23:22 -04:00
|
|
|
} // namespace WebService
|