lizhihui

delete

Showing 27 changed files with 0 additions and 964 deletions
//
// PGLogger.h
// PanguCommonLib
//
// Created by ouyanghua on 14-2-22.
// Copyright (c) 2014年 pangu. All rights reserved.
//
#import <Foundation/Foundation.h>
void DGLog(NSString *fmt, ...);
typedef NS_ENUM(NSInteger, DGLoggerLevel)
{
ELogVerbose = 1,
ELogDebug,
ELogInfo,
ELogWarn,
ELogError
};
@interface DGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
+ (void)showLog:(DGLoggerLevel)level log:(NSString *)fmt,...;
+ (void)isShowLog:(BOOL)flag;
@end
//
// Interface.h
// PoolSdk
//
// Created by winFan on 12/10/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#include "UnionInterface.h"
#import <SafariServices/SafariServices.h>
@interface Interface : NSObject <UnionInterface>
@property(nonatomic, strong)UIViewController *controller;
@end
\ No newline at end of file
//
// NetCenter.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NetCenter : NSObject
@property(nonatomic,retain) NSMutableData *receiveData;
@property(nonatomic,assign)int dataPackSerialNo;
+ (NetCenter *)getInstance;
- (NSString *)httpGetSyn:(NSString *) getUrl;
- (NSString *)httpPostSyn:(NSString *) postUrl : (NSDictionary *) postData;
- (void)httpGetNoSyn;
- (void)httpPostNoSyn:(NSString *) postUrl :(NSDictionary *)postDict;
- (void)httpPostAsync:(NSString*)postUrl :(NSDictionary*)postDict;
- (void)httpPostAsyncOpen:(NSString*)postUrl :(NSDictionary*)postDict;
-(void)httpGetAsync:(NSString *)url completionHandler:(void (^ __nullable)(NSURLResponse* __nullable response, NSData* __nullable data, NSError* __nullable connectionError)) handler;
- (NSString * __nullable)dicToString:(NSDictionary * __nullable) dict;
@end
//
// OtherSetting.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#ifndef __PoolSdk__OtherSetting__
#define __PoolSdk__OtherSetting__
/**
应用支持的方向
*/
typedef NS_ENUM(NSUInteger, ESDKOrientation) {
ESDKOrientationPortrait = 1,//竖
ESDKOrientationLandscape,//横
ESDKOrientationNone//自动旋转
};
/**
应用支持的方向
*/
typedef NS_ENUM(NSUInteger, REPORT_TYPE) {
REPORT_TYPE_OPEN = 1,//竖
REPORT_TYPE_ENTER,//横
REPORT_TYPE_DEFINE//自动旋转
};
#endif /* defined(__PoolSdk__OtherSetting__) */
//
// PoolBaseModel.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PoolBaseModel : NSObject
- (NSString *)objectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
@end
\ No newline at end of file
//
// PoolLoginChecker.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk/PoolLoginInfo.h"
#import "PoolSdk/PoolNotification.h"
#import "PoolSdk/PoolCreateOrderInfo.h"
#import "PoolSdk/PoolPayInfo.h"
#import "PoolReportInfo.h"
#import "PoolSdkDelegate.h"
@interface PoolChecker : NSObject<PoolSdkDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate;
@property bool onlyOneTimePay;
+ (PoolChecker *)getInstance;
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)payInfo;
- (void) reportOpen;
- (void) reportSDKOpen;
- (void)handleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
description:(NSString *)szDescripton
extendData:(NSObject *)extendData;
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
/**
*type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
*/
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
*/
- (void)setPoolSdkDelegate:(nullable id<PoolSdkDelegate>)poolSdkDeletate;
@end
//
// PoolConfig.h
// PoolSdk
//
// Created by winFan on 12/11/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PoolConfig : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
@property(nonatomic, strong)NSString *sdkSimpleName;
@property(nonatomic, strong)NSString *sdkVersionCode;
@property(nonatomic, strong)NSString *loginCheckUrl;
@property(nonatomic, strong)NSString *payOrderUrl;
@property(nonatomic, strong)NSString *payCheckUrl;
@property(nonatomic, strong)NSString *c1;
@property(nonatomic, strong)NSString *c2;
@property(nonatomic, strong)NSString *custom;
+ (PoolConfig *)getInstance;
- (void) loadFile:(NSString *) fileName;
- (NSString *)getValueByKey:(NSString *) key;
- (void) updateC1C2Value:(NSString *)c1 c2:(NSString *)c2;
@end
\ No newline at end of file
//
// PayInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolCreateOrderInfo : PoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
@property(nonatomic, strong)NSString *playerId;//玩家ID
@property(nonatomic, strong)NSString *playerName;//玩家名称
@property(nonatomic, strong)NSString *playerLevel;//玩家等级
@property(nonatomic, strong)NSString *postAmount;//金额
@property(nonatomic, strong)NSString *productId;//产品ID
@property(nonatomic, strong)NSString *productName;//产品名称
@property(nonatomic, strong)NSString *productDesc;//产品描述
@property(nonatomic, strong)NSString *custom;//透传参数
@property(nonatomic, strong)NSString *exchange;//兑换比例
@property(nonatomic, strong)NSString *otherInfo;//扩展参数
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) getTsign ;
- (NSString *) getTimestamp ;
@end
\ No newline at end of file
//
// PoolLoginInfo.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolLoginInfo : PoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;//serverSign
@property(nonatomic, strong)NSString *other;//透传
@property(nonatomic, strong)NSString *openId;
@property(nonatomic, strong)NSString *userType;
@end
\ No newline at end of file
//
// 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 /*退出取消*/
//////////////////////////////////////////////////////////////////////
//
// PoolPayInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolPayInfo : PoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
@property(nonatomic, strong)NSString *playerId;
@property(nonatomic, strong)NSString *playerName;
@property(nonatomic, strong)NSString *postAmount;
@property(nonatomic, strong)NSString *productId;
@property(nonatomic, strong)NSString *products;
@property(nonatomic, strong)NSString *custom;
@property(nonatomic, strong)NSString *postTime;
@property(nonatomic, strong)NSString *other;
//游戏传递过来的原值
@property(nonatomic, strong)NSString *serverName;//服务器名称
@property(nonatomic, strong)NSString *playerLevel;//玩家等级
@property(nonatomic, strong)NSString *productName;//产品名称
@property(nonatomic, strong)NSString *productDesc;//产品描述
@property(nonatomic, strong)NSString *exchange;//兑换比例
@end
\ No newline at end of file
//
// PoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolReportInfo : PoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
@property(nonatomic, strong)NSString *playerName;//玩家名称
@property(nonatomic, strong)NSString *playerLevel;//玩家等级
@property(nonatomic, strong)NSString *roleSex;//角色性别(1男0女)
@property(nonatomic, strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
@property(nonatomic, strong)NSNumber *roleCTime;//创建角色时间(秒)
@property(nonatomic, strong)NSString *partyName;//工会名称
@property(nonatomic, strong)NSString *roleType;//角色类型
@property(nonatomic, strong)NSNumber *roleChangeTime;//角色等级更新时间(秒)
@property(nonatomic, strong)NSString *vipLevel;//vip等级
@property(nonatomic, strong)NSNumber *diamond;//余额
@property(nonatomic, strong)NSString *moneyType;//商品单位(元宝,金币)
@property(nonatomic, strong)NSString *custom;//透传参数
@property(nonatomic, strong)NSString *openId;
#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic
#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@" //@"http://183.57.76.181:9030/sdk/last_channel?idfa="//
#define REPORT_OPEN @"open"
#define REPORT_ENTER @"enter"
#define REPORT_CREATEROLE @"createrole"
#define REPORT_ROLEUPGRADE @"roleupgrade"
#define REPORT_SDK_OPEN @"opensdk"
@end
//
// PoolSdk.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk2.h"
#import <UIKit/UIKit.h>
@interface PoolSdk : NSObject
/**
* 当前SDK的版本
*/
@property(nonatomic, strong, readonly)NSString *sdkVersion;
/**
* 用于设置url types schemes 默认为工程名
*/
@property(nonatomic, strong)NSString *urlSchemes;
@property BOOL isApplePaying;
/**
获取SDK实例对象
*/
+ (PoolSdk *)shareSDK;
/**
初始化SDK
*/
- (void)initSDK:(UIViewController *) control;
-(void)viewDidAppear;
- (void)setViewController:(UIViewController *)viewController;
/**
登录SDK
*/
- (void)loginSDK;
- (void)loginSDK:(UIViewController *)viewController;
/**
进行支付
*/
- (void)payWithPaymentInfo:(PoolCreateOrderInfo *)payInfo;
/**
*是否含有用户中心接口
**/
- (BOOL)hasUserCenter;
/**
用户中心
*/
- (void)gotoUserCenter;
/**
report
*/
- (void)reportSDK:(PoolReportInfo *)reportInfo;
/**
*是否含有注销接口
*/
- (BOOL)hasLogout;
/**
注销
*/
- (void)logoutSDK;
/**
*是否含有切换账号接口
**/
- (BOOL)hasSwitchAccount;
/**
*切换账号
**/
- (void)switchAccount;
/**
*是否含有退出接口
**/
- (BOOL)hasExit;
/**
退出
*/
- (void)exitSDK;
/**
*SDK销毁操作(游戏退出时调用)
*/
- (void)destroySDK;
/**
显示/隐藏浮标
*/
//- (void)showFloatIcon:(BOOL)bFlag;
/**
// called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
*/
/**
应用 appid
*/
/**
应用支持的方向 默认为 EDreamSDKOrientationLandscape
*/
@property(nonatomic, assign)ESDKOrientation sdkOrientation;
/**
浮标是否已经显示,默认为NO
*/
@property(nonatomic, assign)BOOL bShowedFloat;
/**
serverId
*/
@property(nonatomic, assign)int serverId;
/**
获取gamechannelid
*/
-(NSString *) getGameChannelId;
/**
获取Custom
*/
- (NSString *) getCustomValue;
/**
获取ChannelParameter1
*/
- (NSString *) getChannelParameter1;
/**
获取ChannelParameter2
*/
- (NSString *) getChannelParameter2;
/**
*充值统计参数
*accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
*orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
*currencyAmount 货币金额,单位为元,支持小数
*currencyType 货币类型
*payType 支付类型(渠道)
*custom 自定义扩展参数
*/
-(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray*)customArray;
- (void)handleOpenurl:(NSURL *)url;
- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
- (void)applicationDidEnterBackground:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillEnterForeground:(UIApplication *)application;
- (void)applicationWillResignActive:(UIApplication *)application;
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
@end
//
// PoolSdk.h
// PoolSdk
//
// Created by 许 on 16/1/15.
// Copyright © 2016年 许. All rights reserved.
//
// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
#import <UIKit/UIKit.h>
#import "PoolChecker.h"
#import "Interface.h"
#import "PoolReportInfo.h"
#import "PoolLoginInfo.h"
#import "PoolNotification.h"
#import "PoolPayInfo.h"
#import "UnionInterface.h"
#import "PoolCreateOrderInfo.h"
#import "PoolConfig.h"
#import "PoolUtils.h"
#import "NetCenter.h"
#import "PoolSdk.h"
#import "PoolSdkDelegate.h"
//
// PoolSdkDelegate.h
// PoolSdk_i9133
//
// Created by 许 on 17/6/30.
// Copyright © 2017年 许. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol PoolSdkDelegate <NSObject>
@optional
-(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo;
-(void)PoolSdkLoginFail:(NSString*)msg;
-(void)PoolSdkSwitchAccountSuccess:(PoolLoginInfo*)loginInfo;
-(void)PoolSdkSwitchAccountFail:(NSString*)msg;
@end
//
// PoolUtils.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createPayOrderUrl;
//*充值回调地址
+(NSString *)createPayUrl;
+(UIActivityIndicatorView *)showLoadingDialog:(UIView*)parentView;
+(void)dismissLoadingDialog:(UIActivityIndicatorView*)indicatorView;
@end
\ No newline at end of file
//
// NewTtack.h
// NewTtack
//
// Created by yun on 16/1/11.
// Copyright © 2016年 yun. All rights reserved.
//
#define TRACK_VERSION @"1.0.1"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*
热云移动广告效果监测 平台 api 请选择对应的api进行使用
*/
NS_ASSUME_NONNULL_BEGIN
@interface TrackingIO : NSObject
//开启打印日志 正式上线包请关掉
+(void) setPrintLog :(BOOL)print;
// 开启数据统计
+ (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
//注册成功后调用
+ (void)setRegisterWithAccountID:(NSString *)account;
//登陆成功后调用
+ (void)setLoginWithAccountID:(NSString *)account;
//开始付费时 调用(人民币单位是元)
+(void)setPaymentStart:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
+(void)setPayment:(NSString *)transactionId paymentType:(NSString*)paymentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
//自定义事件
+(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
//标准接口
+(void)setProfile:(NSDictionary *)dataDic;
//获取设备信息
+(NSString*)getDeviceId;
@end
NS_ASSUME_NONNULL_END
//
// UnionInterface.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "PoolCreateOrderInfo.h"
#import "PoolReportInfo.h"
@protocol UnionInterface
/**
初始化SDK
*/
//[[PoolChecker getInstance] sendNotice:PoolSDKNotificationPay notiName:@"" statusCode:POOLSDK_NO_ERROR description:@"" extendData:order_id];
- (void)SDKinit:(UIViewController *) control;
- (void)setViewController:(UIViewController *) viewController;
/**
登录SDK
*/
- (void)SDKloginSDK;
- (void)SDKloginSDK:(UIViewController *) control;
/**
*是否含有注销接口
*/
- (BOOL)hasLogout;
/**
注销
*/
- (void)SDKlogoutSDK;
/**
*是否含有退出接口
**/
- (BOOL)hasExit;
/**
退出接口
*/
- (void)SDKexitSDK;
/**
*SDK销毁操作(游戏退出时调用)
*/
- (void)destroySDK;
/**
*是否含有用户中心接口
**/
- (BOOL)hasUserCenter;
/**
用户中心
*/
- (void)SDKgotoUserCenter;
/**
*是否含有切换账号接口
**/
- (BOOL)hasSwitchAccount;
/**
*切换账号
**/
- (void)switchAccount;
- (void)viewDidAppear;
/**
提交数据
*/
- (void)SDKreport:(PoolReportInfo *) reportInfo;
/**
进行支付
*/
- (void)SDKpayWithPaymentInfo:(PoolCreateOrderInfo *)payInfo;
- (void)receiveCreateOrder: (NSNotification *)notification;
/**
*充值统计参数
*accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
*orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
*currencyAmount 货币金额,单位为元,支持小数
*currencyType 货币类型
*payType 支付类型(渠道)
*/
-(void)paymentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType payType:(NSString*)payType custom:(NSArray *)customArray;
- (void)handleOpenurl:(NSURL *)url;
- (NSUInteger) application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
- (void)applicationDidEnterBackground:(UIApplication *)application;
- (void)applicationDidBecomeActive:(UIApplication *)application;
- (void)applicationWillEnterForeground:(UIApplication *)application;
- (void)applicationWillResignActive:(UIApplication *)application;
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options;
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
@end
\ No newline at end of file
//
// GetWifiMac.h
// mangosanguo
//
// Created by 莫 on 12-9-28.
// Copyright (c) 2012年 private. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YouaiGetWifiMac : NSObject
+ (NSString *)macaddress;
@end
//
// YouaiLoginInfo.h
// YouaiSDK
//
// Created by 莫 东荣 on 13-4-10.
// Copyright (c) 2013年 莫 东荣. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface YouaiLoginInfo : NSObject //用户uid
{
//
NSString *openId;
//token
NSString *token;
//时间戳
NSString *timestamp;
}
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (YouaiLoginInfo *)getInstance;
@end
\ No newline at end of file
//
// YouaiNotifications.h
// YouaiSDK
//
// Created by 莫 东荣 on 13-4-10.
// Copyright (c) 2013年 莫 东荣. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const youaiExitNotification; /**< 退出 */
extern NSString * const youaiLoginNotification; /**< 登录完成的通知*/
extern NSString * const youaiErrorNotification; /**< 出错 */
@interface YouaiNotifications : NSObject
@end
//
// YouaiSDKMgr.h
// YouaiSDK
//
// Created by 莫 东荣 on 13-4-9.
// Copyright (c) 2013年 莫 东荣. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface YouaiSDKMgr : NSObject
{
NSString* appId_;
NSString* appKey_;
NSString* inviterCode_;
}
@property bool appleing;
+ (YouaiSDKMgr *)getInstance;
- (void)initSDK;
- (void)setServerUrl:(NSString *)serverUrl;
- (void)openLogin:(NSString *)appId : (NSString *)appKey : (UIViewController *)controller;
- (void)openLogin:(NSString *)appId : (NSString *)appKey : (UIViewController *)controller : (NSString *) inviterCode;
- (void)setStyleName:(NSString*)styleName;
- (void)openUtil: (NSString *)serverId : (NSString *)nickName : (NSString *)callBack : (UIViewController *)controller;
- (void)openUtil: (NSString *)serverId : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)openWithUtil:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName queryId:(NSString*) queryId;
@end
//
// YouaiViewController.h
// newYouaiSDK
//
// Created by Mog90 on 14-9-28.
// Copyright (c) 2014年 东荣 莫. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "YouaiLoginInfo.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface YouaiViewController : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
//@property(assign) int webViewWidth;
//@property(assign) int webViewHeight;
//@property(assign) int screenwidth;
//@property(assign) int screenHeight;
@property(assign) BOOL hasCorner;
-(void)setView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
- (void)receiveIap:(NSNotification *)notification;
@end