Ejemplo n.º 1
0
 private void MembersJoinedListener_OnMembersJoined(object sender, AVIMOnMembersJoinedEventArgs e)
 {
     if (OnMembersJoined != null)
     {
         OnMembersJoined(this, e);
     }
 }
 public virtual void OnNoticeReceived(AVIMNotice notice)
 {
     if (m_OnMembersJoined != null)
     {
         var joinedMembers = AVDecoder.Instance.DecodeList <string>(notice.RawData["m"]);
         var ivitedBy      = notice.RawData["initBy"].ToString();
         var conersationId = notice.RawData["cid"].ToString();
         var args          = new AVIMOnMembersJoinedEventArgs()
         {
             ConversationId = conersationId,
             InvitedBy      = ivitedBy,
             JoinedMembers  = joinedMembers
         };
         m_OnMembersJoined.Invoke(this, args);
     }
 }