ReadResult.h 680 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2016 Nu-book Inc.
  3. */
  4. // SPDX-License-Identifier: Apache-2.0
  5. #pragma once
  6. namespace ZXing {
  7. public ref class ReadResult sealed
  8. {
  9. public:
  10. property Platform::String^ Format {
  11. Platform::String^ get() {
  12. return m_format;
  13. }
  14. }
  15. property Platform::String^ Text {
  16. Platform::String^ get() {
  17. return m_text;
  18. }
  19. }
  20. property BarcodeType Type {
  21. BarcodeType get() {
  22. return m_barcode_type;
  23. }
  24. }
  25. internal:
  26. ReadResult(Platform::String^ format, Platform::String^ text, BarcodeType type) : m_format(format), m_text(text), m_barcode_type(type) {}
  27. private:
  28. Platform::String^ m_format;
  29. Platform::String^ m_text;
  30. BarcodeType m_barcode_type;
  31. };
  32. } // ZXing