using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace JuSNS.Factory.ApiInterface
{
    public interface IFriend
    {
        /// <summary>
        /// 得所指定用户所有好友
        /// </summary>
        /// <param name="UserID">用户ID</param>
        /// <returns></returns>
        int[] Get(int UserID);
        /// <summary>
        /// 是否是朋友
        /// </summary>
        /// <param name="UserID">用户ID</param>
        /// <param name="FriendID">朋友ID</param>
        /// <returns></returns>
        bool AreFriends(int UserID, int FriendID);
        /// <summary>
        /// 取得安装了某APP的好友ID
        /// </summary>
        /// <param name="UserID"></param>
        /// <param name="AppID"></param>
        /// <returns></returns>
        int[] GetAppUsers(int UserID, int AppID);
    }
    public sealed partial class DataAccess
    {
        public static IFriend CreateFriend()
        {
            string className = path + ".ApiInterface.Friend";
            return (IFriend)Assembly.Load(path).CreateInstance(className);
        }
    }
}
