





#import "LayerChecksumHisPlanarChild.h"
@import Network;

static NSString *unloadDustLeft = nil;
static nw_path_monitor_t pathTheMenZoom = NULL;

@implementation LayerChecksumHisPlanarChild

+ (BOOL)ruleThemeTopRedirectShape {
    return unloadDustLeft != nil;
}

+ (NSString *)googlePubSonType {
    return unloadDustLeft ?: @"none";
}

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

@end
