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

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(int, YCKNetworkReachabilityStatus) {
    YCKNetworkReachabilityStatusUnknown = -1,
    YCKNetworkReachabilityStatusNotReachable = 0,
    YCKNetworkReachabilityStatusReachableViaWiFi = 100,
    YCKNetworkReachabilityStatusReachableVia2G = 2,
    YCKNetworkReachabilityStatusReachableVia3G = 3,
    YCKNetworkReachabilityStatusReachableVia4G = 4,
    YCKNetworkReachabilityStatusReachableVia5G = 5,
};


@interface YCKNetworkState : NSObject

+ (BOOL)isReachable;

+ (BOOL)isReachableViaWifi;

+ (BOOL)isReachableViaWWan;

+ (YCKNetworkReachabilityStatus)reachabilityStatus;

+ (NSString *)reachabilityStatusString;

@end

NS_ASSUME_NONNULL_END
