//
//  YCKCallStatus.h
//  YCKit
//
//  Created by 徐家骏 on 2019/11/19.
//  Copyright © 2019 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YCKCallStatus : NSObject

@property(nonatomic)   int       trafficIn;
@property(nonatomic)   int       trafficOut;

@property(nonatomic)   int       bandwidthDown;
@property(nonatomic)   int       bandwidthUp;
@property(nonatomic)   int       RTT;
@property(nonatomic)   int       meRTT;
@property(nonatomic)   int       downRTT;
@property(nonatomic)   int       repairRate;
@property(nonatomic)   int       audioQuality;
@property(nonatomic)   int       voiceRatio;
@property(nonatomic)   BOOL      denoiseOn;

@property(nonatomic)   int       jitterCount;
@property(nonatomic)   int       lossRateDown;
@property(nonatomic)   int       lossRateUp;
@property(nonatomic)   int       jitterBufferLossRate;

@property(nonatomic)   int      networkReachable;
@property(nonatomic)   int      lastBandwidthdUpAvailable;

@property(nonatomic)   int      liveAccumulateTime;

- (int)getNetworkQuality; //通过以上数据，综合算出一个0-100的数据，0:网络不通，1-30：差，30-60：不稳定，60-100：网络可
- (int)computeNetworkQuality; //直接在get里算遇到一个问题，不同的地方会来取，每次都重复计算。compute则每秒钟一次计算（状态机里触发）

@end

NS_ASSUME_NONNULL_END

/*
 nack统计信息
 relay相关信息
 */
