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

#import <Foundation/Foundation.h>

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


/**
 应用支持的方向
 */
typedef NS_ENUM(int, PoolSDKNotificationType) {
    PoolSDKNotificationLogin = 1,//登录
    PoolSDKNotificationLogout,//注销
    PoolSDKNotificationPay,//支付完成
    PoolSDKNotificationPause,//暂停退出
    PoolSDKNotificationRole,//创建角色
    PoolSDKNotificationInitSDK,//初始化SDK
    PoolSDKNotificationSwitchAccount,//切换账号
    PoolSDKNotificationExit//退出游戏
};



@interface PoolNotification : NSObject

@end


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

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

#define POOLSDK_ERROR_LOGIN_FAILED         -100        /*登录失败*/
#define POOLSDK_ERROR_LOGIN_CANCEL         -101        /*登录取消*/
#define POOLSDK_ERROR_LOGIN_GAMGEACCOUNT   -102        /*游戏帐号登录,非平台账号*/

#define POOLSDK_ERROR_PAY_FAILED           -200        /*支付失败*/
#define POOLSDK_ERROR_PAY_CANCEL           -201        /*支付取消*/
#define POOLSDK_ERROR_PAY_VERSIGN          -202        /*支付验签失败*/
#define POOLSDK_ERROR_CREATE_ORDER_FAILED  -203        /*支付验签失败*/

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

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

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

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

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