avancement
continuous-integration/drone/push Build is passing Details

master
mohamed 2 years ago
parent 8c88c1d809
commit 1f22f7e017

Binary file not shown.

Binary file not shown.

@ -0,0 +1,34 @@
using Interface;
using Microsoft.AspNetCore.Mvc;
using Modele.Classe;
// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
namespace Api.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class FullSession : ControllerBase
{
private readonly IApi data;
public FullSession(IApi manager)
{
this.data = manager;
}
// GET: api/<FullSession>
[HttpGet]
public async Task<IActionResult> Get()
{
IEnumerable<Session> sessions = (await data.GetFullSessions());
if (sessions == null)
{
return NotFound();
}
return Ok(sessions
//.Select(e => e.ModeleToDTO())
);
}
}
}

@ -17,13 +17,13 @@ namespace Dto.Factories
piloteDTO.Pseudo = pilote.Pseudo; piloteDTO.Pseudo = pilote.Pseudo;
piloteDTO.Email = pilote.Email; piloteDTO.Email = pilote.Email;
piloteDTO.Image = pilote.Image;
return piloteDTO; return piloteDTO;
} }
public static Pilote DTOToModele(this PiloteDTO piloteDto) public static Pilote DTOToModele(this PiloteDTO piloteDto)
{ {
return new Pilote(_Pseudo:piloteDto.Pseudo,_Email:piloteDto.Email,_Password:"Inconnu !"); return new Pilote(_Pseudo:piloteDto.Pseudo,_Email:piloteDto.Email,_Password:"Inconnu !",_Image:piloteDto.Image);
} }
} }
} }

Binary file not shown.

File diff suppressed because one or more lines are too long

@ -11,7 +11,7 @@ namespace Entity_Framework.Entity
public long Id { get; set; } public long Id { get; set; }
public string Name { get; set; } public string Name { get; set; }
public string? Type { get; set; } public string? Type { get; set; }
public DateTime? Date { get; set; } public DateTime Date { get; set; }
// -------------------- Relation -------------------- // // -------------------- Relation -------------------- //
//Circuit //Circuit

@ -14,7 +14,7 @@ namespace Entity_Framework.Factories
public static Ecurie EntityToModele(this Ecuries dto) public static Ecurie EntityToModele(this Ecuries dto)
{ {
return new Ecurie(nameArg:dto.Name,_image:dto.Image); return new Ecurie(dto.Image,dto.Name );
} }
public static Ecuries ModeleToEntity(this Ecurie ecurie) public static Ecuries ModeleToEntity(this Ecurie ecurie)

