5 #define ADVERTISING_API_NAME "advertising_api"
58 std::unique_ptr<impl> _impl;
64 (get_moderator)(get_user_budgets)(get_budget)(get_current_winners)(get_auction_coefficients))
advertising_api(const api_context &ctx)
std::vector< budget_api_obj > get_current_winners(budget_type type) const
Get winners for particular budget type.
std::vector< budget_api_obj > get_user_budgets(const std::string &user) const
Get all advertising budgets which belong to provided user. Newer first.
fc::optional< budget_api_obj > get_budget(uuid_type uuid, budget_type type) const
Get advertising budget.
fc::optional< account_api_obj > get_moderator() const
Get Advertising budgets moderator if exists.
std::vector< percent_type > get_auction_coefficients(budget_type type) const
Get winners for particular budget type.
boost::uuids::uuid uuid_type