MBXValueConverter.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBXExpected<__covariant Value, __covariant Error>;
  4. NS_SWIFT_NAME(ValueConverter)
  5. __attribute__((visibility ("default")))
  6. @interface MBXValueConverter : NSObject
  7. // This class provides custom init which should be called
  8. - (nonnull instancetype)init NS_UNAVAILABLE;
  9. // This class provides custom init which should be called
  10. + (nonnull instancetype)new NS_UNAVAILABLE;
  11. /**
  12. * Converts value to a JSON string.
  13. * The method is intended to be used when `machine-readable` string is needed.
  14. *
  15. * @param value The value to be converted.
  16. *
  17. * @return string The value converted to a JSON string.
  18. */
  19. + (nonnull NSString *)toJsonForValue:(nonnull id)value __attribute((ns_returns_retained));
  20. /**
  21. * Converts value to a `human-readable` JSON string.
  22. * Space (0x20) character is used for indentation.
  23. *
  24. * @param value The value to be converted.
  25. * @param indent The indentation level for converted JSON.
  26. *
  27. * @return string The value converted to a JSON string.
  28. */
  29. + (nonnull NSString *)toJsonForValue:(nonnull id)value
  30. indent:(uint32_t)indent __attribute((ns_returns_retained));
  31. @end