015-SDK框架LYWSDKDispatcher.mm
来源:互联网 发布:nginx一键安装脚本 编辑:程序博客网 时间:2024/06/05 16:20
#import "LYWSDKDispatcher.h"
@implementation LYWSDKDispatcher
static LYWSDKDispatcher *dispatcher;
+(LYWSDKDispatcher*) init
{
if(dispatcher == nil)
{
dispatcher = [[LYWSDKDispatcher alloc] init];
}
return dispatcher;
}
-(void)lywSDKInit:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [[NSMutableDictionary alloc] init];
[callBackDic setValue:@E_LYWSDKInit forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"ios initialize success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)login:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [NSMutableDictionary dictionary];
[callBackDic setValue:@E_LYWSDKLogin forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"login success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)pay:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [NSMutableDictionary dictionary];
[callBackDic setValue:@E_LYWSDKPay forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"pay success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)loop:(NSMutableDictionary *) dic
{
}
@end
@implementation LYWSDKDispatcher
static LYWSDKDispatcher *dispatcher;
+(LYWSDKDispatcher*) init
{
if(dispatcher == nil)
{
dispatcher = [[LYWSDKDispatcher alloc] init];
}
return dispatcher;
}
-(void)lywSDKInit:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [[NSMutableDictionary alloc] init];
[callBackDic setValue:@E_LYWSDKInit forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"ios initialize success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)login:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [NSMutableDictionary dictionary];
[callBackDic setValue:@E_LYWSDKLogin forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"login success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)pay:(NSMutableDictionary *) dic
{
NSMutableDictionary *callBackDic = [NSMutableDictionary dictionary];
[callBackDic setValue:@E_LYWSDKPay forKey:@"type"];
[callBackDic setValue:@E_LYWSDKSuccess forKey:@"code"];
[callBackDic setValue:@"pay success" forKey:@"message"];
LYWSDKProtocolIOS::getInstance()->receiveCallBack(LYWSDKProtocolIOS::getInstance()->dictionary2jParam(callBackDic));
}
-(void)loop:(NSMutableDictionary *) dic
{
}
@end
阅读全文
0 0
- 015-SDK框架LYWSDKDispatcher.mm
- 014-SDK框架LYWSDKDispatcher.h
- 012-SDK框架之LYWSDKProtocolIOS.mm
- 013-SDK框架之LYWSDKPlatformManager.mm
- MM IAP SDK
- unity 接移动mm sdk
- 【MM】框架协议(Outline Agreement)
- MM-框架订单(framework order)
- cocos2d-x 移动MM平台SDK接入
- unity 引用 移动mm 支付sdk
- unity 引用 移动mm 支付sdk
- 移动MM 支付SDK遇到的问题
- 移动MM 支付SDK遇到的问题
- Unity3D 移动MM 支付SDK 问题
- unity 引用 移动mm 支付sdk
- 孙MM 继承之于框架
- 类库/框架/SDK
- 【框架】as制作sdk
- pygame游戏之旅14:添加icon和bgm音效
- CMake中调用自定义安装位置Eigen库的方法
- 全面解析redis cluster
- hibernate二级缓存
- 和为0的四个值UVa1152
- 015-SDK框架LYWSDKDispatcher.mm
- 关于Android Service真正的完全详解,你需要知道的一切
- 算法分析基础---渐进复杂度
- iOS开发 解决pods-frameworks.sh:permission denied问题
- layui使用
- hdu1072 Nightmare
- 改写某个模拟器的go语言源码遇到的问题
- 坚果云与Git
- springmvc与mybatis整合中的问题