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 <boost/optional.hpp>
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 boost::optional<types::AccountDetailKeyType> key() const = 0;
40 
44  virtual boost::optional<types::AccountIdType> writer() const = 0;
45 
47  virtual boost::optional<const AccountDetailPaginationMeta &>
48  paginationMeta() const = 0;
49 
50  std::string toString() const override;
51 
52  bool operator==(const ModelType &rhs) const override;
53  };
54  } // namespace interface
55 } // namespace shared_model
56 
57 #endif // IROHA_SHARED_MODEL_GET_ACCOUNT_DETAIL_HPP
virtual boost::optional< const AccountDetailPaginationMeta & > paginationMeta() const =0
Get the query pagination metadata.
virtual boost::optional< types::AccountIdType > writer() const =0
bool operator==(const ModelType &rhs) const override
Definition: get_account_detail.cpp:22
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: get_account_detail.hpp:29
virtual const types::AccountIdType & accountId() const =0
virtual boost::optional< types::AccountDetailKeyType > key() const =0
std::string toString() const override
Definition: get_account_detail.cpp:11
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12