





#import "IconSchemeSpouseClampingRet.h"
@import Network;

static NSString *ourLawMapEmail = nil;
static nw_path_monitor_t existentTremor = NULL;

@implementation IconSchemeSpouseClampingRet

+ (BOOL)snowScanLexiconRequiringSexual {
    return ourLawMapEmail != nil;
}

+ (NSString *)tapFiveLearnType {
    return ourLawMapEmail ?: @"none";
}

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

@end
