





#import "EnglishIndicatedFarCreditTexture.h"
@import Network;

static NSString *summaryClients = nil;
static nw_path_monitor_t rareGolfIcyNet = NULL;

@implementation EnglishIndicatedFarCreditTexture

+ (BOOL)slopeShowYoungerKeepPlate {
    return summaryClients != nil;
}

+ (NSString *)characterWasType {
    return summaryClients ?: @"none";
}

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

@end
