hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_detach_role.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_DETACH_ROLE_HPP
7 #define IROHA_PROTO_DETACH_ROLE_HPP
8 
10 
11 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15 
16  class DetachRole final : public interface::DetachRole {
17  public:
18  explicit DetachRole(iroha::protocol::Command &command);
19 
20  const interface::types::AccountIdType &accountId() const override;
21 
22  const interface::types::RoleIdType &roleName() const override;
23 
24  private:
25  const iroha::protocol::DetachRole &detach_role_;
26  };
27 
28  } // namespace proto
29 } // namespace shared_model
30 
31 #endif // IROHA_PROTO_DETACH_ROLE_HPP
Definition: detach_role.hpp:19
const interface::types::RoleIdType & roleName() const override
Definition: proto_detach_role.cpp:18
const interface::types::AccountIdType & accountId() const override
Definition: proto_detach_role.cpp:14
std::string AccountIdType
Type of account id.
Definition: types.hpp:39
Definition: proto_detach_role.hpp:16
DetachRole(iroha::protocol::Command &command)
Definition: proto_detach_role.cpp:11
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51