using BallotTemplates;

namespace InterpreterLibrary.Models
{
    public class Change
    {
        public int CandidateNumber { get; }
        public float FillPercentage;
        public string Text;
        public ChangeField TemplateField;
        public OcrResult CandidateName;

        protected Change(int candidateNumber, string text, float fillPercentage, ChangeField field, OcrResult candidateName = null)
        {
            CandidateNumber = candidateNumber;
            Text = text;
            FillPercentage = fillPercentage;
            TemplateField = field;
            CandidateName = candidateName;
        }

        public override string ToString()
        {
            return $"{CandidateNumber}: '{Text}'";
        }
    }
}
