using System;

namespace NBitcoin
{
    public enum BIP9Deployments : int
    {
        TestDummy,
        CSV,
        Segwit
    }

    public class BIP9DeploymentsParameters
    {
        /// <summary>Special flag for timeout to indicate always active.</summary>
        public const long AlwaysActive = -1;

        public BIP9DeploymentsParameters(int bit, DateTimeOffset startTime, DateTimeOffset timeout)
        {
            this.Bit = bit;
            this.StartTime = startTime;
            this.Timeout = timeout;
        }

        public BIP9DeploymentsParameters(int bit, long startTime, long timeout)
            : this(bit, (DateTimeOffset) Utils.UnixTimeToDateTime(startTime), Utils.UnixTimeToDateTime(timeout))
        {

        }
        public int Bit
        {
            get;
            private set;
        }
        public DateTimeOffset StartTime
        {
            get;
            private set;
        }
        public DateTimeOffset Timeout
        {
            get;
            private set;
        }
    }
}
