LeviLamina
Loading...
Searching...
No Matches
ISignalingJsonRpcInterop.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/nether_net/ESessionError.h"
8#include "mc/platform/ErrorInfo.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13class MessageTracker;
14namespace Json { class Value; }
15namespace NetherNet { struct NetworkID; }
16namespace NetherNet { struct StunRelayServer; }
17namespace PlayerMessaging { struct NetworkID; }
18// clang-format on
19
21public:
22 // virtual functions
23 // NOLINTBEGIN
24 virtual ~ISignalingJsonRpcInterop() = default;
25
26 virtual ::Bedrock::Threading::Async<::Bedrock::Result<void, ::NetherNet::ESessionError>>
27 sendJsonRpcTo(::PlayerMessaging::NetworkID, ::std::optional<::std::string> const&, ::std::string const&) const = 0;
28
29 virtual ::Bedrock::Threading::Async<::Bedrock::Result<void, ::NetherNet::ESessionError>>
30 sendJsonRpc(::std::string const&) const = 0;
31
32 virtual ::std::shared_ptr<::MessageTracker> getMessageTracker() = 0;
33
34 virtual void parseSignal(::NetherNet::NetworkID, ::std::string, ::std::string) = 0;
35
36 virtual void parseTurnConfig(::Json::Value const&) = 0;
37
38 virtual void
39 setTurnConfig(::std::vector<::NetherNet::StunRelayServer>&&, ::std::chrono::steady_clock::time_point) = 0;
40
41 virtual void onTurnConfigFailure(::Bedrock::ErrorInfo<::NetherNet::ESessionError> const&) = 0;
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47
48 // NOLINTEND
49};
Definition ISignalingJsonRpcInterop.h:20
Definition Value.h:16
Definition MessageTracker.h:18
Definition ErrorInfo.h:9
Definition NetworkID.h:17
Definition StunRelayServer.h:7
Definition NetworkID.h:12