public ChatForm(string id, NIM.Session.NIMSessionType st = NIM.Session.NIMSessionType.kNIMSessionTypeP2P, bool isRobot = false) : this() { _peerId = id; room_name = "1554554"; _sessionType = st; if (st != NIM.Session.NIMSessionType.kNIMSessionTypeP2P) { testMediaBtn.Visible = false; testRtsBtn.Visible = false; } _isRobot = isRobot; if (_isRobot) { base.Text = string.Format("与 机器人-{0} 聊天中", _peerId); } else { base.Text = string.Format("与 {0} 聊天中", _peerId); } }
void OnOperateMsglogCompleted(ResponseCode code, string uid, NIM.Session.NIMSessionType sType) { ShowOperationResult(new { Code = code, Id = uid, SessionType = sType }); }
void OnQueryMsgLogCompleted(ResponseCode code, string accountId, NIM.Session.NIMSessionType sType, MsglogQueryResult result) { var x = new { Code = code, AccountId = accountId, Result = result }; ShowOperationResult(x); }