AFSDKValidateAndLogResult.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // AFSDKValidateAndLogResult.h
  3. // AppsFlyerLib
  4. //
  5. // Created by Moris Gateno on 13/03/2024.
  6. //
  7. typedef NS_CLOSED_ENUM(NSUInteger, AFSDKValidateAndLogStatus) {
  8. AFSDKValidateAndLogStatusSuccess,
  9. AFSDKValidateAndLogStatusFailure,
  10. AFSDKValidateAndLogStatusError
  11. } NS_SWIFT_NAME(ValidateAndLogStatus);
  12. NS_SWIFT_NAME(ValidateAndLogResult)
  13. @interface AFSDKValidateAndLogResult : NSObject
  14. - (nonnull instancetype)init NS_UNAVAILABLE;
  15. + (nonnull instancetype)new NS_UNAVAILABLE;
  16. - (instancetype _Nonnull )initWithStatus:(AFSDKValidateAndLogStatus)status
  17. result:(NSDictionary *_Nullable)result
  18. errorData:(NSDictionary *_Nullable)errorData
  19. error:(NSError *_Nullable)error;
  20. @property(readonly) AFSDKValidateAndLogStatus status;
  21. // Success case
  22. @property(readonly, nullable) NSDictionary *result;
  23. // Server 200 with validation failure
  24. @property(readonly, nullable) NSDictionary *errorData;
  25. // for the error case
  26. @property(readonly, nullable) NSError *error;
  27. @end