Skip to content

Commit

Permalink
refactor: using namespaces;
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Mar 21, 2024
1 parent 39fd74e commit 57625a0
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
namespace Core;
using Core.Dtos.Entidades;

namespace Core.Dtos.Configuracoes;

public class GerarHorarioOptions
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;


public enum DiaSemanaIso
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;

public class Diario
{
public string Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;

public class DisponibilidadeDia
{
public int DiaSemanaIso { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;

public class Intervalo
{
public string HorarioInicio { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;

public class Professor
{
public string Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
namespace Core;
namespace Core.Dtos.Entidades;

public class Turma
{
public string Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Core;
namespace Core.Dtos.HorarioGerado;

public class HorarioGerado
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Core;
namespace Core.Dtos.HorarioGerado;

public class HorarioGeradoAula
{
Expand Down
4 changes: 3 additions & 1 deletion projeto-gerar-horario/Core/Gerador/Gerador.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Core.Dtos.Configuracoes;
using Core.Dtos.HorarioGerado;
using Google.OrTools.Sat;

namespace Core;
namespace Core.Gerador;

public class Gerador
{
Expand Down
2 changes: 1 addition & 1 deletion projeto-gerar-horario/Core/Gerador/PropostaAula.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Google.OrTools.Sat;

namespace Core;
namespace Core.Gerador;

public class PropostaAula(
int diaSemanaIso,
Expand Down
5 changes: 3 additions & 2 deletions projeto-gerar-horario/Core/Main.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Google.OrTools.Bop;
using Core.Dtos.Configuracoes;
using Core.Dtos.Entidades;

namespace Core;

Expand All @@ -18,7 +19,7 @@ public bool Retorno()
};

// ====================================================
var horarioGeradoEnumerator = Gerador.GerarHorario(gerarHorarioOptions);
var horarioGeradoEnumerator = Gerador.Gerador.GerarHorario(gerarHorarioOptions);
// ====================================================

var melhorHorario = horarioGeradoEnumerator.First();
Expand Down

0 comments on commit 57625a0

Please sign in to comment.