hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_transactions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GET_ACCOUNT_TRANSACTIONS_H
7 #define IROHA_GET_ACCOUNT_TRANSACTIONS_H
8 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
17  : public CopyableProto<interface::GetAccountTransactions,
18  iroha::protocol::Query,
19  GetAccountTransactions> {
20  public:
21  template <typename QueryType>
22  explicit GetAccountTransactions(QueryType &&query);
23 
25 
27 
28  const interface::types::AccountIdType &accountId() const override;
29 
30  const interface::TxPaginationMeta &paginationMeta() const override;
31 
32  private:
33  // ------------------------------| fields |-------------------------------
34 
35  const iroha::protocol::GetAccountTransactions &account_transactions_;
36  const TxPaginationMeta pagination_meta_;
37  };
38 
39  } // namespace proto
40 } // namespace shared_model
41 
42 #endif // IROHA_GET_ACCOUNT_TRANSACTIONS_H
std::string AccountIdType
Type of account id.
Definition: types.hpp:37
const interface::TxPaginationMeta & paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_transactions.cpp:39
Provides query metadata for any transaction list pagination.
Definition: tx_pagination_meta.hpp:17
Provides query metadata for any transaction list pagination.
Definition: proto_tx_pagination_meta.hpp:18
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_transactions.cpp:34
GetAccountTransactions(QueryType &&query)
Definition: proto_get_account_transactions.cpp:14
Definition: command_executor.hpp:12
Definition: proto_get_account_transactions.hpp:16
Definition: trivial_proto.hpp:45