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