Scorum
Public Member Functions | Public Attributes | List of all members
scorum::app::advertising_api::impl Class Reference

#include <advertising_api.hpp>

Public Member Functions

 impl (chain::database &db, chain::data_service_factory_i &services)
 
fc::optional< account_api_objget_moderator () const
 
std::vector< budget_api_objget_user_budgets (const std::string &user) const
 
fc::optional< budget_api_objget_budget (const uuid_type &uuid, budget_type type) const
 
std::vector< budget_api_objget_current_winners (budget_type type) const
 
std::vector< percent_typeget_auction_coefficients (budget_type type) const
 

Public Attributes

chain::database_db
 
chain::data_service_factory_i & _services
 
chain::advertising_property_service_i_adv_service
 
chain::account_service_i_account_service
 
chain::banner_budget_service_i_banner_budget_service
 
chain::post_budget_service_i_post_budget_service
 
chain::dynamic_global_property_service_i_dyn_props_service
 

Detailed Description

Definition at line 14 of file advertising_api.hpp.

Constructor & Destructor Documentation

◆ impl()

scorum::app::advertising_api::impl::impl ( chain::database db,
chain::data_service_factory_i &  services 
)
inline

Definition at line 17 of file advertising_api.hpp.

Member Function Documentation

◆ get_auction_coefficients()

std::vector<percent_type> scorum::app::advertising_api::impl::get_auction_coefficients ( budget_type  type) const
inline

Definition at line 85 of file advertising_api.hpp.

◆ get_budget()

fc::optional<budget_api_obj> scorum::app::advertising_api::impl::get_budget ( const uuid_type uuid,
budget_type  type 
) const
inline

Definition at line 57 of file advertising_api.hpp.

◆ get_current_winners()

std::vector<budget_api_obj> scorum::app::advertising_api::impl::get_current_winners ( budget_type  type) const
inline

Definition at line 71 of file advertising_api.hpp.

◆ get_moderator()

fc::optional<account_api_obj> scorum::app::advertising_api::impl::get_moderator ( ) const
inline

Definition at line 28 of file advertising_api.hpp.

◆ get_user_budgets()

std::vector<budget_api_obj> scorum::app::advertising_api::impl::get_user_budgets ( const std::string &  user) const
inline

Definition at line 39 of file advertising_api.hpp.

Member Data Documentation

◆ _account_service

chain::account_service_i& scorum::app::advertising_api::impl::_account_service

Definition at line 138 of file advertising_api.hpp.

◆ _adv_service

chain::advertising_property_service_i& scorum::app::advertising_api::impl::_adv_service

Definition at line 137 of file advertising_api.hpp.

◆ _banner_budget_service

chain::banner_budget_service_i& scorum::app::advertising_api::impl::_banner_budget_service

Definition at line 139 of file advertising_api.hpp.

◆ _db

chain::database& scorum::app::advertising_api::impl::_db

Definition at line 134 of file advertising_api.hpp.

◆ _dyn_props_service

chain::dynamic_global_property_service_i& scorum::app::advertising_api::impl::_dyn_props_service

Definition at line 141 of file advertising_api.hpp.

◆ _post_budget_service

chain::post_budget_service_i& scorum::app::advertising_api::impl::_post_budget_service

Definition at line 140 of file advertising_api.hpp.

◆ _services

chain::data_service_factory_i& scorum::app::advertising_api::impl::_services

Definition at line 136 of file advertising_api.hpp.


The documentation for this class was generated from the following file: