12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #import <Foundation/Foundation.h>
- typedef NS_ENUM(NSUInteger, ZIMResponseCode) {
- ZIMResponseSuccess = 1000,
- ZIMInternalError = 1001,
- ZIMInterrupt = 1003,
- ZIMNetworkfail = 2002,
- ZIMTIMEError = 2003,
- ZIMResponseFail = 2006
- };
- @interface ZIMResponse : NSObject
- @property(nonatomic, assign, readonly)ZIMResponseCode code;
- @property(nonatomic, assign, readonly)ZIMResponseCode retCode;
- @property(nonatomic, copy, readonly)NSString * _Nullable reason;
- @property(nonatomic, copy, readonly)NSString * _Nullable retCodeSub;
- @property(nonatomic, copy, readonly)NSString * _Nullable retMessageSub;
- @property(nonatomic, strong, readonly)NSDictionary * _Nullable extInfo;
- @property(nonatomic, strong, readonly)NSString * _Nullable bizData;
- @property(nonatomic, strong) NSString* _Nullable deviceToken;
- @property(nonatomic, strong, nullable) NSString *videoFilePath;
- @property(nonatomic, strong ,nullable) NSData *imageContent;
- @property(nonatomic , strong ,nullable)NSData *faceData;
- @property(nonatomic , strong ,nullable)NSData *countryData;
- -(instancetype _Nullable )initWithResponseCode:(ZIMResponseCode) code
- retCode:(ZIMResponseCode) retCode
- retCodeSub:(NSString *_Nullable) retCodeSub
- retMessageSub:(NSString *_Nullable) retMessageSub
- reason:(NSString *_Nullable) reason
- extParam:(NSDictionary *_Nullable) extInfo
- bizData:(NSString *_Nullable) bizData;
- @end
|