// // LCWebSocketManager.h // LiveChat // // Created by 张灿 on 2018/9/17. // Copyright © 2018年 caicai. All rights reserved. // #import #import "UCWebSocketSever.h" #import "UCSocketParmaModel.h" @protocol LCWebMagagerDelegate @optional - (void)requestSuccess; - (void)responseConnent; - (void)responseChoosing:(NSString*)tip; - (void)videoStart:(NSDictionary*)dict; - (void)videoEnd:(NSInteger)type; - (void)reciveTxt:(NSDictionary*)dict; //add by leo 20191031 更新剩余可通话时长 - (void)canCallTime:(NSString*)tip; // 对方剩余钻石 - (void)otherBalance:(NSInteger)balance; // 已减免时长 - (void)discountWithTime:(NSInteger)time; - (void)autoHangUp; @end @interface LCWebSocketManager : NSObject //@property(nonatomic,strong)UCWebSocketSever* socketServer; @property(nonatomic,weak)id delegate; @property(nonatomic,strong)NSString* roomId; - (instancetype)initWithDelegate:(id)delegate serverUrl:(NSString*)url roomId:(NSString*)roomId; - (void)stopConnect; //发送呼叫请求 - (void)sendCancel; //拒绝视频通话 - (void)sendRefuse; //接受视频通话 - (void)sendAgree; //type为1代表文本消息 - (void)sendChat:(NSInteger)type content:(NSString*)content; //发送礼物消息 - (void)sendGift:(NSString*)giftId count:(NSInteger)giftCount tyID:(NSString*)gift_type_id; //挂断 - (void)sendHangup; // 减免 - (void)discountWithTimerId:(NSString *)timerId; @end