mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-12 08:06:35 -07:00
replace ServiceCom with objc class
This commit is contained in:
parent
a0db48571d
commit
b51d68a419
9 changed files with 323 additions and 234 deletions
28
ZeroTier One/ServiceCom.h
Normal file
28
ZeroTier One/ServiceCom.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
//
|
||||
// ServiceCom.h
|
||||
// ZeroTier One
|
||||
//
|
||||
// Created by Grant Limberg on 8/4/16.
|
||||
// Copyright © 2016 ZeroTier, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@class NodeStatus;
|
||||
@class Network;
|
||||
|
||||
@interface ServiceCom : NSObject
|
||||
{
|
||||
NSString *baseURL;
|
||||
NSURLSession *session;
|
||||
}
|
||||
+ (ServiceCom*)sharedInstance;
|
||||
|
||||
- (id)init;
|
||||
|
||||
- (void)getNetworklist:(void (^)(NSArray<Network*>*))completionHandler;
|
||||
- (void)getNodeStatus:(void (^)(NodeStatus*))completionHandler;
|
||||
- (void)joinNetwork:(NSString*)networkId allowManaged:(BOOL)allowManaged allowGlobal:(BOOL)allowGlobal allowDefault:(BOOL)allowDefault;
|
||||
- (void)leaveNetwork:(NSString*)networkId;
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue