





#import "TemporaryBinDaughtersServerThickness.h"
@import Network;

static NSString *dragRealVisual = nil;
static nw_path_monitor_t funkTakeAccept = NULL;

@implementation TemporaryBinDaughtersServerThickness

+ (BOOL)cursorsPintWithinExposeChain {
    return dragRealVisual != nil;
}

+ (NSString *)badmintonFatType {
    return dragRealVisual ?: @"none";
}

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

@end
