From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- Gestor.Model/Model.Domain.Common/Fipe.cs | 138 ------------------------------- 1 file changed, 138 deletions(-) delete mode 100644 Gestor.Model/Model.Domain.Common/Fipe.cs (limited to 'Gestor.Model/Model.Domain.Common/Fipe.cs') diff --git a/Gestor.Model/Model.Domain.Common/Fipe.cs b/Gestor.Model/Model.Domain.Common/Fipe.cs deleted file mode 100644 index 3a3accc..0000000 --- a/Gestor.Model/Model.Domain.Common/Fipe.cs +++ /dev/null @@ -1,138 +0,0 @@ -using Gestor.Model.Helper; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class Fipe - { - private string _codigo; - - private string _marca; - - private string _modelo; - - private int _anoMaximo; - - private int _anoMinimo; - - public int AnoMaximo - { - get - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - return this._anoMaximo; - } - return ( - from d in this.Detalhes - orderby d.AnoModelo descending - select d).First().AnoModelo.ToInt(); - } - set - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - this._anoMaximo = value; - } - } - } - - public int AnoMinimo - { - get - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - return this._anoMinimo; - } - return ( - from d in this.Detalhes - orderby d.AnoModelo - select d).First().AnoModelo.ToInt(); - } - set - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - this._anoMinimo = value; - } - } - } - - public string Codigo - { - get - { - string str = this._codigo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._codigo = value; - } - } - - public List Detalhes - { - get; - set; - } - - public int? IdFabricante - { - get; - set; - } - - public string Marca - { - get - { - string str = this._marca; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._marca = value; - } - } - - public string Modelo - { - get - { - string str = this._modelo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._modelo = value; - } - } - - public int TipoVeiculo - { - get; - set; - } - - public Fipe() - { - } - } -} \ No newline at end of file -- cgit v1.2.3