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

#include <betting_api_impl.hpp>

Public Member Functions

 impl (dba::db_accessor< betting_property_object > &betting_prop_dba, dba::db_accessor< game_object > &game_dba, dba::db_accessor< matched_bet_object > &matched_bet_dba, dba::db_accessor< pending_bet_object > &pending_bet_dba, uint32_t lookup_limit=LOOKUP_LIMIT)
 
std::vector< matched_bet_api_objectget_game_returns (const uuid_type &game_uuid) const
 
std::vector< winner_api_objectget_game_winners (const uuid_type &game_uuid) const
 
std::vector< game_api_objectget_games_by_status (const fc::flat_set< game_status > &filter) const
 
std::vector< game_api_objectget_games_by_uuids (const std::vector< uuid_type > &uuids) const
 
std::vector< game_api_objectlookup_games_by_id (game_id_type from, uint32_t limit) const
 
std::vector< matched_bet_api_objectlookup_matched_bets (matched_bet_id_type from, uint32_t limit) const
 
std::vector< pending_bet_api_objectlookup_pending_bets (pending_bet_id_type from, uint32_t limit) const
 
std::vector< matched_bet_api_objectget_matched_bets (const std::vector< uuid_type > &uuids) const
 
std::vector< pending_bet_api_objectget_pending_bets (const std::vector< uuid_type > &uuids) const
 
template<typename TApiObject , typename TObject , typename TId >
std::vector< TApiObject > get_bets (dba::db_accessor< TObject > &accessor, TId from, uint32_t limit) const
 
betting_property_api_object get_betting_properties () const
 
std::vector< matched_bet_api_objectget_game_matched_bets (const uuid_type &uuid) const
 
std::vector< pending_bet_api_objectget_game_pending_bets (const uuid_type &uuid) const
 

Detailed Description

Definition at line 30 of file betting_api_impl.hpp.

Constructor & Destructor Documentation

◆ impl()

scorum::app::betting_api::impl::impl ( dba::db_accessor< betting_property_object > &  betting_prop_dba,
dba::db_accessor< game_object > &  game_dba,
dba::db_accessor< matched_bet_object > &  matched_bet_dba,
dba::db_accessor< pending_bet_object > &  pending_bet_dba,
uint32_t  lookup_limit = LOOKUP_LIMIT 
)
inline

Definition at line 33 of file betting_api_impl.hpp.

Member Function Documentation

◆ get_bets()

template<typename TApiObject , typename TObject , typename TId >
std::vector<TApiObject> scorum::app::betting_api::impl::get_bets ( dba::db_accessor< TObject > &  accessor,
TId  from,
uint32_t  limit 
) const
inline

Definition at line 186 of file betting_api_impl.hpp.

◆ get_betting_properties()

betting_property_api_object scorum::app::betting_api::impl::get_betting_properties ( ) const
inline

Definition at line 204 of file betting_api_impl.hpp.

◆ get_game_matched_bets()

std::vector<matched_bet_api_object> scorum::app::betting_api::impl::get_game_matched_bets ( const uuid_type uuid) const
inline

Definition at line 209 of file betting_api_impl.hpp.

◆ get_game_pending_bets()

std::vector<pending_bet_api_object> scorum::app::betting_api::impl::get_game_pending_bets ( const uuid_type uuid) const
inline

Definition at line 223 of file betting_api_impl.hpp.

◆ get_game_returns()

std::vector<matched_bet_api_object> scorum::app::betting_api::impl::get_game_returns ( const uuid_type game_uuid) const
inline

Definition at line 45 of file betting_api_impl.hpp.

◆ get_game_winners()

std::vector<winner_api_object> scorum::app::betting_api::impl::get_game_winners ( const uuid_type game_uuid) const
inline

Definition at line 69 of file betting_api_impl.hpp.

◆ get_games_by_status()

std::vector<game_api_object> scorum::app::betting_api::impl::get_games_by_status ( const fc::flat_set< game_status > &  filter) const
inline

Definition at line 97 of file betting_api_impl.hpp.

◆ get_games_by_uuids()

std::vector<game_api_object> scorum::app::betting_api::impl::get_games_by_uuids ( const std::vector< uuid_type > &  uuids) const
inline

Definition at line 107 of file betting_api_impl.hpp.

◆ get_matched_bets()

std::vector<matched_bet_api_object> scorum::app::betting_api::impl::get_matched_bets ( const std::vector< uuid_type > &  uuids) const
inline

Definition at line 146 of file betting_api_impl.hpp.

◆ get_pending_bets()

std::vector<pending_bet_api_object> scorum::app::betting_api::impl::get_pending_bets ( const std::vector< uuid_type > &  uuids) const
inline

Definition at line 172 of file betting_api_impl.hpp.

◆ lookup_games_by_id()

std::vector<game_api_object> scorum::app::betting_api::impl::lookup_games_by_id ( game_id_type  from,
uint32_t  limit 
) const
inline

Definition at line 120 of file betting_api_impl.hpp.

◆ lookup_matched_bets()

std::vector<matched_bet_api_object> scorum::app::betting_api::impl::lookup_matched_bets ( matched_bet_id_type  from,
uint32_t  limit 
) const
inline

Definition at line 136 of file betting_api_impl.hpp.

◆ lookup_pending_bets()

std::vector<pending_bet_api_object> scorum::app::betting_api::impl::lookup_pending_bets ( pending_bet_id_type  from,
uint32_t  limit 
) const
inline

Definition at line 141 of file betting_api_impl.hpp.


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