hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_detail.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
7 #define IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
8 
10 
11 #include <boost/optional.hpp>
13 #include "queries.pb.h"
14 
15 namespace shared_model {
16  namespace proto {
18  public:
20 
21  const interface::types::AccountIdType &accountId() const override;
22 
23  boost::optional<interface::types::AccountDetailKeyType> key()
24  const override;
25 
26  boost::optional<interface::types::AccountIdType> writer() const override;
27 
28  boost::optional<const interface::AccountDetailPaginationMeta &>
29  paginationMeta() const override;
30 
31  private:
32  // ------------------------------| fields |-------------------------------
33 
34  const iroha::protocol::Query &query_;
35  const iroha::protocol::GetAccountDetail &account_detail_;
36  const boost::optional<const AccountDetailPaginationMeta> pagination_meta_;
37  };
38  } // namespace proto
39 } // namespace shared_model
40 
41 #endif // IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
boost::optional< interface::types::AccountIdType > writer() const override
Definition: proto_get_account_detail.cpp:37
boost::optional< const interface::AccountDetailPaginationMeta & > paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_detail.cpp:45
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_detail.cpp:24
Definition: get_account_detail.hpp:29
boost::optional< interface::types::AccountDetailKeyType > key() const override
Definition: proto_get_account_detail.cpp:31
GetAccountDetail(iroha::protocol::Query &query)
Definition: proto_get_account_detail.cpp:11
Definition: command_executor.hpp:12
Definition: proto_get_account_detail.hpp:17