namespace ZionVault.Importers.Param
{
    public class Csv
    {
        string header;
        int index;
        string value;

        public Csv(string header, string value)
        {
            this.header = header;
            this.value = value;
        }

        public Csv(int header, string value)
        {
            this.index = header;
            this.value = value;
            this.header = string.Empty;
        }

        public string Header
        {
            get
            {
                return header != string.Empty ? header : index.ToString();
            }
        }

        public string Value { get => value; }
    }
}
