using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TarifasANEEL
{


    public class Rootobject
    {
        public string? help { get; set; }
        public bool success { get; set; }
        public required Result result { get; set; }
    }

    public class Result
    {
        public bool include_total { get; set; }
        public int limit { get; set; }
        public string? records_format { get; set; }
        public string? resource_id { get; set; }
        public object? total_estimation_threshold { get; set; }
        public Record[]? records { get; set; }
        public Field[]? fields { get; set; }
        public _Links? _links { get; set; }
        public int total { get; set; }
        public bool total_was_estimated { get; set; }
    }

    public class _Links
    {
        public string? start { get; set; }
        public string? next { get; set; }
    }

    public class Record
    {
        public int _id { get; set; }
        public string? DatGeracaoConjuntoDados { get; set; }
        public string? DscREH { get; set; }
        public string? SigAgente { get; set; }
        public string? NumCNPJDistribuidora { get; set; }
        public string? DatInicioVigencia { get; set; }
        public string? DatFimVigencia { get; set; }
        public string? DscBaseTarifaria { get; set; }
        public string? DscSubGrupo { get; set; }
        public string? DscModalidadeTarifaria { get; set; }
        public string? DscClasse { get; set; }
        public string? DscSubClasse { get; set; }
        public string? DscDetalhe { get; set; }
        public string? NomPostoTarifario { get; set; }
        public string? DscUnidadeTerciaria { get; set; }
        public string? SigAgenteAcessante { get; set; }
        public string? VlrTUSD { get; set; }
        public string? VlrTE { get; set; }
    }

    public class Field
    {
        public string? id { get; set; }
        public string? type { get; set; }
    }


}
