//
//  _53_framework_new.h
//  553_framework_new
//
//  Created by niko on 14-7-10.
//  Copyright (c) 2014年 niko. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol Platform_553Delegate;


@interface Platform_553 : NSObject
{
    id <Platform_553Delegate> delegate;
}


+(Platform_553 *)sharedInstance;
-(void)FCInit:(NSString *)appId appKey:(NSString *)appKey;
-(void)FCSetChannel:(NSString*)channel;
-(void)FCSetserverid:(NSString*)serverid androlename:(NSString*)rolename;
-(void)FCLogin;
-(void)FCRecharge:(NSString *)order itemName:(NSString *)itemName price:(float)price;
-(void)FCShowGameCenter;
-(void)showToolbar:(bool)bShow;
-(void)settoolbarpoint:(Point)point;
/**
 *打开账号绑定界面
 */
- (void)FCShowFuncellAccount;

//gamecenter
/**
 *显示排行榜界面
 *leaderboardID
 排行榜id，可以传空
 */
- (void)FCshowLeaderboard:(NSString*)leaderboardID;

/**
 *上传分数到排行榜
 *score
 上传的分数
 *identifier
 排行榜id
 */
- (void)FCreportScore:(int64_t)score forLeaderboardID:(NSString*)identifier;

/**
 *显示成就界面
 *achievementboardID
 成就id
 */
- (void)FCshowAchievementboard:(NSString*)achievementboardID;
/**
 *报告成就
 *identifier
 成就id
 *percent
 要报告的成就的进度
 */
- (void)FCreportAchievementIdentifier:(NSString*)identifier percentComplete:(float)percent;

- (BOOL)GetBindAccountFlag;

//日志统计
-(void)FCLogStasticLevelUp:(int)level;
-(void)FCLogStasticUserPay:(NSString *)price;

-(NSString *)getUserId;
-(NSString *)getToken;

//callback
-(void)FCRegisterCallback;
-(void)loginCallback:(NSString *)data;
-(void)onSwitchAccount:(NSString *)data;
-(void)pay;
-(void)rechargeCallbackData:(NSString *)order status:(NSString *)status;
-(void)switchAccountCallback;
-(void)gameCenterCloseCallback;
-(void)reLogin;
- (void)OnBBSBtn;
- (void)OnShowPopups;
- (void)OnBtnTermsCallback;

- (void)Sendpaylog;

@property (assign,nonatomic)id<Platform_553Delegate> delegate;

@end


@protocol Platform_553Delegate <NSObject>

@optional
- (void)platform_553:(Platform_553 *)platform operationSuccessData:(NSString *)data;//登陆注册成功返回数据（json格式）
- (void)platform_553:(Platform_553 *)platform loginCallback:(NSString *)data;   //登录退出
- (void)platform_553:(Platform_553 *)platform onSwitchAccount:(NSString *)data; //切换账号回调
- (void)platform_553:(Platform_553 *)platform rechargeCallbackData:(NSString *)order status:(NSString *)status;//充值返回数据（json格式）
-(void)switchAccountCallback;
-(void)gameCenterCloseCallback;
-(void)reLogin;
-(void)pay;
-(void)FCRegisterCallback;
- (void)FCBBSbtnCallback;
- (void)FCShowPopupsbtnCallback;
- (void)FCBtnTermsCallback;
@end
