using System;
using System.Collections.Generic;
using System.Reflection;
using JuSNS.Model;

namespace JuSNS.Factory
{
    /// <summary>
    /// 群组邀请类
    /// </summary>
    public interface IGroupInvitel
    {
        /// <summary>
        /// 邀请(申请)加入群组
        /// </summary>
        /// <param name="Info">群组邀请实体类</param>
        /// <returns>添加成功返回1</returns>
        int Add(GroupInviteInfo Info);

        /// <summary>
        /// 回复邀请(申请)加入群组
        /// </summary>
        /// <param name="Info">群组邀请实体类</param>
        /// <returns>回复成功返回1</returns>
        int Reponse(GroupInviteInfo Info);
    }
    public sealed partial class DataAccess
    {
        public static IGroupInvitel CreateGroupInvitel()
        {
            string className = path + ".GroupInvitel";
            return (IGroupInvitel)Assembly.Load(path).CreateInstance(className);
        }
    }
}
