hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
append_role.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_APPEND_ROLE_HPP
6 #define IROHA_APPEND_ROLE_HPP
7 
8 #include <string>
9 #include "model/command.hpp"
10 
11 namespace iroha {
12  namespace model {
13 
17  struct AppendRole : public Command {
21  std::string account_id;
25  std::string role_name;
26 
27  bool operator==(const Command &command) const override;
28 
30 
31  AppendRole(const std::string &account_id_, const std::string &role_name_)
32  : account_id(account_id_), role_name(role_name_) {}
33  };
34  } // namespace model
35 } // namespace iroha
36 #endif // IROHA_APPEND_ROLE_HPP
AppendRole()
Definition: append_role.hpp:29
AppendRole(const std::string &account_id_, const std::string &role_name_)
Definition: append_role.hpp:31
Definition: command.hpp:14
bool operator==(const Command &command) const override
Definition: model_operators.cpp:50
std::string account_id
Definition: append_role.hpp:21
Definition: append_role.hpp:17
std::string role_name
Definition: append_role.hpp:25
Definition: block_query.hpp:16