/* * 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, retain) NSArray *names; @property (nonatomic, readonly, retain) NSArray *nicknames; @property (nonatomic, readonly, copy) NSString *pronunciation; @property (nonatomic, readonly, retain) NSArray *phoneNumbers; @property (nonatomic, readonly, retain) NSArray *phoneTypes; @property (nonatomic, readonly, retain) NSArray *emails; @property (nonatomic, readonly, retain) NSArray *emailTypes; @property (nonatomic, readonly, copy) NSString *instantMessenger; @property (nonatomic, readonly, copy) NSString *note; @property (nonatomic, readonly, retain) NSArray *addresses; @property (nonatomic, readonly, retain) NSArray *addressTypes; @property (nonatomic, readonly, copy) NSString *title; @property (nonatomic, readonly, copy) NSString *org; @property (nonatomic, readonly, retain) NSArray *urls; @property (nonatomic, readonly, copy) NSString *birthday; @property (nonatomic, readonly, retain) 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