LeviLamina
Loading...
Searching...
No Matches
MessageTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ESessionError.h"
7#include "mc/deps/nether_net/NetworkID.h"
8#include "mc/network/services/signaling/MessagePerformance.h"
9#include "mc/network/services/signaling/player_messaging/NetworkID.h"
10
11// auto generated forward declare list
12// clang-format off
15namespace JsonRpc { class JsonRpcError; }
16namespace mce { class UUID; }
17// clang-format on
18
19class MessageTracker {
20public:
21 // MessageTracker inner types declare
22 // clang-format off
23 struct Destination;
24 struct MessageStatus;
25 // clang-format on
26
27 // MessageTracker inner types define
28 struct Destination : public ::std::variant<::NetherNet::NetworkID, ::PlayerMessaging::NetworkID> {};
29
30 struct MessageStatus {
31 public:
32 // member variables
33 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 MessageStatus& operator=(MessageStatus const&);
44 MessageStatus(MessageStatus const&);
45 MessageStatus();
46 };
47
48public:
49 // member variables
50 // NOLINTBEGIN
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 MessageTracker& operator=(MessageTracker const&);
63 MessageTracker(MessageTracker const&);
64 MessageTracker();
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCNAPI explicit MessageTracker(::gsl::not_null<::std::shared_ptr<::ISignalingServiceTelemetry>> telemetry);
70
71 MCNAPI ::std::vector<::MessagePerformance> _clear();
72
73 MCNAPI void _complete(
74 ::NetherNet::ESessionError result,
75 ::mce::UUID key,
77 ::MessagePerformance::Status status
78 );
79
81
82 MCNAPI void _tryGetValue(
83 ::std::string const& messageId,
84 ::std::function<void(::mce::UUID, ::MessageTracker::MessageStatus&&)>&& fn
85 );
86
87 MCNAPI void
88 add(::std::string const& messageId, ::std::function<void(::NetherNet::ESessionError)>&& onComplete, bool isP2P);
89
90 MCNAPI void messageAccepted(::std::string const& messageId);
91
92 MCNAPI void messageDelivered(::std::string const& messageId);
93
94 MCNAPI void messageError(::std::string const& messageId, ::JsonRpc::JsonRpcError const& error);
95
96 MCNAPI void messageError(::std::string const& messageId, ::NetherNet::ESessionError error);
97
98 MCNAPI void messageSent(
99 ::std::optional<::MessageTracker::Destination> to,
100 ::std::string const& message,
101 ::std::string const& messageId,
102 ::std::error_code error
103 );
104
105 MCNAPI bool queryAndUpdateIsMessageIgnored(::std::string const& messageId);
106
108 // NOLINTEND
109
110public:
111 // constructor thunks
112 // NOLINTBEGIN
113 MCNAPI void* $ctor(::gsl::not_null<::std::shared_ptr<::ISignalingServiceTelemetry>> telemetry);
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCNAPI void $dtor();
120 // NOLINTEND
121};
Definition ISignalingServiceTelemetry.h:14
Definition JsonRpcError.h:12
Definition MessagePerformance.h:5
MCAPI void messageAccepted(::std::string const &messageId)
MCAPI ::std::vector<::MessagePerformance > _clear()
MCAPI void messageError(::std::string const &messageId, ::JsonRpc::JsonRpcError const &error)
MCAPI ~MessageTracker()
MCAPI void messageError(::std::string const &messageId, ::NetherNet::ESessionError error)
MCAPI void messageDelivered(::std::string const &messageId)
MCAPI void messageSent(::std::optional<::MessageTracker::Destination > to, ::std::string const &message, ::std::string const &messageId, ::std::error_code error)
MCAPI void _complete(::NetherNet::ESessionError result, ::mce::UUID key, ::MessageTracker::MessageStatus &&value, ::MessagePerformance::Status status)
MCAPI MessageTracker(::gsl::not_null<::std::shared_ptr<::ISignalingServiceTelemetry > > telemetry)
MCAPI bool queryAndUpdateIsMessageIgnored(::std::string const &messageId)
MCAPI void _tryGetValue(::std::string const &messageId, ::std::function< void(::mce::UUID, ::MessageTracker::MessageStatus &&)> &&fn)
MCAPI void add(::std::string const &messageId, ::std::function< void(::NetherNet::ESessionError)> &&onComplete, bool isP2P)
MCAPI void $dtor()
MCAPI void * $ctor(::gsl::not_null<::std::shared_ptr<::ISignalingServiceTelemetry > > telemetry)
MCAPI void _continueTracking(::mce::UUID key, ::MessageTracker::MessageStatus &&value)
Definition UUID.h:7
Definition MessageTracker.h:28
Definition MessageTracker.h:30
Definition Alias.h:14