LeviLamina
Loading...
Searching...
No Matches
ConnectionRequest.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/edu/Role.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/deps/input/InputMode.h"
9#include "mc/network/BaseConnectionRequest.h"
10#include "mc/network/EditorConnectionJoinIntent.h"
11#include "mc/platform/Result.h"
12
13// auto generated forward declare list
14// clang-format off
15class AppPlatform;
16class ILevel;
17class WebToken;
20struct PlayerPartyInfo;
22namespace Json { class Value; }
23namespace Social { struct Nonce; }
24// clang-format on
25
26class ConnectionRequest : public ::BaseConnectionRequest {
27public:
28 // prevent constructor by default
29 ConnectionRequest();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~ConnectionRequest() /*override*/;
35
36 virtual bool _isAuthTypeWellFormed() const /*override*/;
37 // NOLINTEND
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCAPI ConnectionRequest(::std::optional<::WebToken> rawToken, ::Json::Value const& authentication);
43
44 MCAPI bool clientIsEditorCapable() const;
45
46 MCAPI ::EditorConnectionJoinIntent getClientEditorConnectionIntent() const;
47
48 MCAPI ::std::string getDeviceModel() const;
49
50 MCAPI ::std::string getEduJoinerToHostNonce() const;
51
52 MCAPI ::std::string getEduSessionToken() const;
53
54 MCAPI ::std::string getEduTokenChain() const;
55
56 MCAPI ::std::optional<::PlayerPartyInfo> getPartyInfo() const;
57
58 MCAPI bool isEduMode() const;
59
60 MCAPI ::Bedrock::Result<::EditorConnectionJoinIntent>
61 validateEditorConnectionJoinIntentAgainstServerPolicy(::gsl::not_null<::ILevel*> level) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67#ifdef LL_PLAT_C
68 MCAPI static ::ConnectionRequest create(
70 ::ConnectionAuthInfo const& authInfo,
71 ::std::string const& selfSignedId,
72 ::std::string const& serverAddress,
73 uint64 clientRandomId,
74 ::ConnectionSkinInfo const& skinInfo,
75 ::std::string const& deviceId,
76 ::InputMode currentInputMode,
77 int guiScale,
78 ::std::string const& languageCode,
79 bool clientIsEditorCapable,
80 ::EditorConnectionJoinIntent clientEditorConnectionIntent,
81 bool isEduMode,
82 ::std::optional<::WebToken> eduTokenChain,
83 ::std::string eduSessionToken,
84 ::std::string eduJoinerToHostNonce,
85 ::edu::Role classRole,
86 ::std::string const& platformId,
87 ::std::string const& thirdPartyName,
88 ::std::string const& platformOnlineId,
89 ::std::string const& platformOfflineId,
90 ::std::optional<::PlayerPartyInfo> const& partyInfo,
91 bool compatibleWithClientSideChunkGen,
92 ::SyncedClientOptionsComponent const& options,
93 ::std::optional<::Social::Nonce> const& nonce
94 );
95#endif
96
97 MCAPI static ::ConnectionRequest fromString(::std::string const& str);
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCAPI void* $ctor(::std::optional<::WebToken> rawToken, ::Json::Value const& authentication);
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCAPI void $dtor();
110 // NOLINTEND
111
112public:
113 // virtual function thunks
114 // NOLINTBEGIN
115 MCAPI bool $_isAuthTypeWellFormed() const;
116
117
118 // NOLINTEND
119
120public:
121 // vftables
122 // NOLINTBEGIN
123 MCNAPI static void** $vftable();
124 // NOLINTEND
125};
Definition AppPlatform.h:78
Definition NonOwnerPointer.h:9
static MCAPI void ** $vftable()
Definition ILevel.h:221
Definition Value.h:16
Definition WebToken.h:17
Definition ConnectionAuthInfo.h:14
Definition ConnectionSkinInfo.h:5
Definition PlayerPartyInfo.h:5
Definition Nonce.h:10
Definition SyncedClientOptionsComponent.h:10