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/Async.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 };
22
23 enum class RequestStatus : int {
24 NotStarted = 0,
25 InProgress = 1,
26 Completed = 2,
27 Canceled = 3,
28 TimeOut = 4,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
43 // NOLINTEND
44
45public:
46 // prevent constructor by default
47 HttpRequestHandler& operator=(HttpRequestHandler const&);
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 // vIndex: 0
55 virtual ~HttpRequestHandler() = default;
56
57 // vIndex: 1
58 virtual bool trySend(bool const);
59
60 // vIndex: 2
61 virtual ::Bedrock::Threading::Async<::std::string> getAuthToken() = 0;
62
63 // vIndex: 3
64 virtual ::Bedrock::Threading::Async<::Bedrock::Http::Response> send(::std::string) = 0;
65
66 // vIndex: 4
67 virtual void processResponse(::Bedrock::Http::Response) = 0;
68
69 // vIndex: 5
70 virtual void sendCachedRequest();
71
72 // vIndex: 6
73 virtual bool isDone() const;
74
75 // vIndex: 7
76 virtual void onComplete() = 0;
77
78 // vIndex: 8
79 virtual bool canSendRequest() const;
80
81 // vIndex: 9
82 virtual void fireTelemetry(::Bedrock::NonOwnerPointer<::IMinecraftEventing> const&);
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88
89 // NOLINTEND
90};
Definition Response.h:13
Definition NonOwnerPointer.h:9
Definition HttpRequestHandler.h:15
Definition IMinecraftEventing.h:147
Definition Alias.h:14