﻿using System.Collections.Generic;

namespace ChatSDK
{
    /**
 * The user information manager for updating and getting user attributes.
 */
    public abstract class IUserInfoManager
    {
        /**
         * Modifies the information of the current user.
         *
         * @param userInfo  The user information to be modified.
         * @param handle	The operation callback. See {@link CallBack}.
         */
        public abstract void UpdateOwnInfo(UserInfo userInfo, CallBack handle = null);

        /**
         * Gets user information by user ID.
         *
         * @param userIds   The list of user IDs.
         * @param handle	The operation callback. If success, the user information dictionary is returned; otherwise, an error is returned. See {@link ValueCallBack}.
         */        
	    public abstract void FetchUserInfoByUserId(List<string> idList, ValueCallBack<Dictionary<string, UserInfo>> handle = null);
    }
}
