mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-27 06:39:32 +00:00
30 lines
842 B
Objective-C
30 lines
842 B
Objective-C
//
|
|
// 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;
|
|
BOOL _isQuitting;
|
|
}
|
|
+ (ServiceCom*)sharedInstance;
|
|
|
|
- (id)init;
|
|
|
|
- (void)getNetworklist:(void (^)(NSArray<Network*>*))completionHandler error:(NSError* __autoreleasing *)error;
|
|
- (void)getNodeStatus:(void (^)(NodeStatus*))completionHandler error:(NSError*__autoreleasing*)error;
|
|
- (void)joinNetwork:(NSString*)networkId allowManaged:(BOOL)allowManaged allowGlobal:(BOOL)allowGlobal allowDefault:(BOOL)allowDefault error:(NSError*__autoreleasing*)error;
|
|
- (void)leaveNetwork:(NSString*)networkId error:(NSError*__autoreleasing*)error;
|
|
|
|
@end
|