Replace NodeStatus object with Obj-C Class

This commit is contained in:
Grant Limberg 2016-08-04 17:55:57 -07:00
commit 7a12d8193b
5 changed files with 63 additions and 63 deletions

25
ZeroTier One/NodeStatus.h Normal file
View file

@ -0,0 +1,25 @@
//
// NodeStatus.h
// ZeroTier One
//
// Created by Grant Limberg on 8/4/16.
// Copyright © 2016 ZeroTier, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NodeStatus : NSObject
@property (readonly) NSString *address;
@property (readonly) NSString *publicIdentity;
@property (readonly) BOOL online;
@property (readonly) BOOL tcpFallbackActive;
@property (readonly) int versionMajor;
@property (readonly) int versionMinor;
@property (readonly) int versionRev;
@property (readonly) NSString *version;
@property (readonly) UInt64 clock;
- (id)initWithJsonData:(NSDictionary*)jsonData;
@end