using System.Xml.Serialization;

namespace Valg.EVA.Skanning.UserInterfaceElements.UserSettings
{
    [XmlRoot]
    public class UserSettings
    {
        public UserSettings()
        {
            SetDefaultValues();
        }

        private void SetDefaultValues()
        {
            this.ShowBallotCompleteTip = true;
            this.ShowVerifyNavigationTip = true;
            this.ShowAutoVerifyTip = true;
            this.ShowSelectScannerModel = true;
        }

        [XmlElement]
        public int Version { get; set; }
        
        [XmlElement]
        public string Language { get; set; }

        [XmlElement]
        public bool ShowVerifyNavigationTip { get; set; }

        [XmlElement]
        public bool ShowBallotCompleteTip { get; set; }

        [XmlElement]
        public bool ShowBlankBallotInformation { get; set; }

        [XmlElement]
        public bool ShowUnknownBallotInformation { get; set; }

        [XmlElement]
        public bool ShowAutoVerifyTip { get; set; }

        [XmlElement]
        public bool ShowSelectScannerModel { get; set; }
        
        [XmlElement]
        public string SelectedScannerModel { get; set; }
                
        [XmlElement]
        public string SelectedUnsupportedDriver { get; set; }        
        
        [XmlElement]
        public bool EmulateScanner { get; set; }
    }
}

