1
This commit is contained in:
@@ -14,7 +14,27 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
typedef void(^KBLoginCompletion)(BOOL success, NSError * _Nullable error);
|
||||
typedef void(^KBRegisterCompletion)(BOOL success, NSError * _Nullable error);
|
||||
typedef void(^KBVerifyMailCompletion)(BOOL success, NSError * _Nullable error);
|
||||
typedef void(^KBAppUpdateCompletion)(NSDictionary * _Nullable data, NSError * _Nullable error);
|
||||
|
||||
@class KBAppUpdateInfo;
|
||||
@class KBAppUpdateResponse;
|
||||
typedef void(^KBAppUpdateCompletion)(KBAppUpdateInfo * _Nullable info, NSError * _Nullable error);
|
||||
|
||||
@interface KBAppUpdateInfo : NSObject
|
||||
@property (nonatomic, assign) NSInteger minSupportedCode;
|
||||
@property (nonatomic, copy, nullable) NSString *latestVersionName;
|
||||
@property (nonatomic, copy, nullable) NSString *downloadUrl;
|
||||
@property (nonatomic, assign) BOOL needUpdate;
|
||||
@property (nonatomic, assign) NSInteger latestVersionCode;
|
||||
@property (nonatomic, assign) BOOL forceUpdate;
|
||||
@property (nonatomic, copy, nullable) NSString *releaseNotes;
|
||||
@property (nonatomic, copy, nullable) NSString *storeUrl;
|
||||
@end
|
||||
|
||||
@interface KBAppUpdateResponse : NSObject
|
||||
@property (nonatomic, assign) NSInteger code;
|
||||
@property (nonatomic, copy, nullable) NSString *message;
|
||||
@property (nonatomic, strong, nullable) KBAppUpdateInfo *data;
|
||||
@end
|
||||
|
||||
@interface KBLoginVM : NSObject
|
||||
|
||||
|
||||
Reference in New Issue
Block a user