web_result.h 512 B

123456789101112131415161718192021222324
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. #include "common/common_types.h"
  6. namespace WebService {
  7. struct WebResult {
  8. enum class Code : u32 {
  9. Success,
  10. InvalidURL,
  11. CredentialsMissing,
  12. LibError,
  13. HttpError,
  14. WrongContent,
  15. NoWebservice,
  16. };
  17. Code result_code;
  18. std::string result_string;
  19. std::string returned_data;
  20. };
  21. } // namespace WebService