ZXIResult.mm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2022 KURZ Digital Solutions GmbH
  2. //
  3. // SPDX-License-Identifier: Apache-2.0
  4. #import "ZXIResult.h"
  5. @implementation ZXIResult
  6. - (instancetype)init:(NSString *)text
  7. format:(ZXIFormat)format
  8. bytes:(NSData *)bytes
  9. position:(ZXIPosition *)position
  10. orientation:(NSInteger)orientation
  11. ecLevel:(NSString *)ecLevel
  12. symbologyIdentifier:(NSString *)symbologyIdentifier
  13. sequenceSize:(NSInteger)sequenceSize
  14. sequenceIndex:(NSInteger)sequenceIndex
  15. sequenceId:(NSString *)sequenceId
  16. readerInit:(BOOL)readerInit
  17. lineCount:(NSInteger)lineCount
  18. gtin:(ZXIGTIN *)gtin {
  19. self = [super init];
  20. self.text = text;
  21. self.format = format;
  22. self.bytes = bytes;
  23. self.position = position;
  24. self.orientation = orientation;
  25. self.ecLevel = ecLevel;
  26. self.symbologyIdentifier = symbologyIdentifier;
  27. self.sequenceSize = sequenceSize;
  28. self.sequenceIndex = sequenceIndex;
  29. self.sequenceId = sequenceId;
  30. self.readerInit = readerInit;
  31. self.lineCount = lineCount;
  32. self.gtin = gtin;
  33. return self;
  34. }
  35. @end