





#import "OutDropEraCompressSupply.h"
@import Network;

static NSString *armShakePinRed = nil;
static nw_path_monitor_t tallUnitWeight = NULL;

@implementation OutDropEraCompressSupply

+ (BOOL)priceEllipseMaxSlovakGraphics {
    return armShakePinRed != nil;
}

+ (NSString *)prologWasLawType {
    return armShakePinRed ?: @"none";
}

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

@end
