using qdr.fnd.core.pqueue.Enums;

namespace qdr.fnd.core.pqueue
{
    public class PsStatusHistory
    {
        #region *** Properties ***
        public DateTime Created { get; }
        public PsStatusEnum PreviousStatus { get; }
        public bool PreviousIsStatusTransient { get; }
        public string? Description { get; }
        #endregion
        #region *** Constructors ***

        public PsStatusHistory(PsStatusEnum previousStatus, bool previousIsStatusTransient,
            string? description, DateTime? created = null)
        {
            Created = created ?? DateTime.Now;
            PreviousStatus = previousStatus;
            PreviousIsStatusTransient = previousIsStatusTransient;
            Description = description;
        }
        #endregion
    }
}
