Scorum
decline_voting_rights_request.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace scorum {
7 namespace chain {
8 
9 struct decline_voting_rights_request_service_i : public base_service_i<decline_voting_rights_request_object>
10 {
13 
14  virtual const decline_voting_rights_request_object& get(const account_id_type& account_id) const = 0;
15 
16  virtual bool is_exists(const account_id_type& account_id) const = 0;
17 
19  const fc::microseconds& time_to_life)
20  = 0;
21 
22  virtual void remove(const decline_voting_rights_request_object& request) = 0;
23 };
24 
25 class dbs_decline_voting_rights_request : public dbs_service_base<decline_voting_rights_request_service_i>
26 {
27  friend class dbservice_dbs_factory;
28 
29 protected:
31 
32 public:
35 
36  const decline_voting_rights_request_object& get(const account_id_type& account_id) const override;
37 
38  bool is_exists(const account_id_type& account_id) const override;
39 
41  const fc::microseconds& time_to_life) override;
42 
43 private:
45 };
46 } // namespace chain
47 } // namespace scorum
tracks the blockchain state in an extensible manner
Definition: database.hpp:52
const decline_voting_rights_request_object & create_rights(const account_id_type &account, const fc::microseconds &time_to_life) override
Definition: asset.cpp:15
virtual const decline_voting_rights_request_object & create_rights(const account_id_type &account, const fc::microseconds &time_to_life)=0
virtual void remove(const decline_voting_rights_request_object &request)=0
virtual bool is_exists(const account_id_type &account_id) const =0
virtual const decline_voting_rights_request_object & get(const account_id_type &account_id) const =0