hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
account_detail_record_id.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_RECORD_ID_HPP
7 #define IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_RECORD_ID_HPP
8 
9 #include <boost/optional.hpp>
12 
13 namespace shared_model {
14  namespace interface {
15 
17  class AccountDetailRecordId : public ModelPrimitive<AccountDetailRecordId> {
18  public:
20  virtual interface::types::AccountIdType writer() const = 0;
21 
23  virtual interface::types::AccountDetailKeyType key() const = 0;
24 
25  std::string toString() const override;
26 
27  bool operator==(const ModelType &rhs) const override;
28  };
29 
30  } // namespace interface
31 } // namespace shared_model
32 
33 #endif // IROHA_SHARED_INTERFACE_MODEL_QUERY_ACCOUNT_DETAIL_RECORD_ID_HPP
std::string toString() const override
Definition: account_detail_record_id.cpp:14
bool operator==(const ModelType &rhs) const override
Definition: account_detail_record_id.cpp:10
virtual interface::types::AccountIdType writer() const =0
Get the writer.
Provides query metadata for account detail list pagination.
Definition: account_detail_record_id.hpp:17
virtual interface::types::AccountDetailKeyType key() const =0
Get the key.
std::string AccountDetailKeyType
Type of account detail key.
Definition: types.hpp:76
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12