LeviLamina
Loading...
Searching...
No Matches
EduWebService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/web_services/IEduWebService.h"
7#include "mc/certificates/identity/web_services/SigninContext.h"
8#include "mc/deps/core/minecraft/threading/EnableQueueForMainThread.h"
9
10// auto generated forward declare list
11// clang-format off
12struct ServicePack;
13namespace Bedrock::Http { class Request; }
14namespace Bedrock::Http { class Response; }
15namespace Json { class Value; }
16namespace WebServices::EduSignin { struct SigninError; }
17namespace WebServices::EduSignin { struct SigninResponse; }
18// clang-format on
19
20namespace WebServices {
21
23public:
24 // member variables
25 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 EduWebService& operator=(EduWebService const&);
36 EduWebService(EduWebService const&);
37 EduWebService();
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 virtual ~EduWebService() /*override*/ = default;
43
44 virtual void setEula() /*override*/;
45
46 virtual void setPurchaseReceipt(
47 ::std::string const& receipt,
48 ::std::function<void(bool)> const& callback,
49 ::std::string const& messUserId
50 ) /*override*/;
51
52 virtual void setSkin(::std::string const& newSkin) /*override*/;
53
54 virtual void signinForDemo(
55 ::std::function<
56 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
57 callback
58 ) /*override*/;
59
60 virtual void signin(
61 ::std::function<
62 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
63 callback,
64 ::std::string const& delegationKey
65 ) /*override*/;
66
67 virtual void
68 sendInitialPackRequest(::std::function<void(::std::vector<::ServicePack>)> packReturnCallback) /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74#ifdef LL_PLAT_C
75 MCNAPI void _authenticateWithService(
77 ::std::function<
78 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
79 callback,
80 ::WebServices::SigninContext context
81 );
82
83 MCNAPI ::Bedrock::Http::Request
84 getRequest(::std::string_view url, ::std::string apiVersion, bool includeAuth, ::Json::Value&& body);
85#endif
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91#ifdef LL_PLAT_C
92 MCNAPI void $setEula();
93
94 MCNAPI void $setPurchaseReceipt(
95 ::std::string const& receipt,
96 ::std::function<void(bool)> const& callback,
97 ::std::string const& messUserId
98 );
99
100 MCNAPI void $setSkin(::std::string const& newSkin);
101
102 MCNAPI void $signinForDemo(
103 ::std::function<
104 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
105 callback
106 );
107
108 MCNAPI void $signin(
109 ::std::function<
110 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
111 callback,
112 ::std::string const& delegationKey
113 );
114
115 MCNAPI void $sendInitialPackRequest(::std::function<void(::std::vector<::ServicePack>)> packReturnCallback);
116#endif
117
118
119 // NOLINTEND
120};
121
122} // namespace WebServices
Definition Request.h:15
Definition Response.h:7
Definition EnableQueueForMainThread.h:10
Definition Value.h:16
Definition ServicePack.h:13
Definition SigninError.h:7
Definition SigninResponse.h:7
Definition IEduWebService.h:16
Definition context.h:5
Definition Alias.h:14