using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using System.Windows.Forms;
namespace IDAL
{
    /// <summary>
    /// 数据访问层接口
    /// </summary>
    public interface IMusic
    {
        /// <summary>
        /// 搜索
        /// </summary>
        /// <param name="word">关键字</param>
        /// <param name="page">页码</param>
        /// <param name="num">搜索数量</param>
        /// <returns></returns>
        List<Music> Search(string word, int page, int num);
        /// <summary>
        /// 歌单解析
        /// </summary>
        /// <param name="id">歌单号</param>
        /// <returns></returns>
        List<Music> SearchCollection(string id);
        /// <summary>
        /// 获取信息
        /// </summary>
        /// <param name="m">实体</param>
        /// <returns></returns>
        bool GetData(Model.Music m);
        /// <summary>
        /// 获取歌词
        /// </summary>
        /// <param name="m">实体</param>
        void GetLrc(Model.Music m);
    }
}
