hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
account_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_ACCOUNT_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_ACCOUNT_RESPONSE_HPP
8 
12 
13 namespace shared_model {
14  namespace interface {
18  class AccountResponse : public ModelPrimitive<AccountResponse> {
19  public:
21  using AccountRolesIdType = std::vector<types::RoleIdType>;
22 
26  virtual const Account &account() const = 0;
27 
31  virtual const AccountRolesIdType &roles() const = 0;
32 
33  std::string toString() const override;
34 
35  bool operator==(const ModelType &rhs) const override;
36  };
37  } // namespace interface
38 } // namespace shared_model
39 #endif // IROHA_SHARED_MODEL_ACCOUNT_RESPONSE_HPP
Definition: account.hpp:20
virtual const AccountRolesIdType & roles() const =0
std::string toString() const override
Definition: account_response.cpp:12
std::vector< types::RoleIdType > AccountRolesIdType
Collection of role_id types.
Definition: account_response.hpp:21
Definition: account_response.hpp:18
virtual const Account & account() const =0
bool operator==(const ModelType &rhs) const override
Definition: account_response.cpp:21
Definition: model_primitive.hpp:23
Definition: command_executor.hpp:12