LeviLamina
Loading...
Searching...
No Matches
SDLRequest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/services/requests/HttpRequestHandler.h"
7#include "mc/deps/core/threading/IAsyncResult.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Bedrock::Http { class Response; }
12namespace Json { class Value; }
13// clang-format on
14
16public:
17 // SDLRequest inner types define
18 enum class HTTP_METHOD : int {
19 Post = 0,
20 Get = 1,
21 Put = 2,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 SDLRequest& operator=(SDLRequest const&);
35 SDLRequest(SDLRequest const&);
36 SDLRequest();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 10
42 virtual ::std::string _getUrl() const = 0;
43
44 // vIndex: 11
45 virtual ::Json::Value _getBody() const = 0;
46
47 // vIndex: 12
48 virtual void _processResponse(::Bedrock::Http::Response) = 0;
49
50 // vIndex: 0
51 virtual ~SDLRequest() /*override*/ = default;
52
53 // vIndex: 2
54 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::string>> getAuthToken() /*override*/;
55
56 // vIndex: 3
57 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Bedrock::Http::Response>> send(::std::string
58 ) /*override*/;
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70
71 // NOLINTEND
72};
Definition Response.h:12
Definition HttpRequestHandler.h:15
Definition SDLRequest.h:15
Definition Alias.h:14