Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "backend/protobuf/queries/proto_get_account_asset_transactions.hpp"
7 :
8 : #include "backend/protobuf/queries/proto_tx_pagination_meta.hpp"
9 :
10 : namespace shared_model {
11 : namespace proto {
12 :
13 : template <typename QueryType>
14 : GetAccountAssetTransactions::GetAccountAssetTransactions(QueryType &&query)
15 42 : : CopyableProto(std::forward<QueryType>(query)),
16 42 : account_asset_transactions_{
17 42 : proto_->payload().get_account_asset_transactions()},
18 42 : pagination_meta_{account_asset_transactions_.pagination_meta()} {}
19 :
20 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
21 : GetAccountAssetTransactions::TransportType &);
22 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
23 : const GetAccountAssetTransactions::TransportType &);
24 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
25 : GetAccountAssetTransactions::TransportType &&);
26 :
27 : GetAccountAssetTransactions::GetAccountAssetTransactions(
28 : const GetAccountAssetTransactions &o)
29 0 : : GetAccountAssetTransactions(o.proto_) {}
30 :
31 : GetAccountAssetTransactions::GetAccountAssetTransactions(
32 : GetAccountAssetTransactions &&o) noexcept
33 42 : : GetAccountAssetTransactions(std::move(o.proto_)) {}
34 :
35 : const interface::types::AccountIdType &
36 : GetAccountAssetTransactions::accountId() const {
37 66 : return account_asset_transactions_.account_id();
38 : }
39 :
40 : const interface::types::AssetIdType &GetAccountAssetTransactions::assetId()
41 : const {
42 42 : return account_asset_transactions_.asset_id();
43 : }
44 :
45 : const interface::TxPaginationMeta &
46 : GetAccountAssetTransactions::paginationMeta() const {
47 62 : return pagination_meta_;
48 : }
49 :
50 : } // namespace proto
51 : } // namespace shared_model
|