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

namespace JuSNS.Factory
{
    /// <summary>
    /// 不感兴趣投票类接口
    /// </summary>
    public interface IDisVote
    {
        /// <summary>
        /// 添加不感兴趣投票
        /// </summary>
        /// <param name="Info">不感兴趣投票实体类</param>
        /// <returns>添加成功返回1</returns>
        int Add(DisVoteInfo Info);
    }

    public sealed partial class DataAccess
    {
        public static IDisVote CreateDisVote()
        {
            string className = path + ".DisVote";
            return (IDisVote)Assembly.Load(path).CreateInstance(className);
        }
    }
}
