Example #1
0
        /// <summary>
        /// 创建聊天室(即:暂态对话)
        /// </summary>
        /// <param name="conversationName">聊天室名称</param>
        /// <returns></returns>
        public Task <AVIMConversation> CreateChatRoomAsync(string conversationName)
        {
            var conversation = new AVIMConversation()
            {
                Name = conversationName
            };

            return(CreateConversationAsync(conversation));
        }
Example #2
0
        /// <summary>
        /// 创建与目标成员的对话
        /// </summary>
        /// <param name="member">目标成员</param>
        /// <param name="isUnique">是否是唯一对话</param>
        /// <returns></returns>
        public Task <AVIMConversation> CreateConversationAsync(string member = "", bool isUnique = true)
        {
            var members = new List <string>()
            {
                member
            };
            var conversation = new AVIMConversation(members: members);

            return(CreateConversationAsync(conversation, isUnique));
        }
Example #3
0
        /// <summary>
        /// 创建与目标成员的对话
        /// </summary>
        /// <param name="members">目标成员</param>
        /// <param name="isUnique">是否是唯一对话</param>
        /// <returns></returns>
        public Task <AVIMConversation> CreateConversationAsync(IList <string> members = null, bool isUnique = true)
        {
            var conversation = new AVIMConversation(members: members);

            return(CreateConversationAsync(conversation, isUnique));
        }