@ -12,9 +12,20 @@ namespace Entity_Framework.Factories
{ {
public static Session EntityToModele(this Sessions entity) public static Session EntityToModele(this Sessions entity)
{ {
return new Session(IdArg:entity.Id,dateArg:entity.Date,nameArg: entity.Name, typeArg: entity.Type, nameCircuitArg: entity.Circuit.Name, namePiloteArg: entity.Pilote.Pseudo); string circuitName = entity.Circuit != null ? entity.Circuit.Name : "Inconnu !";
string pilotePseudo = entity.Pilote != null ? entity.Pilote.Pseudo : "Inconnu !";
return new Session(
IdArg: entity.Id,
dateArg: entity.Date,
nameArg: entity.Name,
typeArg: entity.Type,
nameCircuitArg: circuitName,
namePiloteArg: pilotePseudo
);
} }
public static Sessions ModeleToEntity(this Session modele) public static Sessions ModeleToEntity(this Session modele)
{ {
Sessions entity = new Sessions(); Sessions entity = new Sessions();

@ -12,7 +12,7 @@ namespace Entity_Framework.Factories
{ {
public static Tour EntityToModele(this Tours entity) public static Tour EntityToModele(this Tours entity)
{ {
return new Tour(TempsArg:entity.Temps,IdSessionArg:entity.IdSession); return new Tour(TempsArg:entity.Temps,IdSessionArg:entity.IdSession,NumeroArg:entity.Numero);
} }
public static Tours ModeleToEntity(this Tour modele) public static Tours ModeleToEntity(this Tour modele)

@ -1,379 +0,0 @@
// <auto-generated />
using System;
using Entity_Framework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Entity_Framework.Migrations
{
[DbContext(typeof(BDDContext))]
[Migration("20230322173709_test")]
partial class test
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.3");
modelBuilder.Entity("Entity_Framework.Entity.Circuits", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Name")
.IsUnique();
b.ToTable("Circuits");
b.HasData(
new
{
Id = 1,
Name = "test_CIRCUIT"
});
});
modelBuilder.Entity("Entity_Framework.Entity.Ecuries", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("IdPiloteProprietaire")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("IdPiloteProprietaire")
.IsUnique();
b.HasIndex("Name")
.IsUnique();
b.ToTable("Ecuries");
});
modelBuilder.Entity("Entity_Framework.Entity.Images", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Base64")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("IdPilote")
.HasColumnType("INTEGER");
b.HasKey("Id");
b.HasIndex("IdPilote")
.IsUnique();
b.ToTable("Images");
});
modelBuilder.Entity("Entity_Framework.Entity.Pilotes", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Email")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Pseudo")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("Email")
.IsUnique();
b.HasIndex("Pseudo")
.IsUnique();
b.ToTable("Pilotes");
b.HasData(
new
{
Id = 1,
Email = "test@gmail.com",
Password = "7NcYcNGWMxapfjrDQIyYNa2M8PPBvHA1J8MCZVNPda4=",
Pseudo = "test_PILOTE"
});
});
modelBuilder.Entity("Entity_Framework.Entity.Points", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<float>("A_Steer")
.HasColumnType("REAL");
b.Property<float>("Distance")
.HasColumnType("REAL");
b.Property<float>("G_Lat")
.HasColumnType("REAL");
b.Property<float>("G_Lon")
.HasColumnType("REAL");
b.Property<long>("IdTours")
.HasColumnType("INTEGER");
b.Property<double>("Latitude")
.HasColumnType("REAL");
b.Property<double>("Longitude")
.HasColumnType("REAL");
b.Property<float>("NGearASCII")
.HasColumnType("REAL");
b.Property<float>("P_BreakF")
.HasColumnType("REAL");
b.Property<float>("R_Pedal")
.HasColumnType("REAL");
b.Property<float>("Timer")
.HasColumnType("REAL");
b.Property<float>("V_Car")
.HasColumnType("REAL");
b.HasKey("Id");
b.HasIndex("IdTours");
b.ToTable("Points");
});
modelBuilder.Entity("Entity_Framework.Entity.Relations.Relation_Pilote_Ecurie", b =>
{
b.Property<int>("IdPilote")
.HasColumnType("INTEGER");
b.Property<int>("IdEcurie")
.HasColumnType("INTEGER");
b.Property<int>("EcurieId")
.HasColumnType("INTEGER");
b.Property<string>("Grade")
.IsRequired()
.HasColumnType("TEXT");
b.Property<int>("PiloteId")
.HasColumnType("INTEGER");
b.HasKey("IdPilote", "IdEcurie");
b.HasIndex("EcurieId");
b.HasIndex("PiloteId");
b.ToTable("RelationEcuriePilote");
});
modelBuilder.Entity("Entity_Framework.Entity.Sessions", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<DateTime>("Date")
.HasColumnType("TEXT");
b.Property<int>("IdCircuit")
.HasColumnType("INTEGER");
b.Property<int>("IdPilote")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Type")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("IdCircuit");
b.HasIndex("IdPilote");
b.ToTable("Sessions");
});
modelBuilder.Entity("Entity_Framework.Entity.Tours", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<long>("IdSession")
.HasColumnType("INTEGER");
b.Property<int>("Numero")
.HasColumnType("INTEGER");
b.Property<string>("Temps")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("IdSession");
b.ToTable("Tours");
});
modelBuilder.Entity("Entity_Framework.Entity.Ecuries", b =>
{
b.HasOne("Entity_Framework.Entity.Pilotes", "PiloteProprietaire")
.WithOne("EcuriePropriétaire")
.HasForeignKey("Entity_Framework.Entity.Ecuries", "IdPiloteProprietaire")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("PiloteProprietaire");
});
modelBuilder.Entity("Entity_Framework.Entity.Images", b =>
{
b.HasOne("Entity_Framework.Entity.Pilotes", "Pilote")
.WithOne("Image")
.HasForeignKey("Entity_Framework.Entity.Images", "IdPilote")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Pilote");
});
modelBuilder.Entity("Entity_Framework.Entity.Points", b =>
{
b.HasOne("Entity_Framework.Entity.Tours", "Tours")
.WithMany("Points")
.HasForeignKey("IdTours")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Tours");
});
modelBuilder.Entity("Entity_Framework.Entity.Relations.Relation_Pilote_Ecurie", b =>
{
b.HasOne("Entity_Framework.Entity.Ecuries", "Ecurie")
.WithMany("PilotesRelation")
.HasForeignKey("EcurieId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Entity_Framework.Entity.Pilotes", "Pilote")
.WithMany("Ecurie")
.HasForeignKey("PiloteId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Ecurie");
b.Navigation("Pilote");
});
modelBuilder.Entity("Entity_Framework.Entity.Sessions", b =>
{
b.HasOne("Entity_Framework.Entity.Circuits", "Circuit")
.WithMany("Course")
.HasForeignKey("IdCircuit")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Entity_Framework.Entity.Pilotes", "Pilote")
.WithMany("Sessions")
.HasForeignKey("IdPilote")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Circuit");
b.Navigation("Pilote");
});
modelBuilder.Entity("Entity_Framework.Entity.Tours", b =>
{
b.HasOne("Entity_Framework.Entity.Sessions", "Session")
.WithMany("Tours")
.HasForeignKey("IdSession")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Session");
});
modelBuilder.Entity("Entity_Framework.Entity.Circuits", b =>
{
b.Navigation("Course");
});
modelBuilder.Entity("Entity_Framework.Entity.Ecuries", b =>
{
b.Navigation("PilotesRelation");
});
modelBuilder.Entity("Entity_Framework.Entity.Pilotes", b =>
{
b.Navigation("Ecurie");
b.Navigation("EcuriePropriétaire")
.IsRequired();
b.Navigation("Image")
.IsRequired();
b.Navigation("Sessions");
});
modelBuilder.Entity("Entity_Framework.Entity.Sessions", b =>
{
b.Navigation("Tours");
});
modelBuilder.Entity("Entity_Framework.Entity.Tours", b =>
{
b.Navigation("Points");
});
#pragma warning restore 612, 618
}
}
}

