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
原创粉丝点击