Ejemplo n.º 1
0
 private void MembersLeftListener_OnMembersLeft(object sender, AVIMOnMembersLeftEventArgs e)
 {
     if (OnMembersLeft != null)
     {
         OnMembersLeft(this, e);
     }
 }
 public virtual void OnNoticeReceived(AVIMNotice notice)
 {
     if (m_OnMembersLeft != null)
     {
         var leftMembers   = AVDecoder.Instance.DecodeList <string>(notice.RawData["m"]);
         var kickedBy      = notice.RawData["initBy"].ToString();
         var conersationId = notice.RawData["cid"].ToString();
         var args          = new AVIMOnMembersLeftEventArgs()
         {
             ConversationId = conersationId,
             KickedBy       = kickedBy,
             LeftMembers    = leftMembers
         };
         m_OnMembersLeft.Invoke(this, args);
     }
 }