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_signatories.hpp"
7 :
8 : namespace shared_model {
9 : namespace proto {
10 :
11 : template <typename QueryType>
12 : GetSignatories::GetSignatories(QueryType &&query)
13 44 : : CopyableProto(std::forward<QueryType>(query)),
14 44 : account_signatories_{proto_->payload().get_signatories()} {}
15 :
16 : template GetSignatories::GetSignatories(GetSignatories::TransportType &);
17 : template GetSignatories::GetSignatories(
18 : const GetSignatories::TransportType &);
19 : template GetSignatories::GetSignatories(GetSignatories::TransportType &&);
20 :
21 : GetSignatories::GetSignatories(const GetSignatories &o)
22 0 : : GetSignatories(o.proto_) {}
23 :
24 : GetSignatories::GetSignatories(GetSignatories &&o) noexcept
25 44 : : GetSignatories(std::move(o.proto_)) {}
26 :
27 : const interface::types::AccountIdType &GetSignatories::accountId() const {
28 79 : return account_signatories_.account_id();
29 : }
30 :
31 : } // namespace proto
32 : } // namespace shared_model
|