YHLinkDefaultParser.h 1.16 KB
//
//  YHLinkDefaultParser.h
//  YohoExplorerDemo
//
//  Created by gaoqiang xu on 4/21/15.
//  Copyright (c) 2015 gaoqiang xu. All rights reserved.
//

#import "YHLinkParserDelegate.h"

#define YHLinkOpenByType_yohobuy @"yohobuy"
#define YHLinkOpenByType_show @"show"
#define YHLinkOpenByType_boy @"boy"
#define YHLinkOpenByType_girl @"girl"
#define YHLinkOpenByType_browser @"browser"
#define YHLinkOpenByType_mars @"mars"

#define YHLinkOpenByType_compatible @"yohobuy_app"

/**
 *  支持的链接示例
 *  http://xxx.com?openby:yohobuy={"action":"go.brand","params":{"brand_id":"4"}}
 */

extern NSString * const YHLinkParseResult_OriginalUrlKey;
/**
 *  不含参数的链接
    example: http://xxx.com
 */
extern NSString * const YHLinkParseResult_FreshUrlKey;
/**
 *  打开类型
    example: yohobuy
 */
extern NSString * const YHLinkParseResult_OpenByKey;
/**
 *  打开参数
    example: {"action":"go.brand","params":{"brand_id":"4"}}
 */
extern NSString * const YHLinkParseResult_OpenParametersKey;

@interface YHLinkDefaultParser : NSObject
<YHLinkParserDelegate>

@end

#pragma mark - YHLinkParserOld

@interface YHLinkParserOld : NSObject
<YHLinkParserDelegate>

@end