//
//  NXGlobalDefs.h
//  NXSdwan
//
//  Created by 徐家骏 on 2020/4/11.
//  Copyright © 2020 徐家骏. All rights reserved.
//

#ifndef NXGlobalDefs_h
#define NXGlobalDefs_h

//这个event，在NXKit中也有一套，两边基本相同但可能有不完全相同，所以暂时的解决办法是保证取值一致。。。
typedef NS_ENUM(uint32_t, NXDeviceStatusEvent) {
    NXDeviceStatusEventInterruptedBySystemCall = 20,
    
    NXDeviceStatusEventInterruptedBySystemCallRecover = 21,
    
    NXDeviceStatusEventPoorNetworkLocal = 30,
    
    NXDeviceStatusEventPoorNetworkRemote = 40,
    
    NXDeviceStatusEventCameraOn  = 50,
    
    NXDeviceStatusEventCameraOff  = 51,
    
    NXDeviceStatusEventMicMuted  = 60,
    
    NXDeviceStatusEventMicOpen = 61,
    
    NXDeviceStatusEventEnterBackground = 70,
    
    NXDeviceStatusEventEnterForeground = 71,
    
    NXDeviceStatusEventAudioInterruptedBegin = 80,
    
    NXDeviceStatusEventAudioInterruptedEnd = 81,
    
    NXDeviceStatusEventAudioGraphFail = 90,
};

struct NXNetworkInfo {
    int networkStatus;
	int RTT;
	int bandwidthDown;
	int bandwidthUp;
	int lossRateUp;
	int lossRateDown;
    int jitterBufferLoss;
};


#endif /* NXGlobalDefs_h */
