LeviLamina
Loading...
Searching...
No Matches
IEduWebService.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7struct EDUConfigData;
8struct ServicePack;
9namespace Json { class Value; }
10namespace WebServices::EduSignin { struct SigninError; }
11namespace WebServices::EduSignin { struct SigninResponse; }
12// clang-format on
13
14namespace WebServices {
15
17public:
18 // virtual functions
19 // NOLINTBEGIN
20#ifdef LL_PLAT_S
21 virtual ~IEduWebService() = default;
22#else // LL_PLAT_C
23 virtual ~IEduWebService();
24#endif
25
26 virtual void setEula() = 0;
27
28 virtual void setPurchaseReceipt(::std::string const&, ::std::function<void(bool)> const&, ::std::string const&) = 0;
29
30 virtual void setSkin(::std::string const&) = 0;
31
32 virtual void signinForDemo(
33 ::std::function<
34 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
35 ) = 0;
36
37 virtual void signin(
38 ::std::function<
39 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>,
40 ::std::string const&
41 ) = 0;
42
43 virtual void sendInitialPackRequest(::std::function<void(::std::vector<::ServicePack>)>) = 0;
44 // NOLINTEND
45
46public:
47 // static functions
48 // NOLINTBEGIN
49 MCNAPI_C static void commonSigninBody(::Json::Value& body, ::std::string const& appSessionId);
50
51 MCNAPI_C static void setupDemoIdentity(::Json::Value& body);
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCNAPI void $dtor();
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
72
73} // namespace WebServices
Definition Value.h:16
Definition EDUConfigData.h:15
Definition ServicePack.h:13
Definition SigninError.h:7
Definition SigninResponse.h:7
Definition IEduWebService.h:16
static MCAPI void ** $vftable()