PoolNotification.h
2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// 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,//注销
PoolSDKNotificationGzyazf,//支付完成
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 /*退出取消*/
//////////////////////////////////////////////////////////////////////