hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_account_asset_transactions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_GET_ACCOUNT_ASSET_TRANSACTIONS_H
7 #define IROHA_GET_ACCOUNT_ASSET_TRANSACTIONS_H
8 
12 #include "queries.pb.h"
13 
14 namespace shared_model {
15  namespace proto {
17  : public TrivialProto<interface::GetAccountAssetTransactions,
18  iroha::protocol::Query> {
19  public:
20  template <typename QueryType>
21  explicit GetAccountAssetTransactions(QueryType &&query);
22 
24 
26 
27  const interface::types::AccountIdType &accountId() const override;
28 
29  const interface::types::AssetIdType &assetId() const override;
30 
31  const interface::TxPaginationMeta &paginationMeta() const override;
32 
33  private:
34  // ------------------------------| fields |-------------------------------
35 
36  const iroha::protocol::GetAccountAssetTransactions
37  &account_asset_transactions_;
38  const TxPaginationMeta pagination_meta_;
39  };
40 
41  } // namespace proto
42 } // namespace shared_model
43 
44 #endif // IROHA_GET_ACCOUNT_ASSET_TRANSACTIONS_H
const interface::TxPaginationMeta & paginationMeta() const override
Get the query pagination metadata.
Definition: proto_get_account_asset_transactions.cpp:46
const interface::types::AccountIdType & accountId() const override
Definition: proto_get_account_asset_transactions.cpp:36
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
const interface::types::AssetIdType & assetId() const override
Definition: proto_get_account_asset_transactions.cpp:40
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
Definition: trivial_proto.hpp:19
GetAccountAssetTransactions(QueryType &&query)
Definition: proto_get_account_asset_transactions.cpp:14
Definition: command_executor.hpp:12
Definition: proto_get_account_asset_transactions.hpp:16
std::string AssetIdType
Type of asset id.
Definition: types.hpp:55