You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ZXExpandedProductParsedResult.h 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. extern NSString * const ZX_KILOGRAM;
  18. extern NSString * const ZX_POUND;
  19. @interface ZXExpandedProductParsedResult : ZXParsedResult
  20. @property (nonatomic, copy, readonly) NSString *rawText;
  21. @property (nonatomic, copy, readonly) NSString *productID;
  22. @property (nonatomic, copy, readonly) NSString *sscc;
  23. @property (nonatomic, copy, readonly) NSString *lotNumber;
  24. @property (nonatomic, copy, readonly) NSString *productionDate;
  25. @property (nonatomic, copy, readonly) NSString *packagingDate;
  26. @property (nonatomic, copy, readonly) NSString *bestBeforeDate;
  27. @property (nonatomic, copy, readonly) NSString *expirationDate;
  28. @property (nonatomic, copy, readonly) NSString *weight;
  29. @property (nonatomic, copy, readonly) NSString *weightType;
  30. @property (nonatomic, copy, readonly) NSString *weightIncrement;
  31. @property (nonatomic, copy, readonly) NSString *price;
  32. @property (nonatomic, copy, readonly) NSString *priceIncrement;
  33. @property (nonatomic, copy, readonly) NSString *priceCurrency;
  34. @property (nonatomic, strong, readonly) NSMutableDictionary *uncommonAIs;
  35. - (id)initWithRawText:(NSString *)rawText productID:(NSString *)productID sscc:(NSString *)sscc
  36. lotNumber:(NSString *)lotNumber productionDate:(NSString *)productionDate
  37. packagingDate:(NSString *)packagingDate bestBeforeDate:(NSString *)bestBeforeDate
  38. expirationDate:(NSString *)expirationDate weight:(NSString *)weight weightType:(NSString *)weightType
  39. weightIncrement:(NSString *)weightIncrement price:(NSString *)price priceIncrement:(NSString *)priceIncrement
  40. priceCurrency:(NSString *)priceCurrency uncommonAIs:(NSMutableDictionary *)uncommonAIs;
  41. + (id)expandedProductParsedResultWithRawText:(NSString *)rawText productID:(NSString *)productID sscc:(NSString *)sscc
  42. lotNumber:(NSString *)lotNumber productionDate:(NSString *)productionDate
  43. packagingDate:(NSString *)packagingDate bestBeforeDate:(NSString *)bestBeforeDate
  44. expirationDate:(NSString *)expirationDate weight:(NSString *)weight
  45. weightType:(NSString *)weightType weightIncrement:(NSString *)weightIncrement
  46. price:(NSString *)price priceIncrement:(NSString *)priceIncrement
  47. priceCurrency:(NSString *)priceCurrency uncommonAIs:(NSMutableDictionary *)uncommonAIs;
  48. @end