//
//  ERTCMembersNetworkManager.h
//  EZSaaSVideoConferenceSDK
//
//  Created by wangjinlong23 on 2022/6/24.
//  Copyright © 2022 EZSaaS. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class ERTCLocalAudioStatistics;
@class ERTCLocalVideoStatistics;
@class ERTCRemoteVideoStatistics;
@class ERTCRemoteAudioStatistics;

@protocol ERTCMembersNetworkManagerDelegate <NSObject>

- (void)onLocalAudioStats:(ERTCLocalAudioStatistics *)audioStats;
- (void)onLocalVideoStats:(NSMutableDictionary *)videoStats;
- (void)onRemoteAudioUpdate:(NSMutableDictionary *)data;
- (void)onRemoteVideoUpdate:(NSMutableDictionary *)data;

@end

@interface ERTCMembersNetworkManager : NSObject
@property (nonatomic, weak) id<ERTCMembersNetworkManagerDelegate> delegate;
+ (instancetype)sharedInstance;
- (void)onLocalAudioStats:(ERTCLocalAudioStatistics *)audioStats;
- (void)onLocalVideoStats:(ERTCLocalVideoStatistics *)videoStats;
- (void)onRemoteVideoStats:(ERTCRemoteVideoStatistics *)videoStats;
- (void)onRemoteAudioStats:(ERTCRemoteAudioStatistics *)audioStats;

//- (void)deleteLocalVideoData;
- (void)deleteRemoteData:(NSString *)userId;
@end

NS_ASSUME_NONNULL_END
