using Elwig.Models.Dtos;
using System.Collections.Generic;

namespace Elwig.Documents {
    public class WineQualityStatistics : Document {

        public new static string Name => "Qualitätsstatistik";

        public readonly string[][] QualIds = [["WEI"], ["RSW", "LDW"], ["QUW"], ["KAB"]];
        public readonly Dictionary<string, string> QualityLevels = new() {
            ["WEI"] = "Wein",
            ["RSW"] = "Rebsortenwein",
            ["LDW"] = "Landwein",
            ["QUW"] = "Qualitätswein",
            ["KAB"] = "Kabinett",
        };

        public string Filter;
        public WineQualityStatisticsData Data;
        public bool UseOe => Data.UseOe;

        public WineQualityStatistics(string filter, WineQualityStatisticsData data) : base($"{Name} {filter}") {
            Filter = filter;
            Data = data;
        }
    }
}
