HaiBaoJuheNotification.h 2.53 KB
//
//  HaiBaoJuheNotification.h
//  public_i9133
//
//  Created by winFan on 12/1/15.
//  Copyright (c) 2015 winFan. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString * const HaiBaoJuheSDK_Notification;                 /**<   */
extern NSString * const _create_order_notification;                 /**<   */


/**
 应用支持的方向
 */
typedef NS_ENUM(int, HaiBaoJuheSDKNotificationType) {
    HaiBaoJuheSDKNotificationLogin = 1,//登录
    HaiBaoJuheSDKNotificationLogout,//注销
    HaiBaoJuheSDKNotificationGzyazf,//支付完成
    HaiBaoJuheSDKNotificationPause,//暂停退出
    HaiBaoJuheSDKNotificationRole,//创建角色
    HaiBaoJuheSDKNotificationInitSDK,//初始化SDK
    HaiBaoJuheSDKNotificationSwitchAccount,//切换账号
    HaiBaoJuheSDKNotificationExit//退出游戏
};



@interface HaiBaoJuheNotification : NSObject

@end


//////////////////////////////////////////////////////////////////////
@interface HaiBaoJuheSDKResult : NSObject
@property(nonatomic, assign)int statusCode;//请参照此文件下面状态标识
@property(nonatomic, strong)NSString *resultDescription;
@property(nonatomic, strong)NSObject *extendData;
//V1.2.0新增
@property(nonatomic, assign)HaiBaoJuheSDKNotificationType notiType;//消息类型
@property(nonatomic, strong)NSString *notiName;//消息名称
@end
//////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////
/*             状态标识          */
#define HaiBaoJuheSDK_NO_ERROR                   0           /*操作成功*/

#define HaiBaoJuheSDK_ERROR_LOGIN_FAILED         -100        /*登录失败*/
#define HaiBaoJuheSDK_ERROR_LOGIN_CANCEL         -101        /*登录取消*/
#define HaiBaoJuheSDK_ERROR_LOGIN_GAMGEACCOUNT   -102        /*游戏帐号登录,非平台账号*/

#define HaiBaoJuheSDK_ERROR_PAY_FAILED           -200        /*支付失败*/
#define HaiBaoJuheSDK_ERROR_PAY_CANCEL           -201        /*支付取消*/
#define HaiBaoJuheSDK_ERROR_PAY_VERSIGN          -202        /*支付验签失败*/
#define HaiBaoJuheSDK_ERROR_CREATE_ORDER_FAILED  -203        /*支付验签失败*/

#define HaiBaoJuheSDK_ERROR_ROLE_CREATE_FAILED   -300        /*角色创建失败*/

#define HaiBaoJuheSDK_ERROR_INIT_FAILED          -400        /*初始化失败*/

#define HaiBaoJuheSDK_ERROR_SWICHT_ACCOUNT_FAILED -500       /*切换账号失败*/

#define HaiBaoJuheSDK_ERROR_EXIT_CANCEL           -600       /*退出取消*/

//////////////////////////////////////////////////////////////////////