Organize everything into operations
This commit is contained in:
25
kordophone/Bridge/Operations/MBIMBridgeOperation.h
Normal file
25
kordophone/Bridge/Operations/MBIMBridgeOperation.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// MBIMBridgeOperation.h
|
||||
// kordophoned
|
||||
//
|
||||
// Created by James Magahern on 11/13/18.
|
||||
// Copyright © 2018 James Magahern. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <GCDWebServers/GCDWebServers.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MBIMBridgeOperation : NSOperation
|
||||
@property (class, nonatomic, readonly) NSString *endpointName;
|
||||
|
||||
@property (nonatomic, readonly) GCDWebServerRequest *request;
|
||||
@property (nonatomic, readonly) GCDWebServerCompletionBlock serverCompletionBlock;
|
||||
|
||||
+ (nullable Class)operationClassForEndpointName:(NSString *)endpointName;
|
||||
- (instancetype)initWithRequest:(GCDWebServerRequest *)request completion:(GCDWebServerCompletionBlock)completionBlock;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user