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/commands/proto_set_quorum.hpp"
7 :
8 : namespace shared_model {
9 : namespace proto {
10 :
11 : template <typename CommandType>
12 : SetQuorum::SetQuorum(CommandType &&command)
13 9029 : : CopyableProto(std::forward<CommandType>(command)),
14 9051 : set_account_quorum_{proto_->set_account_quorum()} {}
15 :
16 : template SetQuorum::SetQuorum(SetQuorum::TransportType &);
17 : template SetQuorum::SetQuorum(const SetQuorum::TransportType &);
18 : template SetQuorum::SetQuorum(SetQuorum::TransportType &&);
19 :
20 : SetQuorum::SetQuorum(const SetQuorum &o) : SetQuorum(o.proto_) {}
21 :
22 : SetQuorum::SetQuorum(SetQuorum &&o) noexcept
23 9045 : : SetQuorum(std::move(o.proto_)) {}
24 :
25 : const interface::types::AccountIdType &SetQuorum::accountId() const {
26 308 : return set_account_quorum_.account_id();
27 : }
28 :
29 : interface::types::QuorumType SetQuorum::newQuorum() const {
30 308 : return set_account_quorum_.quorum();
31 : }
32 :
33 : } // namespace proto
34 : } // namespace shared_model
|