public IResult ExitNCRoom(string roomId) { clientSocket.Send(MessageTranslate.EncapsulationInfo(MessageContent.退出答疑室, MessageType.通知, roomId)); UserInfo.RoomID = null; try { callOMCS.ExitRoom(); } catch (Exception e) { OnException?.Invoke(e); return(new Result(baseResult.Faild, e.Message)); } return(new Result(baseResult.Successful)); }
public IResult ExitNCRoom(string roomId) { clientSocket.Send(MessageTranslate.EncapsulationInfo(MessageContent.退出答疑室, MessageType.通知, roomId)); callOMCS.ExitRoom(); return(new Result(baseResult.Successful)); }