hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
get_account_detail.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_GET_ACCOUNT_DETAIL_HPP
7 #define IROHA_SHARED_MODEL_GET_ACCOUNT_DETAIL_HPP
8 
9 #include <optional>
10 
14 
15 namespace shared_model {
16  namespace interface {
29  class GetAccountDetail : public ModelPrimitive<GetAccountDetail> {
30  public:
34  virtual const types::AccountIdType &accountId() const = 0;
35 
39  virtual std::optional<types::AccountDetailKeyType> key() const = 0;
40 
44  virtual std::optional<types::AccountIdType> writer() const = 0;
45 
47  virtual std::optional<
48  std::reference_wrapper<const AccountDetailPaginationMeta>>
49  paginationMeta() const = 0;
50 
51  std::string toString() const override;
52 
53  bool operator==(const ModelType &rhs) const override;
54  };
55  } // namespace interface
56 } // namespace shared_model
57 
58 #endif // IROHA_SHARED_MODEL_GET_ACCOUNT_DETAIL_HPP
virtual std::optional< types::AccountIdType > writer() const =0
GetAccountDetail ModelType
Definition: model_primitive.hpp:27
bool operator==(const ModelType &rhs) const override
Definition: get_account_detail.cpp:23
virtual std::optional< std::reference_wrapper< const AccountDetailPaginationMeta > > paginationMeta() const =0
Get the query pagination metadata.
virtual std::optional< types::AccountDetailKeyType > key() const =0
std::string AccountIdType
Type of account id.
Definition: types.hpp:38
Definition: get_account_detail.hpp:29
virtual const types::AccountIdType & accountId() const =0
std::string toString() const override
Definition: get_account_detail.cpp:13
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12