ZXIResult.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2022 KURZ Digital Solutions GmbH
  2. //
  3. // SPDX-License-Identifier: Apache-2.0
  4. #import <Foundation/Foundation.h>
  5. #import "ZXIFormat.h"
  6. #import "ZXIPosition.h"
  7. #import "ZXIGTIN.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface ZXIResult : NSObject
  10. @property(nonatomic, strong) NSString *text;
  11. @property(nonatomic, strong) NSData *bytes;
  12. @property(nonatomic, strong) ZXIPosition *position;
  13. @property(nonatomic) ZXIFormat format;
  14. @property(nonatomic) NSInteger orientation;
  15. @property(nonatomic, strong) NSString *ecLevel;
  16. @property(nonatomic, strong) NSString *symbologyIdentifier;
  17. @property(nonatomic) NSInteger sequenceSize;
  18. @property(nonatomic) NSInteger sequenceIndex;
  19. @property(nonatomic, strong) NSString *sequenceId;
  20. @property(nonatomic) BOOL readerInit;
  21. @property(nonatomic) NSInteger lineCount;
  22. @property(nonatomic, strong) ZXIGTIN *gtin;
  23. - (instancetype)init:(NSString *)text
  24. format:(ZXIFormat)format
  25. bytes:(NSData *)bytes
  26. position:(ZXIPosition *)position
  27. orientation:(NSInteger)orientation
  28. ecLevel:(NSString *)ecLevel
  29. symbologyIdentifier:(NSString *)symbologyIdentifier
  30. sequenceSize:(NSInteger)sequenceSize
  31. sequenceIndex:(NSInteger)sequenceIndex
  32. sequenceId:(NSString *)sequenceId
  33. readerInit:(BOOL)readerInit
  34. lineCount:(NSInteger)lineCount
  35. gtin:(ZXIGTIN *)gtin;
  36. @end
  37. NS_ASSUME_NONNULL_END