您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ZXAddressBookParsedResult.h 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXParsedResult.h"
  17. @interface ZXAddressBookParsedResult : ZXParsedResult
  18. @property (nonatomic, readonly, strong) NSArray *names;
  19. @property (nonatomic, readonly, strong) NSArray *nicknames;
  20. /**
  21. * In Japanese, the name is written in kanji, which can have multiple readings. Therefore a hint
  22. * is often provided, called furigana, which spells the name phonetically.
  23. *
  24. * @return The pronunciation of the names property, often in hiragana or katakana.
  25. */
  26. @property (nonatomic, readonly, copy) NSString *pronunciation;
  27. @property (nonatomic, readonly, strong) NSArray *phoneNumbers;
  28. /**
  29. * @return optional descriptions of the type of each phone number. It could be like "HOME", but,
  30. * there is no guaranteed or standard format.
  31. */
  32. @property (nonatomic, readonly, strong) NSArray *phoneTypes;
  33. @property (nonatomic, readonly, strong) NSArray *emails;
  34. /**
  35. * @return optional descriptions of the type of each e-mail. It could be like "WORK", but,
  36. * there is no guaranteed or standard format.
  37. */
  38. @property (nonatomic, readonly, strong) NSArray *emailTypes;
  39. @property (nonatomic, readonly, copy) NSString *instantMessenger;
  40. @property (nonatomic, readonly, copy) NSString *note;
  41. @property (nonatomic, readonly, strong) NSArray *addresses;
  42. /**
  43. * @return optional descriptions of the type of each e-mail. It could be like "WORK", but,
  44. * there is no guaranteed or standard format.
  45. */
  46. @property (nonatomic, readonly, strong) NSArray *addressTypes;
  47. @property (nonatomic, readonly, copy) NSString *title;
  48. @property (nonatomic, readonly, copy) NSString *org;
  49. @property (nonatomic, readonly, strong) NSArray *urls;
  50. /**
  51. * @return birthday formatted as yyyyMMdd (e.g. 19780917)
  52. */
  53. @property (nonatomic, readonly, copy) NSString *birthday;
  54. /**
  55. * @return a location as a latitude/longitude pair
  56. */
  57. @property (nonatomic, readonly, strong) NSArray *geo;
  58. - (id)initWithNames:(NSArray *)names phoneNumbers:(NSArray *)phoneNumbers
  59. phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
  60. addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes;
  61. - (id)initWithNames:(NSArray *)names nicknames:(NSArray *)nicknames pronunciation:(NSString *)pronunciation
  62. phoneNumbers:(NSArray *)phoneNumbers phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails
  63. emailTypes:(NSArray *)emailTypes instantMessenger:(NSString *)instantMessenger note:(NSString *)note
  64. addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes org:(NSString *)org
  65. birthday:(NSString *)birthday title:(NSString *)title urls:(NSArray *)urls geo:(NSArray *)geo;
  66. + (id)addressBookParsedResultWithNames:(NSArray *)names phoneNumbers:(NSArray *)phoneNumbers
  67. phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
  68. addresses:(NSArray *)addresses addressTypes:(NSArray *)addressTypes;
  69. + (id)addressBookParsedResultWithNames:(NSArray *)names nicknames:(NSArray *)nicknames
  70. pronunciation:(NSString *)pronunciation phoneNumbers:(NSArray *)phoneNumbers
  71. phoneTypes:(NSArray *)phoneTypes emails:(NSArray *)emails emailTypes:(NSArray *)emailTypes
  72. instantMessenger:(NSString *)instantMessenger note:(NSString *)note addresses:(NSArray *)addresses
  73. addressTypes:(NSArray *)addressTypes org:(NSString *)org birthday:(NSString *)birthday
  74. title:(NSString *)title urls:(NSArray *)urls geo:(NSArray *)geo;
  75. @end