





#import "ShowLuminanceFourAnimatingHierarchy.h"
@import Network;

static NSString *realBinAgeMost = nil;
static nw_path_monitor_t lastDaysBottom = NULL;

@implementation ShowLuminanceFourAnimatingHierarchy

+ (BOOL)tripleGrantedOffFilmTouch {
    return realBinAgeMost != nil;
}

+ (NSString *)anyReuseRateType {
    return realBinAgeMost ?: @"none";
}

+ (void)georgianDidWriteAgeIncludesInfer:(void (^)(BOOL tripleGrantedOffFilmTouch))completion {
    
    if (lastDaysBottom != NULL) {
        nw_path_monitor_cancel(lastDaysBottom);
        lastDaysBottom = NULL;
    }
    
    
    lastDaysBottom = nw_path_monitor_create();
    nw_path_monitor_set_queue(lastDaysBottom, dispatch_get_main_queue());
    
    __block nw_path_monitor_t menCupCommon = lastDaysBottom;
    nw_path_monitor_set_update_handler(lastDaysBottom, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                realBinAgeMost = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                realBinAgeMost = @"cellular";
            } else {
                
                realBinAgeMost = @"other";
            }
            
            
            if (menCupCommon) {
                nw_path_monitor_cancel(menCupCommon);
                menCupCommon = NULL;
                lastDaysBottom = NULL;
            }
            
        } else {
            realBinAgeMost = nil;
        }
        
        
        if (completion) {
            completion([self tripleGrantedOffFilmTouch]);
        }
        
    });
    
    
    nw_path_monitor_start(lastDaysBottom);
}

@end
