30 lines
787 B
Objective-C
30 lines
787 B
Objective-C
//
|
|
// HBNetWorkingUtilityResult.h
|
|
// QinJiuTV
|
|
//
|
|
// Created by 秦九 on 2024/4/29.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// 网络请求回调处理类
|
|
@interface HBNetWorkingUtilityResult : NSObject
|
|
@property (copy, nonatomic) NSString * message;
|
|
@property (assign, nonatomic) NSInteger status;
|
|
@property (assign, nonatomic) NSInteger httpCode;
|
|
@property (assign, nonatomic) NSInteger code;
|
|
@property (copy, nonatomic) NSString * url;
|
|
@property (assign, nonatomic) BOOL success;
|
|
@property (strong, nonatomic) id data;
|
|
|
|
+ (HBNetWorkingUtilityResult *)successResult:(NSURLSessionDataTask *)task response:(id)responseObject;
|
|
|
|
+ (HBNetWorkingUtilityResult *)failureResult:(NSURLSessionDataTask *)task error:(NSError *)error;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|