YHLinkDefaultParser.h
1.16 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
//
// 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