TapCommon-Unity/Plugins/iOS/TapCommonSDK.framework/Headers/TDSNetSubscriber.h

30 lines
584 B
C
Raw Normal View History

2022-02-16 14:25:33 +08:00
//
// TDSNetSubscriber.h
// TDSCommon
//
// Created by Insomnia on 2020/10/22.
//
#import <Foundation/Foundation.h>
@protocol TDSNetSubscriber <NSObject>
@optional
- (void)sendSuccess:(nullable id)value;
- (void)sendFailure:(nullable NSError *)error;
- (void)sendProgress:(nullable id)progress;
@end
NS_ASSUME_NONNULL_BEGIN
@interface TDSNetSubscriber : NSObject<TDSNetSubscriber>
+ (instancetype)subscriberWithSuccess:(void (^)(id x))success failure:(nullable void (^)(NSError *error))error progress:(nullable void (^)(id progress))progress;
@end
NS_ASSUME_NONNULL_END