Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
unsubscribe_runtime_version.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_API_STATE_REQUEST_UNSUBSCRIBERUNTIMEVERSION
7
#define KAGOME_API_STATE_REQUEST_UNSUBSCRIBERUNTIMEVERSION
8
9
#include "
api/service/base_request.hpp
"
10
11
#include "
api/service/state/state_api.hpp
"
12
13
namespace
kagome::api::state::request
{
14
15
struct
UnsubscribeRuntimeVersion
final
16
:
details::RequestType
<void, uint32_t> {
17
explicit
UnsubscribeRuntimeVersion
(std::shared_ptr<StateApi> &api)
18
:
api_
(api) {
19
BOOST_ASSERT(
api_
);
20
}
21
22
outcome::result<Return>
execute
()
override
{
23
return
api_
->unsubscribeRuntimeVersion(getParam<0>());
24
}
25
26
private
:
27
std::shared_ptr<StateApi>
api_
;
28
};
29
30
}
// namespace kagome::api::state::request
31
32
#endif // KAGOME_API_STATE_REQUEST_UNSUBSCRIBERUNTIMEVERSION
kagome::api::state::request
Definition:
call.cpp:10
kagome::api::state::request::UnsubscribeRuntimeVersion::UnsubscribeRuntimeVersion
UnsubscribeRuntimeVersion(std::shared_ptr< StateApi > &api)
Definition:
unsubscribe_runtime_version.hpp:17
kagome::api::details::RequestType
Definition:
base_request.hpp:32
base_request.hpp
kagome::api::state::request::UnsubscribeRuntimeVersion
Definition:
unsubscribe_runtime_version.hpp:15
state_api.hpp
kagome::api::state::request::UnsubscribeRuntimeVersion::api_
std::shared_ptr< StateApi > api_
Definition:
unsubscribe_runtime_version.hpp:27
kagome::api::state::request::UnsubscribeRuntimeVersion::execute
outcome::result< Return > execute() override
Definition:
unsubscribe_runtime_version.hpp:22
core
api
service
state
requests
unsubscribe_runtime_version.hpp
Generated by
1.8.11