





#import "ExpectingDitherCellularRequireDeclined.h"
@import Network;

static NSString *dryRowEndEvery = nil;
static nw_path_monitor_t beenUseSnowBut = NULL;

@implementation ExpectingDitherCellularRequireDeclined

+ (BOOL)peopleSoloEpisodeRelatedCelsius {
    return dryRowEndEvery != nil;
}

+ (NSString *)agePutMasterType {
    return dryRowEndEvery ?: @"none";
}

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

@end
