DouyinOpenSDKObjects.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // BDOpenPlatformObjects.h
  3. //
  4. // Created by ByteDance on 2019/7/8.
  5. // Copyright (c) 2018年 ByteDance Ltd. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class DouyinOpenSDKBaseResponse;
  9. typedef NS_ENUM(NSInteger, DouyinOpenSDKErrorCode) {
  10. DouyinOpenSDKSuccess = 0,
  11. DouyinOpenSDKErrorCodeCommon = -1,
  12. DouyinOpenSDKErrorCodeUserCanceled = -2,
  13. DouyinOpenSDKErrorCodeSendFailed = -3,
  14. DouyinOpenSDKErrorCodeAuthDenied = -4,
  15. DouyinOpenSDKErrorCodeUnsupported = -5,
  16. };
  17. NS_ASSUME_NONNULL_BEGIN
  18. typedef void(^DouyinOpenSDKRequestCompletedBlock) (DouyinOpenSDKBaseResponse *resp);
  19. @interface DouyinOpenSDKBaseRequest : NSObject
  20. /**
  21. Passing additional sharing requests param;
  22. */
  23. @property (nonatomic, copy, nullable) NSDictionary *extraInfo;
  24. @end
  25. @interface DouyinOpenSDKBaseResponse : NSObject
  26. @property (nonatomic, readonly, assign) BOOL isSucceed;//!< YES for succeess
  27. @property (nonatomic, assign) DouyinOpenSDKErrorCode errCode;//!< if failed failed error code
  28. @property (nonatomic, copy, nullable) NSString *errString;//!< if failed error description
  29. @end
  30. NS_ASSUME_NONNULL_END