using System;

namespace WK5.Core.PageModels.Tools.Regalfinder
{
    public sealed class RegalFinderInput
    {
        private int _menge = 1;

        public RegalFinderModus Modus { get; set; } = RegalFinderModus.LagerplatzSuchen;

        public string Artikelnummer { get; set; } = String.Empty;
        public string Ean { get; set; } = String.Empty;
        public string Herstellernummer { get; set; } = String.Empty;
        public string AlternativArtikelnummer { get; set; } = String.Empty;
        public string Lagerplatz { get; set; } = String.Empty;
        public int Menge { get => _menge; set => _menge = value > 0 ? value : 1; }
    }
}
