





#import "CosmicConflictsThicknessAltimeterLayer.h"
@import Network;

static NSString *trapSinDogMail = nil;
static nw_path_monitor_t mapCatPlusLong = NULL;

@implementation CosmicConflictsThicknessAltimeterLayer

+ (BOOL)aspectManConvergedSixInterlace {
    return trapSinDogMail != nil;
}

+ (NSString *)scopeColumnsType {
    return trapSinDogMail ?: @"none";
}

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

@end
