예제 #1
0
        private void UpdateUserList(int m_UserID, int m_Index)
        {
            clsMemberList.MemberItem m_TempItem = new clsMemberList.MemberItem(); //创建用户在线列表(自定义,包含用户属性)
            StringBuilder            m_TempName = new StringBuilder(30);
            int ret = AnyChatCoreSDK.GetUserName(m_UserID, m_TempName, 30);       //获取用户账号

            m_TempItem.m_UserName   = m_TempName.ToString();
            m_TempItem.m_UserID     = m_UserID;
            m_TempItem.m_Index      = m_Index;
            m_TempItem.m_Permission = new int[] { 0, 0, 0 }; //用户权限
            m_MemberItem.Add(m_TempItem);                    //添加到在线用户列表
        }
예제 #2
0
 private void UpdateUserList(int m_UserID,int m_Index)
 {
     clsMemberList.MemberItem m_TempItem = new clsMemberList.MemberItem();//�����û������б���Զ��壬�����û����ԣ�
     StringBuilder m_TempName = new StringBuilder(30);
     int ret = AnyChatCoreSDK.GetUserName(m_UserID, m_TempName, 30);//��ȡ�û��˺�
     m_TempItem.m_UserName = m_TempName.ToString();
     m_TempItem.m_UserID = m_UserID;
     m_TempItem.m_Index = m_Index;
     m_TempItem.m_Permission = new int[] { 0, 0, 0 };//�û�Ȩ��
     m_MemberItem.Add(m_TempItem);//��ӵ������û��б�
 }