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 : namespace shared_model {
9 : namespace proto {
10 :
11 : template <typename QueryType>
12 : GetAccountAssetTransactions::GetAccountAssetTransactions(QueryType &&query)
13 34 : : CopyableProto(std::forward<QueryType>(query)),
14 34 : account_asset_transactions_{
15 34 : proto_->payload().get_account_asset_transactions()} {}
16 :
17 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
18 : GetAccountAssetTransactions::TransportType &);
19 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
20 : const GetAccountAssetTransactions::TransportType &);
21 : template GetAccountAssetTransactions::GetAccountAssetTransactions(
22 : GetAccountAssetTransactions::TransportType &&);
23 :
24 : GetAccountAssetTransactions::GetAccountAssetTransactions(
25 : const GetAccountAssetTransactions &o)
26 0 : : GetAccountAssetTransactions(o.proto_) {}
27 :
28 : GetAccountAssetTransactions::GetAccountAssetTransactions(
29 : GetAccountAssetTransactions &&o) noexcept
30 34 : : GetAccountAssetTransactions(std::move(o.proto_)) {}
31 :
32 : const interface::types::AccountIdType &
33 : GetAccountAssetTransactions::accountId() const {
34 60 : return account_asset_transactions_.account_id();
35 : }
36 :
37 : const interface::types::AssetIdType &GetAccountAssetTransactions::assetId()
38 : const {
39 45 : return account_asset_transactions_.asset_id();
40 : }
41 :
42 : } // namespace proto
43 : } // namespace shared_model
|