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(
29 ::std::string const& receipt,
30 ::std::function<void(bool)> const& callback,
31 ::std::string const& anonimizedOId
32 ) = 0;
33
34 virtual void setSkin(::std::string const& newSkin) = 0;
35
36 virtual void signinForDemo(
37 ::std::function<
38 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
39 callback
40 ) = 0;
41
42 virtual void signin(
43 ::std::function<
44 void(::std::variant<::WebServices::EduSignin::SigninResponse, ::WebServices::EduSignin::SigninError>)>
45 callback,
46 ::std::string const& delegationKey
47 ) = 0;
48
49 virtual void sendInitialPackRequest(::std::function<void(::std::vector<::ServicePack>)> packReturnCallback) = 0;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55#ifdef LL_PLAT_C
56 MCNAPI static void commonSigninBody(::Json::Value& body, ::std::string const& appSessionId);
57
58 MCNAPI static void setupDemoIdentity(::Json::Value& body);
59#endif
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
80
81} // 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()