This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2018-09-16 18:05:51 +00:00
|
|
|
// Copyright 2018 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2018-10-11 01:23:41 +00:00
|
|
|
#include "common/common_types.h"
|
2018-09-16 18:05:51 +00:00
|
|
|
|
2020-08-22 23:23:22 +00:00
|
|
|
namespace WebService {
|
2018-09-16 18:05:51 +00: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 23:23:22 +00:00
|
|
|
} // namespace WebService
|