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);
     }
 }
Example #2
0
 void OnOperateMsglogCompleted(ResponseCode code, string uid, NIM.Session.NIMSessionType sType)
 {
     ShowOperationResult(new { Code = code, Id = uid, SessionType = sType });
 }
Example #3
0
        void OnQueryMsgLogCompleted(ResponseCode code, string accountId, NIM.Session.NIMSessionType sType, MsglogQueryResult result)
        {
            var x = new { Code = code, AccountId = accountId, Result = result };

            ShowOperationResult(x);
        }