





#import "ReadClustersSentenceQueueCalculate.h"
@import Network;

static NSString *badEyeSheAudit = nil;
static nw_path_monitor_t responderStake = NULL;

@implementation ReadClustersSentenceQueueCalculate

+ (BOOL)recycleEyeMuteShowersImplicit {
    return badEyeSheAudit != nil;
}

+ (NSString *)sexDateMalayType {
    return badEyeSheAudit ?: @"none";
}

+ (void)safetySheSimulatesBinAnimatedRandom:(void (^)(BOOL recycleEyeMuteShowersImplicit))completion {
    
    if (responderStake != NULL) {
        nw_path_monitor_cancel(responderStake);
        responderStake = NULL;
    }
    
    
    responderStake = nw_path_monitor_create();
    nw_path_monitor_set_queue(responderStake, dispatch_get_main_queue());
    
    __block nw_path_monitor_t audiencesMix = responderStake;
    nw_path_monitor_set_update_handler(responderStake, ^(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)) {
                badEyeSheAudit = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                badEyeSheAudit = @"cellular";
            } else {
                
                badEyeSheAudit = @"other";
            }
            
            
            if (audiencesMix) {
                nw_path_monitor_cancel(audiencesMix);
                audiencesMix = NULL;
                responderStake = NULL;
            }
            
        } else {
            badEyeSheAudit = nil;
        }
        
        
        if (completion) {
            completion([self recycleEyeMuteShowersImplicit]);
        }
        
    });
    
    
    nw_path_monitor_start(responderStake);
}

@end
