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 
10 
13 
14 namespace shared_model {
15  namespace interface {
19  class AccountResponse : public ModelPrimitive<AccountResponse> {
20  public:
22  using AccountRolesIdType = std::vector<types::RoleIdType>;
23 
27  virtual const Account &account() const = 0;
28 
32  virtual const AccountRolesIdType &roles() 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_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
AccountResponse ModelType
Definition: model_primitive.hpp:27
std::vector< types::RoleIdType > AccountRolesIdType
Collection of role_id types.
Definition: account_response.hpp:22
Definition: account_response.hpp:19
virtual const Account & account() const =0
bool operator==(const ModelType &rhs) const override
Definition: account_response.cpp:20
Definition: model_primitive.hpp:22
Definition: command_executor.hpp:12