web_result.h 531 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <string>
  6. #include "common/common_types.h"
  7. namespace WebService {
  8. struct WebResult {
  9. enum class Code : u32 {
  10. Success,
  11. InvalidURL,
  12. CredentialsMissing,
  13. LibError,
  14. HttpError,
  15. WrongContent,
  16. NoWebservice,
  17. };
  18. Code result_code;
  19. std::string result_string;
  20. std::string returned_data;
  21. };
  22. } // namespace WebService