NBPhoneMetaData.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // M2PhoneMetaData.h
  3. // libPhoneNumber
  4. //
  5. //
  6. #import <Foundation/Foundation.h>
  7. @class NBPhoneNumberDesc, NBNumberFormat;
  8. @interface NBPhoneMetaData : NSObject
  9. // from phonemetadata.proto
  10. /* 1 */ @property(nonatomic, strong) NBPhoneNumberDesc *generalDesc;
  11. /* 2 */ @property(nonatomic, strong) NBPhoneNumberDesc *fixedLine;
  12. /* 3 */ @property(nonatomic, strong) NBPhoneNumberDesc *mobile;
  13. /* 4 */ @property(nonatomic, strong) NBPhoneNumberDesc *tollFree;
  14. /* 5 */ @property(nonatomic, strong) NBPhoneNumberDesc *premiumRate;
  15. /* 6 */ @property(nonatomic, strong) NBPhoneNumberDesc *sharedCost;
  16. /* 7 */ @property(nonatomic, strong) NBPhoneNumberDesc *personalNumber;
  17. /* 8 */ @property(nonatomic, strong) NBPhoneNumberDesc *voip;
  18. /* 21 */ @property(nonatomic, strong) NBPhoneNumberDesc *pager;
  19. /* 25 */ @property(nonatomic, strong) NBPhoneNumberDesc *uan;
  20. /* 27 */ @property(nonatomic, strong) NBPhoneNumberDesc *emergency;
  21. /* 28 */ @property(nonatomic, strong) NBPhoneNumberDesc *voicemail;
  22. /* 24 */ @property(nonatomic, strong) NBPhoneNumberDesc *noInternationalDialling;
  23. /* 9 */ @property(nonatomic, strong) NSString *codeID;
  24. /* 10 */ @property(nonatomic, strong) NSNumber *countryCode;
  25. /* 11 */ @property(nonatomic, strong) NSString *internationalPrefix;
  26. /* 17 */ @property(nonatomic, strong) NSString *preferredInternationalPrefix;
  27. /* 12 */ @property(nonatomic, strong) NSString *nationalPrefix;
  28. /* 13 */ @property(nonatomic, strong) NSString *preferredExtnPrefix;
  29. /* 15 */ @property(nonatomic, strong) NSString *nationalPrefixForParsing;
  30. /* 16 */ @property(nonatomic, strong) NSString *nationalPrefixTransformRule;
  31. /* 18 */ @property(nonatomic, assign) BOOL sameMobileAndFixedLinePattern;
  32. /* 19 */ @property(nonatomic, strong) NSArray<NBNumberFormat *> *numberFormats;
  33. /* 20 */ @property(nonatomic, strong) NSArray<NBNumberFormat *> *intlNumberFormats;
  34. /* 22 */ @property(nonatomic, assign) BOOL mainCountryForCode;
  35. /* 23 */ @property(nonatomic, strong) NSString *leadingDigits;
  36. /* 26 */ @property(nonatomic, assign) BOOL leadingZeroPossible;
  37. #if SHORT_NUMBER_SUPPORT
  38. /* 29 */ @property (nonatomic, strong) NBPhoneNumberDesc *shortCode;
  39. /* 30 */ @property (nonatomic, strong) NBPhoneNumberDesc *standardRate;
  40. /* 31 */ @property (nonatomic, strong) NBPhoneNumberDesc *carrierSpecific;
  41. /* 33 */ @property (nonatomic, strong) NBPhoneNumberDesc *smsServices;
  42. #endif // SHORT_NUMBER_SUPPORT
  43. - (instancetype)initWithEntry:(NSArray *)entry;
  44. @end