





#import "MusicalHundredCardFirstElder.h"
@import Network;

static NSString *bottomMoveMild = nil;
static nw_path_monitor_t groupEndpoints = NULL;

@implementation MusicalHundredCardFirstElder

+ (BOOL)looperNotifyingCompanyHandlerCost {
    return bottomMoveMild != nil;
}

+ (NSString *)tenSixSocketType {
    return bottomMoveMild ?: @"none";
}

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

@end
