iFun Engine API  1.0.0-b3630
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
fun::DeployApiService Class Reference
Inheritance diagram for fun::DeployApiService:

Classes

struct  Campaign
 
struct  CampaignArgument
 
struct  CampaignRewardSchema
 
struct  DeployApiHandlerBase
 
struct  ExtraData
 Defines extra data for custom query. More...
 
struct  PageInfo
 

Public Types

typedef boost::function< bool(const
Campaign &, const std::string
&, const std::string &, const
CampaignArgument &)> 
BeginCampaignCallback
 
typedef boost::function< bool(const
Campaign &campaign_type, const
std::string &type, const
std::string &id)> 
CancelCampaignCallback
 
typedef boost::function< void(const
PageInfo &, const fun::Json
&, Ptr< JsonResponseWriter > &)> 
CustomApiHandler
 Custom query handlers for iFunDeploy {.
 
typedef boost::function< bool(const
Campaign &, const std::string
&, const std::string &)> 
EndCampaignCallback
 

Public Member Functions

template<typename T >
void RegisterDeployApiHandler (boost::shared_ptr< T > handler)
 

Static Public Member Functions

static void RegisterBeginCampaignCallback (const BeginCampaignCallback &cb)
 
static bool RegisterCampaignType (const std::string &campaign_id, const Campaign &campaign)
 
static void RegisterCancelCampaignCallback (const CancelCampaignCallback &cb)
 
static void RegisterCustomQueryHandler (const std::string &name, const http::Method &method, const std::string &uri, const std::vector< std::string > &request_fields, const std::vector< std::string > &response_fields, const CustomApiHandler &handler, const Ptr< ExtraData > &extra_data)
 
static void RegisterCustomQueryHandler (const std::string &name, const http::Method &method, const std::string &uri, const std::vector< std::string > &request_fields, const std::vector< std::string > &response_fields, const CustomApiHandler &handler, const fun::Json &extra_data=fun::Json())
 
template<typename T >
static void RegisterDeployApiHandler (boost::shared_ptr< T > handler)
 
static void RegisterEndCampaignCallback (const EndCampaignCallback &cb)
 
static bool SetEditableFieldsForCharacter (const std::vector< std::string > &field_list)
 
static bool SetEditableFieldsForUser (const std::vector< std::string > &field_list)
 
static bool SetGiftableItems (const std::vector< std::pair< std::string, std::string > > &item_list)