LeviLamina
Loading...
Searching...
No Matches
HttpRequestHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/IAsyncResult.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace Bedrock::Http { class Response; }
13// clang-format on
14
15class HttpRequestHandler : public ::std::enable_shared_from_this<::HttpRequestHandler> {
16public:
17 // HttpRequestHandler inner types define
18 enum class WaitForSignIn : uint {
19 None = 0,
20 PlayFab = 1,
21 XboxLive = 2,
22 };
23
24 enum class RequestStatus : int {
25 NotStarted = 0,
26 InProgress = 1,
27 Completed = 2,
28 Canceled = 3,
29 TimeOut = 4,
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
48 HttpRequestHandler& operator=(HttpRequestHandler const&);
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 // vIndex: 0
56 virtual ~HttpRequestHandler() = default;
57
58 // vIndex: 1
59 virtual bool trySend(bool const);
60
61 // vIndex: 2
62 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::std::string>> getAuthToken() = 0;
63
64 // vIndex: 3
65 virtual ::std::shared_ptr<::Bedrock::Threading::IAsyncResult<::Bedrock::Http::Response>> send(::std::string) = 0;
66
67 // vIndex: 4
68 virtual void processResponse(::Bedrock::Http::Response) = 0;
69
70 // vIndex: 5
71 virtual void sendCachedRequest();
72
73 // vIndex: 6
74 virtual bool isDone() const;
75
76 // vIndex: 7
77 virtual void onComplete() = 0;
78
79 // vIndex: 8
80 virtual bool canSendRequest() const;
81
82 // vIndex: 9
83 virtual void fireTelemetry(::Bedrock::NonOwnerPointer<::IMinecraftEventing> const&);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95
96 // NOLINTEND
97};
Definition Response.h:12
Definition NonOwnerPointer.h:9
Definition HttpRequestHandler.h:15
Definition IMinecraftEventing.h:143
Definition Alias.h:14