iFun Engine API  1.0.0-b6053
Great Technology for Great Games
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
 
enum  MissionPeriod { kMissionPeriodDaily = 0, kMissionPeriodWeekly = 1, kMissionPeriodMonthly = 2 }
 
enum  MissionType { kMissionTypeNormal = 0, kMissionTypeAchievement = 1 }
 

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)
 
static bool SetMissionCategory (const std::vector< std::string > &normal_mission_category, const std::vector< std::string > &achievement_mission_category)
 
static bool SetRealtimeNoticeCategory (const std::vector< std::string > &category)