Line data Source code
1 : #pragma once
2 :
3 : #include <hash/ihash.hpp>
4 : #include <hash/api/get_hash_json.hpp>
5 : #include <wfc/jsonrpc.hpp>
6 :
7 :
8 : namespace demo{ namespace hash{
9 :
10 0 : JSONRPC_TAG(get_hash)
11 :
12 0 : struct gateway_method_list: wfc::jsonrpc::method_list
13 : <
14 : wfc::jsonrpc::interface_<ihash>,
15 : wfc::jsonrpc::call_method< _get_hash_, request::get_hash_json, response::get_hash_json>
16 : >
17 : {};
18 :
19 : template<typename Base>
20 0 : class hash_interface
21 : : public Base
22 : {
23 : public:
24 0 : virtual void get_hash(request::get_hash::ptr req, response::get_hash::handler cb ) override
25 : {
26 0 : this->template call< _get_hash_ >( std::move(req), cb, nullptr);
27 0 : }
28 : };
29 :
30 : }}
|