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

namespace JuSNS.Factory.ApiInterface
{
    public interface INotification
    {
        /// <summary>
        /// 发送通知
        int Send(NoticeInfo info);
        /// <summary>
        /// 取得通知信息
        /// </summary>
        /// <param name="UserID">用户ID</param>
        /// <param name="AppID">应用程序ID</param>
        /// <returns></returns>
        List<NoticeInfo> GetNotice(int UserID, int AppID);
    }
    public sealed partial class DataAccess
    {
        public static INotification CreateNotification()
        {
            string className = path + ".ApiInterface.Notification";
            return (INotification)Assembly.Load(path).CreateInstance(className);
        }
    }
}