@ -1,294 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Entity_Framework.Migrations
{
/// <inheritdoc />
public partial class test : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Circuits",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Circuits", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Pilotes",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Pseudo = table.Column<string>(type: "TEXT", nullable: false),
Email = table.Column<string>(type: "TEXT", nullable: false),
Password = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Pilotes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Ecuries",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: false),
IdPiloteProprietaire = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Ecuries", x => x.Id);
table.ForeignKey(
name: "FK_Ecuries_Pilotes_IdPiloteProprietaire",
column: x => x.IdPiloteProprietaire,
principalTable: "Pilotes",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Images",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Base64 = table.Column<string>(type: "TEXT", nullable: false),
IdPilote = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Images", x => x.Id);
table.ForeignKey(
name: "FK_Images_Pilotes_IdPilote",
column: x => x.IdPilote,
principalTable: "Pilotes",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Sessions",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: false),
Type = table.Column<string>(type: "TEXT", nullable: false),
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
IdCircuit = table.Column<int>(type: "INTEGER", nullable: false),
IdPilote = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Sessions", x => x.Id);
table.ForeignKey(
name: "FK_Sessions_Circuits_IdCircuit",
column: x => x.IdCircuit,
principalTable: "Circuits",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_Sessions_Pilotes_IdPilote",
column: x => x.IdPilote,
principalTable: "Pilotes",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "RelationEcuriePilote",
columns: table => new
{
IdPilote = table.Column<int>(type: "INTEGER", nullable: false),
IdEcurie = table.Column<int>(type: "INTEGER", nullable: false),
Grade = table.Column<string>(type: "TEXT", nullable: false),
PiloteId = table.Column<int>(type: "INTEGER", nullable: false),
EcurieId = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_RelationEcuriePilote", x => new { x.IdPilote, x.IdEcurie });
table.ForeignKey(
name: "FK_RelationEcuriePilote_Ecuries_EcurieId",
column: x => x.EcurieId,
principalTable: "Ecuries",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
table.ForeignKey(
name: "FK_RelationEcuriePilote_Pilotes_PiloteId",
column: x => x.PiloteId,
principalTable: "Pilotes",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Tours",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Temps = table.Column<string>(type: "TEXT", nullable: false),
Numero = table.Column<int>(type: "INTEGER", nullable: false),
IdSession = table.Column<long>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Tours", x => x.Id);
table.ForeignKey(
name: "FK_Tours_Sessions_IdSession",
column: x => x.IdSession,
principalTable: "Sessions",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "Points",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Timer = table.Column<float>(type: "REAL", nullable: false),
Latitude = table.Column<double>(type: "REAL", nullable: false),
Longitude = table.Column<double>(type: "REAL", nullable: false),
Distance = table.Column<float>(type: "REAL", nullable: false),
P_BreakF = table.Column<float>(type: "REAL", nullable: false),
NGearASCII = table.Column<float>(type: "REAL", nullable: false),
A_Steer = table.Column<float>(type: "REAL", nullable: false),
R_Pedal = table.Column<float>(type: "REAL", nullable: false),
G_Lon = table.Column<float>(type: "REAL", nullable: false),
G_Lat = table.Column<float>(type: "REAL", nullable: false),
V_Car = table.Column<float>(type: "REAL", nullable: false),
IdTours = table.Column<long>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Points", x => x.Id);
table.ForeignKey(
name: "FK_Points_Tours_IdTours",
column: x => x.IdTours,
principalTable: "Tours",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.InsertData(
table: "Circuits",
columns: new[] { "Id", "Name" },
values: new object[] { 1, "test_CIRCUIT" });
migrationBuilder.InsertData(
table: "Pilotes",
columns: new[] { "Id", "Email", "Password", "Pseudo" },
values: new object[] { 1, "test@gmail.com", "7NcYcNGWMxapfjrDQIyYNa2M8PPBvHA1J8MCZVNPda4=", "test_PILOTE" });
migrationBuilder.CreateIndex(
name: "IX_Circuits_Name",
table: "Circuits",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Ecuries_IdPiloteProprietaire",
table: "Ecuries",
column: "IdPiloteProprietaire",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Ecuries_Name",
table: "Ecuries",
column: "Name",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Images_IdPilote",
table: "Images",
column: "IdPilote",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Pilotes_Email",
table: "Pilotes",
column: "Email",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Pilotes_Pseudo",
table: "Pilotes",
column: "Pseudo",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Points_IdTours",
table: "Points",
column: "IdTours");
migrationBuilder.CreateIndex(
name: "IX_RelationEcuriePilote_EcurieId",
table: "RelationEcuriePilote",
column: "EcurieId");
migrationBuilder.CreateIndex(
name: "IX_RelationEcuriePilote_PiloteId",
table: "RelationEcuriePilote",
column: "PiloteId");
migrationBuilder.CreateIndex(
name: "IX_Sessions_IdCircuit",
table: "Sessions",
column: "IdCircuit");
migrationBuilder.CreateIndex(
name: "IX_Sessions_IdPilote",
table: "Sessions",
column: "IdPilote");
migrationBuilder.CreateIndex(
name: "IX_Tours_IdSession",
table: "Tours",
column: "IdSession");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Images");
migrationBuilder.DropTable(
name: "Points");
migrationBuilder.DropTable(
name: "RelationEcuriePilote");
migrationBuilder.DropTable(
name: "Tours");
migrationBuilder.DropTable(
name: "Ecuries");
migrationBuilder.DropTable(
name: "Sessions");
migrationBuilder.DropTable(
name: "Circuits");
migrationBuilder.DropTable(
name: "Pilotes");
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,12 +1,56 @@
using Dto.Classe; using Dto.Classe;
using Entity_Framework.Entity;
using Entity_Framework;
using Interface; using Interface;
using Modele.Classe; using Modele.Classe;
using Entity_Framework.Factories;
using System.Text.Json.Nodes;
namespace Extraction_Donnees.Extraction namespace Extraction_Donnees.Extraction
{ {
public partial class Extraction : IApi public partial class Extraction : IApi
{ {
public Task<IEnumerable<Session>> GetFullSessions()
{
List<Session> result = new();
using (BDDContext db = new BDDContext())
{
foreach(var session in db.Sessions)
{
Session sesh = session.EntityToModele();
sesh.Tours = new List<Tour>();
foreach(var t in db.Tours.Where(t => t.IdSession == sesh.Id))
{
var ta = t.EntityToModele();
ta.Points = new List<Point>();
ta.Id = t.Id;
sesh.Tours.Add(ta);
}
foreach (var t in sesh.Tours)
{
foreach(var p in db.Points)
{
if(t.IdSession == t.Id)
{
t.Points.Add(p.EntityToModele());
}
}
foreach(var p in db.Points.Where(p => p.IdTours == t.Id))
{
t.Points.Add(p.EntityToModele());
}
}
result.Add(sesh);
}
}
return Task.FromResult( result as IEnumerable<Session> );
}
} }
} }

@ -26,6 +26,7 @@ namespace Interface
// Session // Session
Task<IEnumerable<Session>> GetSessionsByPilotes(string pseudo); Task<IEnumerable<Session>> GetSessionsByPilotes(string pseudo);
Task<IEnumerable<Session>> GetFullSessions();
Task<Session> AddSession(Session session, string namePseudo, string nameCircuit,string nameSession,string typeSession); Task<Session> AddSession(Session session, string namePseudo, string nameCircuit,string nameSession,string typeSession);

@ -8,14 +8,16 @@ namespace Modele.Classe
{ {
public class Tour public class Tour
{ {
public long Id { get; set; }
public string Temps { get; set; } public string Temps { get; set; }
public int Numero { get; set; } public int Numero { get; set; }
public long IdSession { get; set; } public long IdSession { get; set; }
public List<Point> Points { get; set; } public List<Point> Points { get; set; }
public Tour(string TempsArg,long IdSessionArg) public Tour(string TempsArg,long IdSessionArg,int NumeroArg)
{ {
Numero = NumeroArg;
Temps = TempsArg; Temps = TempsArg;
IdSession = IdSessionArg; IdSession = IdSessionArg;
} }

Loading…
Cancel
Save