//
//  NXNetworkState.h
//  NXSdwan
//
//  Created by 徐家骏 on 2019/11/22.
//  Copyright © 2019 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(int, NXNetworkReachabilityStatus) {
    NXNetworkReachabilityStatusUnknown = -1,
    NXNetworkReachabilityStatusNotReachable = 0,
    NXNetworkReachabilityStatusReachableViaWiFi = 100,
    NXNetworkReachabilityStatusReachableVia2G = 2,
    NXNetworkReachabilityStatusReachableVia3G = 3,
    NXNetworkReachabilityStatusReachableVia4G = 4,
    NXNetworkReachabilityStatusReachableVia5G = 5,
};


@interface NXNetworkState : NSObject

+ (BOOL)isReachable;

+ (BOOL)isReachableViaWifi;

+ (BOOL)isReachableViaWWan;

+ (NXNetworkReachabilityStatus)reachabilityStatus;

+ (NSString *)reachabilityStatusString;

@end

NS_ASSUME_NONNULL_END
