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 CopyableProto<interface::GetAccountAssetTransactions,
18  iroha::protocol::Query,
19  GetAccountAssetTransactions> {
20  public:
21  template <typename QueryType>
22  explicit GetAccountAssetTransactions(QueryType &&query);
23 
25 
27 
28  const interface::types::AccountIdType &accountId() const override;
29 
30  const interface::types::AssetIdType &assetId() const override;
31 
32  const interface::TxPaginationMeta &paginationMeta() const override;
33 
34  private:
35  // ------------------------------| fields |-------------------------------
36 
37  const iroha::protocol::GetAccountAssetTransactions
38  &account_asset_transactions_;
39  const TxPaginationMeta pagination_meta_;
40  };
41 
42  } // namespace proto
43 } // namespace shared_model
44 
45 #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:37
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
GetAccountAssetTransactions(QueryType &&query)
Definition: proto_get_account_asset_transactions.cpp:14
Definition: command_executor.hpp:12
Definition: proto_get_account_asset_transactions.hpp:16
Definition: trivial_proto.hpp:45
std::string AssetIdType
Type of asset id.
Definition: types.hpp:53