﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SmtpComAPI.samples;

namespace SmtpCom_API_Samples.examples
{
    public partial class GetClicks : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DateFrom.Text = DateTime.Now.AddDays(-30).ToString();
            DateTo.Text = DateTime.Now.ToString();
        }

        public void DoSubmit(object sender, EventArgs e)
        {
            ApiResponse.Text = Stats.GetClicks(DateFrom.Text, DateTo.Text, int.Parse(NumPerPage.Text), int.Parse(PageNumber.Text), Sender.Text, CampaignID.Text);
        }
    }
}