hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
account_detail_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_ACCOUNT_DETAIL_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_ACCOUNT_DETAIL_RESPONSE_HPP
8 
10 
11 #include <optional>
14 
15 namespace shared_model {
16  namespace interface {
20  class AccountDetailResponse : public ModelPrimitive<AccountDetailResponse> {
21  public:
25  virtual const types::DetailType &detail() const = 0;
26 
28  virtual size_t totalNumber() const = 0;
29 
31  virtual std::optional<std::reference_wrapper<const AccountDetailRecordId>>
32  nextRecordId() const = 0;
33 
34  std::string toString() const override;
35 
36  bool operator==(const ModelType &rhs) const override;
37  };
38  } // namespace interface
39 } // namespace shared_model
40 #endif // IROHA_ACCOUNT_DETAIL_RESPONSE_HPP
bool operator==(const ModelType &rhs) const override
Definition: account_detail_response.cpp:22
AccountDetailResponse ModelType
Definition: model_primitive.hpp:27
std::string DetailType
Type of detail.
Definition: types.hpp:75
Definition: account_detail_response.hpp:20
std::string toString() const override
Definition: account_detail_response.cpp:12
Definition: model_primitive.hpp:22
virtual std::optional< std::reference_wrapper< const AccountDetailRecordId > > nextRecordId() const =0
Definition: command_executor.hpp:12
virtual const types::DetailType & detail() const =0