HaiBaoJuheNotification.h
2.53 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
//
// 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 /*退出取消*/
//////////////////////////////////////////////////////////////////////