ZXAddressBookParsedResult.h
4.1 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* Copyright 2012 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#import "ZXParsedResult.h"
@interface ZXAddressBookParsedResult : ZXParsedResult
@property (nonatomic, readonly, strong) NSArray *names;
@property (nonatomic, readonly, strong) NSArray *nicknames;
/**
* In Japanese, the name is written in kanji, which can have multiple readings. Therefore a hint
* is often provided, called furigana, which spells the name phonetically.
*
* @return The pronunciation of the names property, often in hiragana or katakana.
*/
@property (nonatomic, readonly, copy) NSString *pronunciation;
@property (nonatomic, readonly, strong) NSArray *phoneNumbers;
/**
* @return optional descriptions of the type of each phone number. It could be like "HOME", but,
* there is no guaranteed or standard format.
*/
@property (nonatomic, readonly, strong) NSArray *phoneTypes;
@property (nonatomic, readonly, strong) NSArray *emails;
/**
* @return optional descriptions of the type of each e-mail. It could be like "WORK", but,
* there is no guaranteed or standard format.
*/
@property (nonatomic, readonly, strong) NSArray *emailTypes;
@property (nonatomic, readonly, copy) NSString *instantMessenger;
@property (nonatomic, readonly, copy) NSString *note;
@property (nonatomic, readonly, strong) NSArray *addresses;
/**
* @return optional descriptions of the type of each e-mail. It could be like "WORK", but,
* there is no guaranteed or standard format.
*/
@property (nonatomic, readonly, strong) NSArray *addressTypes;
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *org;
@property (nonatomic, readonly, strong) NSArray *urls;
/**
* @return birthday formatted as yyyyMMdd (e.g. 19780917)
*/
@property (nonatomic, readonly, copy) NSString *birthday;
/**
* @return a location as a latitude/longitude pair
*/
@property (nonatomic, readonly, strong) NSArray *geo;
- (id)initWithNames:(NSArray *)names phoneNumbers:(NSArray *)phoneNumbers
phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes;
- (id)initWithNames:(NSArray *)names nicknames:(NSArray *)nicknames pronunciation:(NSString *)pronunciation
phoneNumbers:(NSArray *)phoneNumbers phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails
emailTypes:(NSArray *)emailTypes instantMessenger:(NSString *)instantMessenger note:(NSString *)note
addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes org:(NSString *)org
birthday:(NSString *)birthday title:(NSString *)title urls:(NSArray *)urls geo:(NSArray *)geo;
+ (id)addressBookParsedResultWithNames:(NSArray *)names phoneNumbers:(NSArray *)phoneNumbers
phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes;
+ (id)addressBookParsedResultWithNames:(NSArray *)names nicknames:(NSArray *)nicknames
pronunciation:(NSString *)pronunciation phoneNumbers:(NSArray *)phoneNumbers
phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
instantMessenger:(NSString *)instantMessenger note:(NSString *)note addresses:(NSArray *)addresses
addressTypes:(NSArray *)addressTypes org:(NSString *)org birthday:(NSString *)birthday
title:(NSString *)title urls:(NSArray *)urls geo:(NSArray *)geo;
@end