LeviLamina
Loading...
Searching...
No Matches
PartyChatJsonRpcComponent.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/pub_sub/Connector.h"
8#include "mc/network/services/signaling/IJsonRpcComponent.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace JsonRpc { class JsonRpcProvider; }
13namespace JsonRpc { struct ReceiveChatResult; }
14// clang-format on
15
16namespace JsonRpc {
17
18class PartyChatJsonRpcComponent : public ::IJsonRpcComponent {
19public:
20 // member variables
21 // NOLINTBEGIN
27 // NOLINTEND
28
29#ifdef LL_PLAT_S
30public:
31 // prevent constructor by default
32 PartyChatJsonRpcComponent& operator=(PartyChatJsonRpcComponent const&);
33 PartyChatJsonRpcComponent(PartyChatJsonRpcComponent const&);
34 PartyChatJsonRpcComponent();
35
36#else // LL_PLAT_C
37public:
38 // prevent constructor by default
39 PartyChatJsonRpcComponent& operator=(PartyChatJsonRpcComponent const&);
40 PartyChatJsonRpcComponent(PartyChatJsonRpcComponent const&);
41
42#endif
43public:
44 // virtual functions
45 // NOLINTBEGIN
46#ifdef LL_PLAT_S
47 virtual ~PartyChatJsonRpcComponent() /*override*/ = default;
48#else // LL_PLAT_C
49 virtual ~PartyChatJsonRpcComponent() /*override*/;
50#endif
51
52#ifdef LL_PLAT_S
53 virtual void initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider>) /*override*/;
54#else // LL_PLAT_C
55 virtual void initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider) /*override*/;
56#endif
57
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63#ifdef LL_PLAT_C
64 MCNAPI PartyChatJsonRpcComponent();
65
66 MCNAPI void _registerReceiveMessageHandler();
67
68 MCNAPI ::Bedrock::PubSub::Connector<void(::JsonRpc::ReceiveChatResult const&)>& getReceiveChatConnector();
69
70 MCNAPI ::Bedrock::Threading::Async<::std::error_code> joinChannel(::std::string const& partyId);
71
72 MCNAPI ::Bedrock::Threading::Async<::std::error_code>
73 leaveChannel(::std::string const& partyId, ::std::string const& xuid);
74
75 MCNAPI void sendMessage(::std::string const& partyId, ::std::string const& message);
76#endif
77 // NOLINTEND
78
79public:
80 // constructor thunks
81 // NOLINTBEGIN
82#ifdef LL_PLAT_C
83 MCNAPI void* $ctor();
84#endif
85 // NOLINTEND
86
87public:
88 // destructor thunk
89 // NOLINTBEGIN
90 MCNAPI void $dtor();
91 // NOLINTEND
92
93public:
94 // virtual function thunks
95 // NOLINTBEGIN
96#ifdef LL_PLAT_C
97 MCNAPI void $initialize(::std::shared_ptr<::JsonRpc::JsonRpcProvider> provider);
98#endif
99
100
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
109
110} // namespace JsonRpc
Definition IJsonRpcComponent.h:10
Definition JsonRpcProvider.h:20
static MCAPI void ** $vftable()
Definition ReceiveChatResult.h:12
Definition Alias.h:14