using System;
using System.Data;

namespace Model.Ad
{
/// <summary>
/// 添加广告的集合
/// </summary>

public class AdItiem
{
    public AdItiem() { }
    /// <summary>
    /// 初始化广告集合的值
    /// </summary>
    ///<param name="adHeight">广告高度</param>
    /// <param name="adWidth">广告宽度</param>
    ///<param name="adrees">广告默认链接地址</param>
    ///<param name="id">广告位id号</param>
    ///<param name="startTime">广告投放开始时间</param>
    ///<param name="endTime">广告投放结束时间</param>
    ///<param name="imgageAdrees">广告图片默认链接地址</param>
    ///<param name="name">广告名称</param>
    ///<param name="type">广告类型</param>
    ///<param name="mark">价格</param>
    ///<param name="page">所在的页面</param>
	public AdItiem(string type,int id,string name,string adrees,string imageAdrees,DateTime startTime,DateTime endTime,int adHeight,int adWidth,decimal mark,string page)
	{
        this._type = type;
        this._id = id;
        this._name = name;
        this._adrees = adrees;
        this._imageAdrees = imageAdrees;
        this._startTime = startTime;
        this._endTime = endTime;
        this._adWidth = adWidth;
        this._adHeight = adHeight;
        this._mark = mark;
        this._page = page;
   
	}
    private string _type;
    private int _id;
    private string _name;
    private string _adrees;
    private string _imageAdrees;
    private DateTime _startTime;
    private DateTime _endTime;
    private int _adHeight;
    private int _adWidth;
    private decimal _mark;
    private string _page;

    #region //属性
    /// <summary>
    /// 广告类型
    /// </summary>
    public  string Type 
    {
        get { return _type; }
        set { _type = value; }
    }
    /// <summary>
    /// 广告ID
    /// </summary>
    public int Id 
    {
        get { return _id; }
        set { _id = value; }
    }
    /// <summary>
    /// 广告名称
    /// </summary>
    public string Name 
    {
        get { return _name; }
        set { _name = value; }
    }
    /// <summary>
    ///默认链接地址
    /// </summary>
    public string Adrees 
    {
        get { return _adrees; }
        set { _adrees = value; }
    }
    /// <summary>
    /// 图片默认链接地址
    /// </summary>
    public string IamgeAdress 
    {
        get { return _imageAdrees; }
        set { _imageAdrees = value; }
    }
    /// <summary>
    /// 投放开始日期
    /// </summary>
    public DateTime  StartTime 
    {
        get { return _startTime; }
        set { _startTime = value; }
    }
    /// <summary>
    /// 投放结束日期
    /// </summary>
    public DateTime EndTime 
    {
        get { return _endTime; }
        set { _endTime = value; }
    }
 
    /// <summary>
    /// 图片高度
    /// </summary>
    public int AdHeight 
    {
        get { return _adHeight; }
        set {_adHeight = value; }
    }
    /// <summary>
    /// 图片宽度
    /// </summary>
    public int AdWidth 
    {
        get { return _adWidth; }
        set { _adWidth = value; }
    }
    /// <summary>
    /// 价格
    /// </summary>
    public decimal Mark 
    {
        get { return _mark; }
        set { _mark = value; }
    }
    /// <summary>
    /// 所在的页面
    /// </summary>
    public string Page 
    {
        get { return _page; }
        set { _page = value; }
    }
  
    #endregion 
}
}