LeviLamina
Loading...
Searching...
No Matches
IObserver.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8namespace JsonRpc { class JsonRpcError; }
9// clang-format on
10
11namespace JsonRpc {
12
13class IObserver {
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 virtual ~IObserver() = default;
18
19 virtual void onJsonRpcSent(::std::string_view method, ::std::string_view messageId) = 0;
20
21 virtual void onJsonRpcReceived(::std::string_view method, ::Json::Value const& messageId) = 0;
22
23 virtual void onJsonRpcResultAccepted(::std::string const& messageId) = 0;
24
25 virtual void onJsonRpcResultErrored(::std::string const& messageId, ::JsonRpc::JsonRpcError const& error) = 0;
26 // NOLINTEND
27};
28
29} // namespace JsonRpc
Definition IObserver.h:13
Definition JsonRpcError.h:7
Definition Value.h:16