diff options
Diffstat (limited to 'src/web_service/web_result.h')
| -rw-r--r-- | src/web_service/web_result.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/web_service/web_result.h b/src/web_service/web_result.h new file mode 100644 index 000000000..3aeeb5288 --- /dev/null +++ b/src/web_service/web_result.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | // Copyright 2018 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <string> | ||
| 8 | #include "common/common_types.h" | ||
| 9 | |||
| 10 | namespace WebService { | ||
| 11 | struct WebResult { | ||
| 12 | enum class Code : u32 { | ||
| 13 | Success, | ||
| 14 | InvalidURL, | ||
| 15 | CredentialsMissing, | ||
| 16 | LibError, | ||
| 17 | HttpError, | ||
| 18 | WrongContent, | ||
| 19 | NoWebservice, | ||
| 20 | }; | ||
| 21 | Code result_code; | ||
| 22 | std::string result_string; | ||
| 23 | std::string returned_data; | ||
| 24 | }; | ||
| 25 | } // namespace WebService | ||