Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #include "interfaces/queries/blocks_query.hpp"
7 : #include "utils/string_builder.hpp"
8 :
9 : namespace shared_model {
10 : namespace interface {
11 :
12 : std::string BlocksQuery::toString() const {
13 0 : return detail::PrettyStringBuilder()
14 0 : .init("BlocksQuery")
15 0 : .append("creatorId", creatorAccountId())
16 0 : .append("queryCounter", std::to_string(queryCounter()))
17 0 : .append(Signable::toString())
18 0 : .finalize();
19 0 : }
20 :
21 : bool BlocksQuery::operator==(const ModelType &rhs) const {
22 1 : return creatorAccountId() == rhs.creatorAccountId()
23 1 : and queryCounter() == rhs.queryCounter()
24 1 : and createdTime() == rhs.createdTime()
25 1 : and signatures() == rhs.signatures();
26 0 : }
27 :
28 : } // namespace interface
29 : } // namespace shared_model
|