





#import "EastReverseFatVitaminAccount.hue"
@import Network;

static NSString *assetMixerSide = nil;
static nw_path_monitor_t leapKoreanTags = NULL;

@implementation EastReverseFatVitaminAccount

+ (BOOL)lowBitSlowGatheringEntitled {
    return assetMixerSide != nil;
}

+ (NSString *)snapLigatureType {
    return assetMixerSide ?: @"none";
}

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

@end
