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 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
16  class GetAccountDetail final
17  : public TrivialProto<interface::GetAccountDetail,
18  iroha::protocol::Query> {
19  public:
20  template <typename QueryType>
21  explicit GetAccountDetail(QueryType &&query);
22 
24 
25  GetAccountDetail(GetAccountDetail &&o) noexcept;
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  boost::optional<interface::types::AccountDetailKeyType> key()
30  const override;
31 
32  boost::optional<interface::types::AccountIdType> writer() const override;
33 
34  boost::optional<const interface::AccountDetailPaginationMeta &>
35  paginationMeta() const override;
36 
37  private:
38  // ------------------------------| fields |-------------------------------
39 
40  const iroha::protocol::GetAccountDetail &account_detail_;
41  const boost::optional<const AccountDetailPaginationMeta> pagination_meta_;
42  };
43  } // namespace proto
44 } // namespace shared_model
45 
46 #endif // IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
boost::optional< interface::types::AccountIdType > writer() const override
Definition: proto_get_account_detail.cpp:51
boost::optional< const interface::AccountDetailPaginationMeta & > paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_detail.cpp:59
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_detail.cpp:38
GetAccountDetail(QueryType &&query)
Definition: proto_get_account_detail.cpp:12
boost::optional< interface::types::AccountDetailKeyType > key() const override
Definition: proto_get_account_detail.cpp:45
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
Definition: proto_get_account_detail.hpp:16