using System;
using System.Collections.Generic;
using System.Text;

namespace Dfs.WayneChina.HengshanPayTerminal
{
    /// <summary>
    /// Pump accumulator/totalizer data.
    /// Normally volume, but sometimes amount total could be present.
    /// </summary>
    public class TotalizerDataEventArgs : EventArgs
    {
        public TotalizerDataEventArgs(int nozzleNo, Tuple<int, int> totalizer)
        {
            NozzleNo = nozzleNo;
            Totalizer = totalizer;
        }

        public TotalizerDataEventArgs(Tuple<int, int> totalizer)
        {
            Totalizer = totalizer;
        }

        public int NozzleNo { get; set; }

        /// <summary>
        /// Totalizer data, Item1 is Amount Total, Item2 is Volume Total.
        /// </summary>
        public Tuple<int, int> Totalizer { get; set; }
    }
}