parent
d47c162330
commit
823251d892
@ -0,0 +1,61 @@ |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Reflection; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Mvc.Controllers; |
||||
using Microsoft.AspNetCore.Mvc.Filters; |
||||
using Microsoft.AspNetCore.Mvc.ModelBinding; |
||||
|
||||
namespace IO.Swagger.Attributes |
||||
{ |
||||
/// <summary> |
||||
/// Model state validation attribute |
||||
/// </summary> |
||||
public class ValidateModelStateAttribute : ActionFilterAttribute |
||||
{ |
||||
/// <summary> |
||||
/// Called before the action method is invoked |
||||
/// </summary> |
||||
/// <param name="context"></param> |
||||
public override void OnActionExecuting(ActionExecutingContext context) |
||||
{ |
||||
// Per https://blog.markvincze.com/how-to-validate-action-parameters-with-dataannotation-attributes/ |
||||
var descriptor = context.ActionDescriptor as ControllerActionDescriptor; |
||||
if (descriptor != null) |
||||
{ |
||||
foreach (var parameter in descriptor.MethodInfo.GetParameters()) |
||||
{ |
||||
object args = null; |
||||
if (context.ActionArguments.ContainsKey(parameter.Name)) |
||||
{ |
||||
args = context.ActionArguments[parameter.Name]; |
||||
} |
||||
|
||||
ValidateAttributes(parameter, args, context.ModelState); |
||||
} |
||||
} |
||||
|
||||
if (!context.ModelState.IsValid) |
||||
{ |
||||
context.Result = new BadRequestObjectResult(context.ModelState); |
||||
} |
||||
} |
||||
|
||||
private void ValidateAttributes(ParameterInfo parameter, object args, ModelStateDictionary modelState) |
||||
{ |
||||
foreach (var attributeData in parameter.CustomAttributes) |
||||
{ |
||||
var attributeInstance = parameter.GetCustomAttribute(attributeData.AttributeType); |
||||
|
||||
var validationAttribute = attributeInstance as ValidationAttribute; |
||||
if (validationAttribute != null) |
||||
{ |
||||
var isValid = validationAttribute.IsValid(args); |
||||
if (!isValid) |
||||
{ |
||||
modelState.AddModelError(parameter.Name, validationAttribute.FormatErrorMessage(parameter.Name)); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,212 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class CollaborateursApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer un collaboratuer par son id</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/collaborateurs/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetCollaborateurById")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetCollaborateurById([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(CollaborateurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<CollaborateurDTO>(exampleJson) |
||||
: default(CollaborateurDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer un collaborateur par son mail</remarks> |
||||
/// <param name="mail">mail de l'utilisateur connecté (mail obtenu via le token Keycloak)</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/collaborateurs/{mail}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetCollaborateurByMail")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetCollaborateurByMail([FromRoute][Required]string mail) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(CollaborateurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<CollaborateurDTO>(exampleJson) |
||||
: default(CollaborateurDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des collaborateurs</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="fonctions">Liste des fonctions des collaborateurs que l'on veut récupérer</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="idBU">id de la business unit à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/collaborateurs")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetCollaborateurs")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetCollaborateurs([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]int? idAgence, [FromQuery]int? idBU, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<CollaborateurDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson) |
||||
: default(List<CollaborateurDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des collaborateurs dont le référent à la charge</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/collaborateurs/referent/{idReferent}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetCollaborateursByReferent")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetCollaborateursByReferent([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<CollaborateurDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson) |
||||
: default(List<CollaborateurDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer un profil collaborateur par mail</remarks> |
||||
/// <param name="mail">mail de l'utilisateur connecté (mail obtenu via le token Keycloak)</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/collaborateurs/{mail}/profil")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetProfilCollaborateurByMail")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(ProfilDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetProfilCollaborateurByMail([FromRoute][Required]string mail) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(ProfilDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<ProfilDTO>(exampleJson) |
||||
: default(ProfilDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,125 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class DemandesDelegationApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Faire une demande de délégation à une autre personne</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <param name="idEP">id EP</param> |
||||
/// <response code="200">Demande de délégation envoyée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesdelegation/ep/{idEP}/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("FaireDemandeDelegation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult FaireDemandeDelegation([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]int? idEP) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupération de la liste des demandes de délégation</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesdelegation/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetDemandesDelegation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeDelegationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetDemandesDelegation([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeDelegationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeDelegationDTO>>(exampleJson) |
||||
: default(List<DemandeDelegationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Faire une demande de délégation à une autre personne</remarks> |
||||
/// <param name="body"></param> |
||||
/// <param name="idDemandeDelegation">id demande delegation</param> |
||||
/// <response code="200">Réponse demande de délagation envoyée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpPut] |
||||
[Route("/api/demandesdelegation/{idDemandeDelegation}/repondre")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("RepondreDemandeDelegation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult RepondreDemandeDelegation([FromBody]CreationDemandeDelegationDTO body, [FromRoute][Required]int? idDemandeDelegation) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,282 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class DemandesEPIApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Annuler la demande d'EPI</remarks> |
||||
/// <param name="idDemandeEPI">id demande EPI</param> |
||||
/// <response code="200">demande d'EPI annulée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/{idDemandeEPI}/annuler")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("AnnulerDemandeEPI")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult AnnulerDemandeEPI([FromRoute][Required]int? idDemandeEPI) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Lancer la procedure pour un entretien professionnel intermediaire, une demande d'EPI validée est créé par la même occasion</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <response code="200">Demande d'EPI créée avec l'EPI correspondant</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/referent/{idReferent}/demande/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("CreateEPI")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult CreateEPI([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Demande d'EPI par un collaborateur</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">demande d'EPI effectuée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/collaborateur/{idCollaborateur}/demande")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("DemandeEPI")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult DemandeEPI([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Demande d'EPI et par l'assistant et création automatique de l'EPI</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">Demande d'EPI créée avec l'EPI correspondant</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/demandeassistante/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("DemandeEPIAssistante")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult DemandeEPIAssistante([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupération de la liste des précédents EPI d'un collaborateur</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/collaborateur/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEPICollaborateur")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetEPICollaborateur([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeEPIDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson) |
||||
: default(List<DemandeEPIDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupération de l'EPI en cours d'un collaborateur</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/collaborateur/{idCollaborateur}/enCours")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEPIEnCours")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(DemandeEPIDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetEPIEnCours([FromRoute][Required]Guid? idCollaborateur) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(DemandeEPIDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<DemandeEPIDTO>(exampleJson) |
||||
: default(DemandeEPIDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupération de la liste des précédents EPI d'un referent</remarks> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/demandesepi/referent/{idReferent}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEPIReferent")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetEPIReferent([FromRoute][Required]Guid? idReferent) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeEPIDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson) |
||||
: default(List<DemandeEPIDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Répondre à une demande EPI en attente</remarks> |
||||
/// <param name="body"></param> |
||||
/// <param name="idDemandeEPI">id demande EPI</param> |
||||
/// <response code="200">Réponse à la demande d'EPI envoyée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpPut] |
||||
[Route("/api/demandesepi/{idDemandeEPI}/repondre")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("RepondreDemandeEPI")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult RepondreDemandeEPI([FromBody]DemandeEPIDTO body, [FromRoute][Required]int? idDemandeEPI) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,248 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class DemandesFormationApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Créer une demande de formation pour un collaborateur</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="201">Demande formation créée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPost] |
||||
[Route("/api/demandeformation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("CreerDemandeFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult CreerDemandeFormation([FromBody]CreationDemandeFormationDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des demandes de formations</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="theme">Thème des demandes de formation à récupérer</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/demandeformation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetDemandesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetDemandesFormation([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) |
||||
: default(List<DemandeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des demandes de formations en attente d'une réponse</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="theme">Thème des demandes de formation à récupérer</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/demandeformation/enattente")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetDemandesFormationEnAttente")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetDemandesFormationEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) |
||||
: default(List<DemandeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des demandes de formations ayant reçu une réponse</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="theme">Thème des demandes de formation à récupérer</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/demandeformation/repondus")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetDemandesFormationRepondues")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetDemandesFormationRepondues([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<DemandeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) |
||||
: default(List<DemandeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des origines des demandes de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/originesdemandesformation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetOriginesDemandesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<OrigineDemandeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetOriginesDemandesFormation() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<OrigineDemandeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 0\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 0\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<OrigineDemandeFormationDTO>>(exampleJson) |
||||
: default(List<OrigineDemandeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des thèmes des demandes de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/themes")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetThemes")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<ThemeDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetThemes() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<ThemeDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n}, {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<ThemeDTO>>(exampleJson) |
||||
: default(List<ThemeDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Répondre a une demande de formation et la mettre à jour</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="200">demande formation mise à jour</response> |
||||
/// <response code="201">Demande formation créée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPut] |
||||
[Route("/api/demandeformation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("UpdateDemandeFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult UpdateDemandeFormation([FromBody]DemandeFormationDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,159 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class EngagementsApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des engagements</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/engagements")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEngagements")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetEngagements([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<EngagementDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) |
||||
: default(List<EngagementDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des engagements en attente</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/engagements/enattente")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEngagementsEnAttente")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetEngagementsEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<EngagementDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) |
||||
: default(List<EngagementDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des engagements ayant reçu une réponse</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/engagements/repondus")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetEngagementsRepondus")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetEngagementsRepondus([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<EngagementDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) |
||||
: default(List<EngagementDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Donnez une réponse à un engagement</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="200">Engagement mise à jour</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPut] |
||||
[Route("/api/engagements")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("RepondreEngagement")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult RepondreEngagement([FromBody]EngagementDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,413 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class FormationsApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Ajouter une nouvelle formation</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="201">Formation créée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPost] |
||||
[Route("/api/formations")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("AjouterFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult AjouterFormation([FromBody]FormationDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Supprimer une formation</remarks> |
||||
/// <param name="idFormation">id formation</param> |
||||
/// <response code="204">Formation supprimée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpDelete] |
||||
[Route("/api/formations/{idFormation}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("DeleteFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult DeleteFormation([FromRoute][Required]decimal? idFormation) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 204 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(204); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les formations annulées</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/formations/annulees")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetFormationAnnulees")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<FormationDetailsDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetFormationAnnulees([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<FormationDetailsDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<FormationDetailsDTO>>(exampleJson) |
||||
: default(List<FormationDetailsDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer une formation par son id</remarks> |
||||
/// <param name="idFormation">id formation</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/formations/{idFormation}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetFormationById")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(FormationDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetFormationById([FromRoute][Required]decimal? idFormation) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(FormationDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"heure\" : 1.4658129805029452,\n \"participantsFormation\" : [ {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 5,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n }, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 5,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n } ],\n \"organisme\" : \"organisme\",\n \"origine\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"jour\" : 5.962133916683182,\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n }\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<FormationDTO>(exampleJson) |
||||
: default(FormationDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les formations réalisées</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/formations/realisees")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetFormationRealisee")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<FormationDetailsDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetFormationRealisee([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<FormationDetailsDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<FormationDetailsDTO>>(exampleJson) |
||||
: default(List<FormationDetailsDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des formations</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="statutFormation">Statut de la formation</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/formations")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetFormations")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<FormationDetailsDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetFormations([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]int? statutFormation, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<FormationDetailsDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<FormationDetailsDTO>>(exampleJson) |
||||
: default(List<FormationDetailsDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les modes de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/modesFormation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetModesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<ModeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetModesFormation() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<ModeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<ModeFormationDTO>>(exampleJson) |
||||
: default(List<ModeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les origines de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/originesFormation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetOriginesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<OrigineFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetOriginesFormation() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<OrigineFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<OrigineFormationDTO>>(exampleJson) |
||||
: default(List<OrigineFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les formations plannifié et replannifié</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/formations/prochaines")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetProchainesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<FormationDetailsDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetProchainesFormation([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<FormationDetailsDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<FormationDetailsDTO>>(exampleJson) |
||||
: default(List<FormationDetailsDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les statuts de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/statutsFormation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetStatutsFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<StatutFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetStatutsFormation() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<StatutFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<StatutFormationDTO>>(exampleJson) |
||||
: default(List<StatutFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les types de formation</remarks> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/typesFormation")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetTypesFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<TypeFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetTypesFormation() |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<TypeFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<TypeFormationDTO>>(exampleJson) |
||||
: default(List<TypeFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Mettre à jour une formation</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="200">formation mise à jour</response> |
||||
/// <response code="201">Formation créée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPut] |
||||
[Route("/api/formations")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("UpdateFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult UpdateFormation([FromBody]FormationDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,217 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class NotesApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Supprimer une note</remarks> |
||||
/// <param name="idNote">id note</param> |
||||
/// <response code="204">Note supprimée</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpDelete] |
||||
[Route("/api/notes/{idNote}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("DeleteNote")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult DeleteNote([FromRoute][Required]int? idNote) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 204 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(204); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer une note par son id</remarks> |
||||
/// <param name="idNote">id note</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/notes/{idNote}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetNoteById")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(DetailsNoteDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetNoteById([FromRoute][Required]int? idNote) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(DetailsNoteDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"idAuteur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"texte\" : \"texte\",\n \"id\" : 0,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n }\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<DetailsNoteDTO>(exampleJson) |
||||
: default(DetailsNoteDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer les notes d'une personne a écrite</remarks> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/notes/auteur/{idReferent}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetNotesByAuteur")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetNotesByAuteur([FromRoute][Required]Guid? idReferent) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<AffichageNoteDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<AffichageNoteDTO>>(exampleJson) |
||||
: default(List<AffichageNoteDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer une note par son id</remarks> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/notes/auteur/{idReferent}/collaborateur/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetNotesByCollaborateur")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetNotesByCollaborateur([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<AffichageNoteDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<AffichageNoteDTO>>(exampleJson) |
||||
: default(List<AffichageNoteDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Ajouter une nouvelle note</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="201">Note créée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPost] |
||||
[Route("/api/notes/")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("NouvelleNote")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult NouvelleNote([FromBody]DetailsNoteDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Mettre à jour une note</remarks> |
||||
/// <param name="body"></param> |
||||
/// <response code="200">Note mise à jour avec succès</response> |
||||
/// <response code="201">Note créée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpPut] |
||||
[Route("/api/notes/")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("UpdateNote")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult UpdateNote([FromBody]DetailsNoteDTO body) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(201); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,175 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class ParticipationsFormationsApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Consulter une évaluation d'une formation</remarks> |
||||
/// <param name="idParticipationFormation">id participation formation</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/evaluations/participationformation/{idParticipationFormation}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("ConsulterEvaluation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(EvaluationDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult ConsulterEvaluation([FromRoute][Required]decimal? idParticipationFormation) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(EvaluationDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"idParticipation\" : 0,\n \"saisies\" : [ {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5.025004791520295,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n }, {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5.025004791520295,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n } ]\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<EvaluationDTO>(exampleJson) |
||||
: default(EvaluationDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Evaluer une formation</remarks> |
||||
/// <param name="body"></param> |
||||
/// <param name="idParticipationFormation">id participation formation</param> |
||||
/// <response code="200">Evaluation envoyée avec succès</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpPut] |
||||
[Route("/api/evaluations/participationformation/{idParticipationFormation}/evaluer")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("EvaluerFormation")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult EvaluerFormation([FromBody]EvaluationDTO body, [FromRoute][Required]decimal? idParticipationFormation) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
|
||||
throw new NotImplementedException(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des formations auxquelles est inscrit le collaborateur</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/participationsformation/collaborateur/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetParticipationByCollaborateur")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<ParticipationFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetParticipationByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<ParticipationFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n}, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<ParticipationFormationDTO>>(exampleJson) |
||||
: default(List<ParticipationFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des participants d'une formation</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="idFormation">id formation</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/participationsformation/formation/{idFormation}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetParticipationByFormation")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<ParticipationFormationDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetParticipationByFormation([FromQuery][Required()]bool? asc, [FromRoute][Required]decimal? idFormation, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<ParticipationFormationDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n}, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<ParticipationFormationDTO>>(exampleJson) |
||||
: default(List<ParticipationFormationDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,142 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Swashbuckle.AspNetCore.Annotations; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Newtonsoft.Json; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using IO.Swagger.Attributes; |
||||
using IO.Swagger.Security; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using IO.Swagger.DTO; |
||||
|
||||
namespace IO.Swagger.Controllers |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[ApiController] |
||||
public class ReferentsApiController : ControllerBase |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste des référents d'un collaborateur</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="idCollaborateur">id collaborateur</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/referents/collaborateur/{idCollaborateur}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetReferentByCollaborateur")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetReferentByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<CollaborateurDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson) |
||||
: default(List<CollaborateurDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer un referent par son id</remarks> |
||||
/// <param name="idReferent">id referent</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
/// <response code="404">Ressource n'a pas été trouvée</response> |
||||
[HttpGet] |
||||
[Route("/api/referents/{idReferent}")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetReferentById")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")] |
||||
public virtual IActionResult GetReferentById([FromRoute][Required]Guid? idReferent) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(CollaborateurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
|
||||
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(404, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<CollaborateurDTO>(exampleJson) |
||||
: default(CollaborateurDTO); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
/// <remarks>Récupérer la liste de tous les referents</remarks> |
||||
/// <param name="asc">Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)</param> |
||||
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param> |
||||
/// <param name="parPAge">Nombre d'éléments affiché sur chaque page du tableau</param> |
||||
/// <param name="fonctions">Liste des fonctions des collaborateurs que l'on veut récupérer</param> |
||||
/// <param name="idAgence">id de l'agence à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="idBU">id de la business unit à laquelle sont rattachées les données à récupérer</param> |
||||
/// <param name="texte">Texte permettant d'identifier l'objet rechercher</param> |
||||
/// <param name="tri">Colonne du tableau sur lequel le tri s'effectue</param> |
||||
/// <response code="200">OK</response> |
||||
/// <response code="403">Acces interdit</response> |
||||
[HttpGet] |
||||
[Route("/api/referents")] |
||||
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] |
||||
[ValidateModelState] |
||||
[SwaggerOperation("GetReferents")] |
||||
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] |
||||
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] |
||||
public virtual IActionResult GetReferents([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]int? idAgence, [FromQuery]int? idBU, [FromQuery]string texte, [FromQuery]string tri) |
||||
{ |
||||
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(200, default(List<CollaborateurDTO>)); |
||||
|
||||
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... |
||||
// return StatusCode(403, default(ErreurDTO)); |
||||
string exampleJson = null; |
||||
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; |
||||
|
||||
var example = exampleJson != null |
||||
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson) |
||||
: default(List<CollaborateurDTO>); //TODO: Change the data returned |
||||
return new ObjectResult(example); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,178 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Note affiché dans un tableau |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class AffichageNoteDTO : IEquatable<AffichageNoteDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Titre |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="titre")] |
||||
public string Titre { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdCollaborateur |
||||
/// </summary> |
||||
[DataMember(Name="idCollaborateur")] |
||||
public Guid? IdCollaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="collaborateur")] |
||||
public string Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateMiseAjour |
||||
/// </summary> |
||||
[DataMember(Name="dateMiseAjour")] |
||||
public DateTime? DateMiseAjour { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class AffichageNoteDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Titre: ").Append(Titre).Append("\n"); |
||||
sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" DateMiseAjour: ").Append(DateMiseAjour).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((AffichageNoteDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if AffichageNoteDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of AffichageNoteDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(AffichageNoteDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Titre == other.Titre || |
||||
Titre != null && |
||||
Titre.Equals(other.Titre) |
||||
) && |
||||
( |
||||
IdCollaborateur == other.IdCollaborateur || |
||||
IdCollaborateur != null && |
||||
IdCollaborateur.Equals(other.IdCollaborateur) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
DateMiseAjour == other.DateMiseAjour || |
||||
DateMiseAjour != null && |
||||
DateMiseAjour.Equals(other.DateMiseAjour) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Titre != null) |
||||
hashCode = hashCode * 59 + Titre.GetHashCode(); |
||||
if (IdCollaborateur != null) |
||||
hashCode = hashCode * 59 + IdCollaborateur.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (DateMiseAjour != null) |
||||
hashCode = hashCode * 59 + DateMiseAjour.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(AffichageNoteDTO left, AffichageNoteDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(AffichageNoteDTO left, AffichageNoteDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,150 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Une agence de Apside |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class AgenceDTO : IEquatable<AgenceDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Nom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nom")] |
||||
public string Nom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Bu |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="bu")] |
||||
public List<BusinessUnitDTO> Bu { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class AgenceDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||
sb.Append(" Bu: ").Append(Bu).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((AgenceDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if AgenceDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of AgenceDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(AgenceDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Nom == other.Nom || |
||||
Nom != null && |
||||
Nom.Equals(other.Nom) |
||||
) && |
||||
( |
||||
Bu == other.Bu || |
||||
Bu != null && |
||||
Bu.SequenceEqual(other.Bu) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Nom != null) |
||||
hashCode = hashCode * 59 + Nom.GetHashCode(); |
||||
if (Bu != null) |
||||
hashCode = hashCode * 59 + Bu.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(AgenceDTO left, AgenceDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(AgenceDTO left, AgenceDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,163 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Demande d'augmentation du salaire du collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class AugmentationSalaireDTO : IEquatable<AugmentationSalaireDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Augmentation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="augmentation")] |
||||
public decimal? Augmentation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets PrimeMission |
||||
/// </summary> |
||||
[DataMember(Name="primeMission")] |
||||
public decimal? PrimeMission { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Message |
||||
/// </summary> |
||||
[DataMember(Name="message")] |
||||
public string Message { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class AugmentationSalaireDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Augmentation: ").Append(Augmentation).Append("\n"); |
||||
sb.Append(" PrimeMission: ").Append(PrimeMission).Append("\n"); |
||||
sb.Append(" Message: ").Append(Message).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((AugmentationSalaireDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if AugmentationSalaireDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of AugmentationSalaireDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(AugmentationSalaireDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Augmentation == other.Augmentation || |
||||
Augmentation != null && |
||||
Augmentation.Equals(other.Augmentation) |
||||
) && |
||||
( |
||||
PrimeMission == other.PrimeMission || |
||||
PrimeMission != null && |
||||
PrimeMission.Equals(other.PrimeMission) |
||||
) && |
||||
( |
||||
Message == other.Message || |
||||
Message != null && |
||||
Message.Equals(other.Message) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Augmentation != null) |
||||
hashCode = hashCode * 59 + Augmentation.GetHashCode(); |
||||
if (PrimeMission != null) |
||||
hashCode = hashCode * 59 + PrimeMission.GetHashCode(); |
||||
if (Message != null) |
||||
hashCode = hashCode * 59 + Message.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(AugmentationSalaireDTO left, AugmentationSalaireDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(AugmentationSalaireDTO left, AugmentationSalaireDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,150 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Une business unit d'une agence |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class BusinessUnitDTO : IEquatable<BusinessUnitDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Nom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nom")] |
||||
public string Nom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Agence |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="agence")] |
||||
public AgenceDTO Agence { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class BusinessUnitDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||
sb.Append(" Agence: ").Append(Agence).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((BusinessUnitDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if BusinessUnitDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of BusinessUnitDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(BusinessUnitDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Nom == other.Nom || |
||||
Nom != null && |
||||
Nom.Equals(other.Nom) |
||||
) && |
||||
( |
||||
Agence == other.Agence || |
||||
Agence != null && |
||||
Agence.Equals(other.Agence) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Nom != null) |
||||
hashCode = hashCode * 59 + Nom.GetHashCode(); |
||||
if (Agence != null) |
||||
hashCode = hashCode * 59 + Agence.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(BusinessUnitDTO left, BusinessUnitDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(BusinessUnitDTO left, BusinessUnitDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,209 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les champs d'un EP ou d'une évaluation à remplir |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ChampDTO : IEquatable<ChampDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Texte |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="texte")] |
||||
public string Texte { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Section |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="section")] |
||||
public string Section { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Soussection |
||||
/// </summary> |
||||
[DataMember(Name="soussection")] |
||||
public string Soussection { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Ordre |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="ordre")] |
||||
public decimal? Ordre { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets TypeChamp |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="typeChamp")] |
||||
public string TypeChamp { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets TypeSaisie |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="typeSaisie")] |
||||
public string TypeSaisie { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ChampDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Texte: ").Append(Texte).Append("\n"); |
||||
sb.Append(" Section: ").Append(Section).Append("\n"); |
||||
sb.Append(" Soussection: ").Append(Soussection).Append("\n"); |
||||
sb.Append(" Ordre: ").Append(Ordre).Append("\n"); |
||||
sb.Append(" TypeChamp: ").Append(TypeChamp).Append("\n"); |
||||
sb.Append(" TypeSaisie: ").Append(TypeSaisie).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ChampDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ChampDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ChampDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ChampDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Texte == other.Texte || |
||||
Texte != null && |
||||
Texte.Equals(other.Texte) |
||||
) && |
||||
( |
||||
Section == other.Section || |
||||
Section != null && |
||||
Section.Equals(other.Section) |
||||
) && |
||||
( |
||||
Soussection == other.Soussection || |
||||
Soussection != null && |
||||
Soussection.Equals(other.Soussection) |
||||
) && |
||||
( |
||||
Ordre == other.Ordre || |
||||
Ordre != null && |
||||
Ordre.Equals(other.Ordre) |
||||
) && |
||||
( |
||||
TypeChamp == other.TypeChamp || |
||||
TypeChamp != null && |
||||
TypeChamp.Equals(other.TypeChamp) |
||||
) && |
||||
( |
||||
TypeSaisie == other.TypeSaisie || |
||||
TypeSaisie != null && |
||||
TypeSaisie.Equals(other.TypeSaisie) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Texte != null) |
||||
hashCode = hashCode * 59 + Texte.GetHashCode(); |
||||
if (Section != null) |
||||
hashCode = hashCode * 59 + Section.GetHashCode(); |
||||
if (Soussection != null) |
||||
hashCode = hashCode * 59 + Soussection.GetHashCode(); |
||||
if (Ordre != null) |
||||
hashCode = hashCode * 59 + Ordre.GetHashCode(); |
||||
if (TypeChamp != null) |
||||
hashCode = hashCode * 59 + TypeChamp.GetHashCode(); |
||||
if (TypeSaisie != null) |
||||
hashCode = hashCode * 59 + TypeSaisie.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ChampDTO left, ChampDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ChampDTO left, ChampDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,222 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les informations d'un collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class CollaborateurDTO : IEquatable<CollaborateurDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public Guid? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Nom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nom")] |
||||
public string Nom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Prenom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="prenom")] |
||||
public string Prenom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets MailApside |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="mailApside")] |
||||
public string MailApside { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateArrivee |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateArrivee")] |
||||
public DateTime? DateArrivee { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDepart |
||||
/// </summary> |
||||
[DataMember(Name="dateDepart")] |
||||
public DateTime? DateDepart { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets BusinessUnit |
||||
/// </summary> |
||||
[DataMember(Name="businessUnit")] |
||||
public BusinessUnitDTO BusinessUnit { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Referent |
||||
/// </summary> |
||||
[DataMember(Name="referent")] |
||||
public CollaborateurDTO Referent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class CollaborateurDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||
sb.Append(" Prenom: ").Append(Prenom).Append("\n"); |
||||
sb.Append(" MailApside: ").Append(MailApside).Append("\n"); |
||||
sb.Append(" DateArrivee: ").Append(DateArrivee).Append("\n"); |
||||
sb.Append(" DateDepart: ").Append(DateDepart).Append("\n"); |
||||
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); |
||||
sb.Append(" Referent: ").Append(Referent).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((CollaborateurDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if CollaborateurDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of CollaborateurDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(CollaborateurDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Nom == other.Nom || |
||||
Nom != null && |
||||
Nom.Equals(other.Nom) |
||||
) && |
||||
( |
||||
Prenom == other.Prenom || |
||||
Prenom != null && |
||||
Prenom.Equals(other.Prenom) |
||||
) && |
||||
( |
||||
MailApside == other.MailApside || |
||||
MailApside != null && |
||||
MailApside.Equals(other.MailApside) |
||||
) && |
||||
( |
||||
DateArrivee == other.DateArrivee || |
||||
DateArrivee != null && |
||||
DateArrivee.Equals(other.DateArrivee) |
||||
) && |
||||
( |
||||
DateDepart == other.DateDepart || |
||||
DateDepart != null && |
||||
DateDepart.Equals(other.DateDepart) |
||||
) && |
||||
( |
||||
BusinessUnit == other.BusinessUnit || |
||||
BusinessUnit != null && |
||||
BusinessUnit.Equals(other.BusinessUnit) |
||||
) && |
||||
( |
||||
Referent == other.Referent || |
||||
Referent != null && |
||||
Referent.Equals(other.Referent) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Nom != null) |
||||
hashCode = hashCode * 59 + Nom.GetHashCode(); |
||||
if (Prenom != null) |
||||
hashCode = hashCode * 59 + Prenom.GetHashCode(); |
||||
if (MailApside != null) |
||||
hashCode = hashCode * 59 + MailApside.GetHashCode(); |
||||
if (DateArrivee != null) |
||||
hashCode = hashCode * 59 + DateArrivee.GetHashCode(); |
||||
if (DateDepart != null) |
||||
hashCode = hashCode * 59 + DateDepart.GetHashCode(); |
||||
if (BusinessUnit != null) |
||||
hashCode = hashCode * 59 + BusinessUnit.GetHashCode(); |
||||
if (Referent != null) |
||||
hashCode = hashCode * 59 + Referent.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(CollaborateurDTO left, CollaborateurDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(CollaborateurDTO left, CollaborateurDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,148 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Objet à envoyer lorsqu'un référent fait une demande de délégation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class CreationDemandeDelegationDTO : IEquatable<CreationDemandeDelegationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets IdEp |
||||
/// </summary> |
||||
[DataMember(Name="idEp")] |
||||
public int? IdEp { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdReferent |
||||
/// </summary> |
||||
[DataMember(Name="idReferent")] |
||||
public CollaborateurDTO IdReferent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets RaisonDemande |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="raisonDemande")] |
||||
public string RaisonDemande { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class CreationDemandeDelegationDTO {\n"); |
||||
sb.Append(" IdEp: ").Append(IdEp).Append("\n"); |
||||
sb.Append(" IdReferent: ").Append(IdReferent).Append("\n"); |
||||
sb.Append(" RaisonDemande: ").Append(RaisonDemande).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((CreationDemandeDelegationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if CreationDemandeDelegationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of CreationDemandeDelegationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(CreationDemandeDelegationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
IdEp == other.IdEp || |
||||
IdEp != null && |
||||
IdEp.Equals(other.IdEp) |
||||
) && |
||||
( |
||||
IdReferent == other.IdReferent || |
||||
IdReferent != null && |
||||
IdReferent.Equals(other.IdReferent) |
||||
) && |
||||
( |
||||
RaisonDemande == other.RaisonDemande || |
||||
RaisonDemande != null && |
||||
RaisonDemande.Equals(other.RaisonDemande) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (IdEp != null) |
||||
hashCode = hashCode * 59 + IdEp.GetHashCode(); |
||||
if (IdReferent != null) |
||||
hashCode = hashCode * 59 + IdReferent.GetHashCode(); |
||||
if (RaisonDemande != null) |
||||
hashCode = hashCode * 59 + RaisonDemande.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(CreationDemandeDelegationDTO left, CreationDemandeDelegationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(CreationDemandeDelegationDTO left, CreationDemandeDelegationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,165 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Objet à envoyer lors d'une demande de formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class CreationDemandeFormationDTO : IEquatable<CreationDemandeFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Description |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="description")] |
||||
public string Description { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Theme |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="theme")] |
||||
public int? Theme { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class CreationDemandeFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append(" Description: ").Append(Description).Append("\n"); |
||||
sb.Append(" Theme: ").Append(Theme).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((CreationDemandeFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if CreationDemandeFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of CreationDemandeFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(CreationDemandeFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
) && |
||||
( |
||||
Description == other.Description || |
||||
Description != null && |
||||
Description.Equals(other.Description) |
||||
) && |
||||
( |
||||
Theme == other.Theme || |
||||
Theme != null && |
||||
Theme.Equals(other.Theme) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
if (Description != null) |
||||
hashCode = hashCode * 59 + Description.GetHashCode(); |
||||
if (Theme != null) |
||||
hashCode = hashCode * 59 + Theme.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(CreationDemandeFormationDTO left, CreationDemandeFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(CreationDemandeFormationDTO left, CreationDemandeFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,192 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les détails d'une demande de délégation d'un EP |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class DemandeDelegationDTO : IEquatable<DemandeDelegationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Ep |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="ep")] |
||||
public EpInformationDTO Ep { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDemande |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDemande")] |
||||
public DateTime? DateDemande { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Reponse |
||||
/// </summary> |
||||
[DataMember(Name="reponse")] |
||||
public bool? Reponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateReponse |
||||
/// </summary> |
||||
[DataMember(Name="dateReponse")] |
||||
public DateTime? DateReponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets RaisonRefus |
||||
/// </summary> |
||||
[DataMember(Name="raisonRefus")] |
||||
public string RaisonRefus { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class DemandeDelegationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Ep: ").Append(Ep).Append("\n"); |
||||
sb.Append(" DateDemande: ").Append(DateDemande).Append("\n"); |
||||
sb.Append(" Reponse: ").Append(Reponse).Append("\n"); |
||||
sb.Append(" DateReponse: ").Append(DateReponse).Append("\n"); |
||||
sb.Append(" RaisonRefus: ").Append(RaisonRefus).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((DemandeDelegationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if DemandeDelegationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of DemandeDelegationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(DemandeDelegationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Ep == other.Ep || |
||||
Ep != null && |
||||
Ep.Equals(other.Ep) |
||||
) && |
||||
( |
||||
DateDemande == other.DateDemande || |
||||
DateDemande != null && |
||||
DateDemande.Equals(other.DateDemande) |
||||
) && |
||||
( |
||||
Reponse == other.Reponse || |
||||
Reponse != null && |
||||
Reponse.Equals(other.Reponse) |
||||
) && |
||||
( |
||||
DateReponse == other.DateReponse || |
||||
DateReponse != null && |
||||
DateReponse.Equals(other.DateReponse) |
||||
) && |
||||
( |
||||
RaisonRefus == other.RaisonRefus || |
||||
RaisonRefus != null && |
||||
RaisonRefus.Equals(other.RaisonRefus) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Ep != null) |
||||
hashCode = hashCode * 59 + Ep.GetHashCode(); |
||||
if (DateDemande != null) |
||||
hashCode = hashCode * 59 + DateDemande.GetHashCode(); |
||||
if (Reponse != null) |
||||
hashCode = hashCode * 59 + Reponse.GetHashCode(); |
||||
if (DateReponse != null) |
||||
hashCode = hashCode * 59 + DateReponse.GetHashCode(); |
||||
if (RaisonRefus != null) |
||||
hashCode = hashCode * 59 + RaisonRefus.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(DemandeDelegationDTO left, DemandeDelegationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(DemandeDelegationDTO left, DemandeDelegationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,235 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Demande d'EPI faite par un collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class DemandeEPIDTO : IEquatable<DemandeEPIDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdCollaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="idCollaborateur")] |
||||
public Guid? IdCollaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdReferent |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="idReferent")] |
||||
public Guid? IdReferent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDemande |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDemande")] |
||||
public DateTime? DateDemande { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Etat |
||||
/// </summary> |
||||
[DataMember(Name="etat")] |
||||
public int? Etat { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Reponse |
||||
/// </summary> |
||||
[DataMember(Name="reponse")] |
||||
public bool? Reponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateReponse |
||||
/// </summary> |
||||
[DataMember(Name="dateReponse")] |
||||
public DateTime? DateReponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets RaisonRefus |
||||
/// </summary> |
||||
[DataMember(Name="raisonRefus")] |
||||
public string RaisonRefus { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Ep |
||||
/// </summary> |
||||
[DataMember(Name="ep")] |
||||
public EpInformationDTO Ep { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class DemandeEPIDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n"); |
||||
sb.Append(" IdReferent: ").Append(IdReferent).Append("\n"); |
||||
sb.Append(" DateDemande: ").Append(DateDemande).Append("\n"); |
||||
sb.Append(" Etat: ").Append(Etat).Append("\n"); |
||||
sb.Append(" Reponse: ").Append(Reponse).Append("\n"); |
||||
sb.Append(" DateReponse: ").Append(DateReponse).Append("\n"); |
||||
sb.Append(" RaisonRefus: ").Append(RaisonRefus).Append("\n"); |
||||
sb.Append(" Ep: ").Append(Ep).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((DemandeEPIDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if DemandeEPIDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of DemandeEPIDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(DemandeEPIDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
IdCollaborateur == other.IdCollaborateur || |
||||
IdCollaborateur != null && |
||||
IdCollaborateur.Equals(other.IdCollaborateur) |
||||
) && |
||||
( |
||||
IdReferent == other.IdReferent || |
||||
IdReferent != null && |
||||
IdReferent.Equals(other.IdReferent) |
||||
) && |
||||
( |
||||
DateDemande == other.DateDemande || |
||||
DateDemande != null && |
||||
DateDemande.Equals(other.DateDemande) |
||||
) && |
||||
( |
||||
Etat == other.Etat || |
||||
Etat != null && |
||||
Etat.Equals(other.Etat) |
||||
) && |
||||
( |
||||
Reponse == other.Reponse || |
||||
Reponse != null && |
||||
Reponse.Equals(other.Reponse) |
||||
) && |
||||
( |
||||
DateReponse == other.DateReponse || |
||||
DateReponse != null && |
||||
DateReponse.Equals(other.DateReponse) |
||||
) && |
||||
( |
||||
RaisonRefus == other.RaisonRefus || |
||||
RaisonRefus != null && |
||||
RaisonRefus.Equals(other.RaisonRefus) |
||||
) && |
||||
( |
||||
Ep == other.Ep || |
||||
Ep != null && |
||||
Ep.Equals(other.Ep) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (IdCollaborateur != null) |
||||
hashCode = hashCode * 59 + IdCollaborateur.GetHashCode(); |
||||
if (IdReferent != null) |
||||
hashCode = hashCode * 59 + IdReferent.GetHashCode(); |
||||
if (DateDemande != null) |
||||
hashCode = hashCode * 59 + DateDemande.GetHashCode(); |
||||
if (Etat != null) |
||||
hashCode = hashCode * 59 + Etat.GetHashCode(); |
||||
if (Reponse != null) |
||||
hashCode = hashCode * 59 + Reponse.GetHashCode(); |
||||
if (DateReponse != null) |
||||
hashCode = hashCode * 59 + DateReponse.GetHashCode(); |
||||
if (RaisonRefus != null) |
||||
hashCode = hashCode * 59 + RaisonRefus.GetHashCode(); |
||||
if (Ep != null) |
||||
hashCode = hashCode * 59 + Ep.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(DemandeEPIDTO left, DemandeEPIDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(DemandeEPIDTO left, DemandeEPIDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,252 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les détails d'une demande de formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class DemandeFormationDTO : IEquatable<DemandeFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Description |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="description")] |
||||
public string Description { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DemandeRH |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="demandeRH")] |
||||
public bool? DemandeRH { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDemande |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDemande")] |
||||
public DateTime? DateDemande { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Reponse |
||||
/// </summary> |
||||
[DataMember(Name="reponse")] |
||||
public bool? Reponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets CommentaireRefus |
||||
/// </summary> |
||||
[DataMember(Name="commentaireRefus")] |
||||
public string CommentaireRefus { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDerniereReponse |
||||
/// </summary> |
||||
[DataMember(Name="dateDerniereReponse")] |
||||
public DateTime? DateDerniereReponse { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Theme |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="theme")] |
||||
public ThemeDTO Theme { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Ep |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="ep")] |
||||
public EpInformationDTO Ep { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class DemandeFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append(" Description: ").Append(Description).Append("\n"); |
||||
sb.Append(" DemandeRH: ").Append(DemandeRH).Append("\n"); |
||||
sb.Append(" DateDemande: ").Append(DateDemande).Append("\n"); |
||||
sb.Append(" Reponse: ").Append(Reponse).Append("\n"); |
||||
sb.Append(" CommentaireRefus: ").Append(CommentaireRefus).Append("\n"); |
||||
sb.Append(" DateDerniereReponse: ").Append(DateDerniereReponse).Append("\n"); |
||||
sb.Append(" Theme: ").Append(Theme).Append("\n"); |
||||
sb.Append(" Ep: ").Append(Ep).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((DemandeFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if DemandeFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of DemandeFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(DemandeFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
) && |
||||
( |
||||
Description == other.Description || |
||||
Description != null && |
||||
Description.Equals(other.Description) |
||||
) && |
||||
( |
||||
DemandeRH == other.DemandeRH || |
||||
DemandeRH != null && |
||||
DemandeRH.Equals(other.DemandeRH) |
||||
) && |
||||
( |
||||
DateDemande == other.DateDemande || |
||||
DateDemande != null && |
||||
DateDemande.Equals(other.DateDemande) |
||||
) && |
||||
( |
||||
Reponse == other.Reponse || |
||||
Reponse != null && |
||||
Reponse.Equals(other.Reponse) |
||||
) && |
||||
( |
||||
CommentaireRefus == other.CommentaireRefus || |
||||
CommentaireRefus != null && |
||||
CommentaireRefus.Equals(other.CommentaireRefus) |
||||
) && |
||||
( |
||||
DateDerniereReponse == other.DateDerniereReponse || |
||||
DateDerniereReponse != null && |
||||
DateDerniereReponse.Equals(other.DateDerniereReponse) |
||||
) && |
||||
( |
||||
Theme == other.Theme || |
||||
Theme != null && |
||||
Theme.Equals(other.Theme) |
||||
) && |
||||
( |
||||
Ep == other.Ep || |
||||
Ep != null && |
||||
Ep.Equals(other.Ep) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
if (Description != null) |
||||
hashCode = hashCode * 59 + Description.GetHashCode(); |
||||
if (DemandeRH != null) |
||||
hashCode = hashCode * 59 + DemandeRH.GetHashCode(); |
||||
if (DateDemande != null) |
||||
hashCode = hashCode * 59 + DateDemande.GetHashCode(); |
||||
if (Reponse != null) |
||||
hashCode = hashCode * 59 + Reponse.GetHashCode(); |
||||
if (CommentaireRefus != null) |
||||
hashCode = hashCode * 59 + CommentaireRefus.GetHashCode(); |
||||
if (DateDerniereReponse != null) |
||||
hashCode = hashCode * 59 + DateDerniereReponse.GetHashCode(); |
||||
if (Theme != null) |
||||
hashCode = hashCode * 59 + Theme.GetHashCode(); |
||||
if (Ep != null) |
||||
hashCode = hashCode * 59 + Ep.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(DemandeFormationDTO left, DemandeFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(DemandeFormationDTO left, DemandeFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,208 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Détails d'une note que peut prendre un commercial, un delivery ou un RA sur un collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class DetailsNoteDTO : IEquatable<DetailsNoteDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Titre |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="titre")] |
||||
public string Titre { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Texte |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="texte")] |
||||
public string Texte { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdAuteur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="idAuteur")] |
||||
public Guid? IdAuteur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="collaborateur")] |
||||
public CollaborateurDTO Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateCreation |
||||
/// </summary> |
||||
[DataMember(Name="dateCreation")] |
||||
public DateTime? DateCreation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateMiseAjour |
||||
/// </summary> |
||||
[DataMember(Name="dateMiseAjour")] |
||||
public DateTime? DateMiseAjour { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class DetailsNoteDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Titre: ").Append(Titre).Append("\n"); |
||||
sb.Append(" Texte: ").Append(Texte).Append("\n"); |
||||
sb.Append(" IdAuteur: ").Append(IdAuteur).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" DateCreation: ").Append(DateCreation).Append("\n"); |
||||
sb.Append(" DateMiseAjour: ").Append(DateMiseAjour).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((DetailsNoteDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if DetailsNoteDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of DetailsNoteDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(DetailsNoteDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Titre == other.Titre || |
||||
Titre != null && |
||||
Titre.Equals(other.Titre) |
||||
) && |
||||
( |
||||
Texte == other.Texte || |
||||
Texte != null && |
||||
Texte.Equals(other.Texte) |
||||
) && |
||||
( |
||||
IdAuteur == other.IdAuteur || |
||||
IdAuteur != null && |
||||
IdAuteur.Equals(other.IdAuteur) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
DateCreation == other.DateCreation || |
||||
DateCreation != null && |
||||
DateCreation.Equals(other.DateCreation) |
||||
) && |
||||
( |
||||
DateMiseAjour == other.DateMiseAjour || |
||||
DateMiseAjour != null && |
||||
DateMiseAjour.Equals(other.DateMiseAjour) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Titre != null) |
||||
hashCode = hashCode * 59 + Titre.GetHashCode(); |
||||
if (Texte != null) |
||||
hashCode = hashCode * 59 + Texte.GetHashCode(); |
||||
if (IdAuteur != null) |
||||
hashCode = hashCode * 59 + IdAuteur.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (DateCreation != null) |
||||
hashCode = hashCode * 59 + DateCreation.GetHashCode(); |
||||
if (DateMiseAjour != null) |
||||
hashCode = hashCode * 59 + DateMiseAjour.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(DetailsNoteDTO left, DetailsNoteDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(DetailsNoteDTO left, DetailsNoteDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,149 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Un document pour récupérer les saisies et leur champ en fonction du type de l'EP qui peut être EPS, EPA ou EPASIXANS |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class DocumentDTO : IEquatable<DocumentDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public string Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Saisies |
||||
/// </summary> |
||||
[DataMember(Name="saisies")] |
||||
public List<SaisieDTO> Saisies { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class DocumentDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" Saisies: ").Append(Saisies).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((DocumentDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if DocumentDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of DocumentDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(DocumentDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
Saisies == other.Saisies || |
||||
Saisies != null && |
||||
Saisies.SequenceEqual(other.Saisies) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (Saisies != null) |
||||
hashCode = hashCode * 59 + Saisies.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(DocumentDTO left, DocumentDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(DocumentDTO left, DocumentDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,236 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les détails d'un engagement pris par un référent pour un EP |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class EngagementDTO : IEquatable<EngagementDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Action |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="action")] |
||||
public string Action { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Modalite |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="modalite")] |
||||
public string Modalite { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Dispositif |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dispositif")] |
||||
public string Dispositif { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DatePrevisionnelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="datePrevisionnelle")] |
||||
public DateTime? DatePrevisionnelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Realisable |
||||
/// </summary> |
||||
[DataMember(Name="realisable")] |
||||
public bool? Realisable { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Realise |
||||
/// </summary> |
||||
[DataMember(Name="realise")] |
||||
public bool? Realise { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets RaisonNonRealisable |
||||
/// </summary> |
||||
[DataMember(Name="raisonNonRealisable")] |
||||
public string RaisonNonRealisable { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Ep |
||||
/// </summary> |
||||
[DataMember(Name="ep")] |
||||
public EpInformationDTO Ep { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class EngagementDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Action: ").Append(Action).Append("\n"); |
||||
sb.Append(" Modalite: ").Append(Modalite).Append("\n"); |
||||
sb.Append(" Dispositif: ").Append(Dispositif).Append("\n"); |
||||
sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n"); |
||||
sb.Append(" Realisable: ").Append(Realisable).Append("\n"); |
||||
sb.Append(" Realise: ").Append(Realise).Append("\n"); |
||||
sb.Append(" RaisonNonRealisable: ").Append(RaisonNonRealisable).Append("\n"); |
||||
sb.Append(" Ep: ").Append(Ep).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((EngagementDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if EngagementDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of EngagementDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(EngagementDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Action == other.Action || |
||||
Action != null && |
||||
Action.Equals(other.Action) |
||||
) && |
||||
( |
||||
Modalite == other.Modalite || |
||||
Modalite != null && |
||||
Modalite.Equals(other.Modalite) |
||||
) && |
||||
( |
||||
Dispositif == other.Dispositif || |
||||
Dispositif != null && |
||||
Dispositif.Equals(other.Dispositif) |
||||
) && |
||||
( |
||||
DatePrevisionnelle == other.DatePrevisionnelle || |
||||
DatePrevisionnelle != null && |
||||
DatePrevisionnelle.Equals(other.DatePrevisionnelle) |
||||
) && |
||||
( |
||||
Realisable == other.Realisable || |
||||
Realisable != null && |
||||
Realisable.Equals(other.Realisable) |
||||
) && |
||||
( |
||||
Realise == other.Realise || |
||||
Realise != null && |
||||
Realise.Equals(other.Realise) |
||||
) && |
||||
( |
||||
RaisonNonRealisable == other.RaisonNonRealisable || |
||||
RaisonNonRealisable != null && |
||||
RaisonNonRealisable.Equals(other.RaisonNonRealisable) |
||||
) && |
||||
( |
||||
Ep == other.Ep || |
||||
Ep != null && |
||||
Ep.Equals(other.Ep) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Action != null) |
||||
hashCode = hashCode * 59 + Action.GetHashCode(); |
||||
if (Modalite != null) |
||||
hashCode = hashCode * 59 + Modalite.GetHashCode(); |
||||
if (Dispositif != null) |
||||
hashCode = hashCode * 59 + Dispositif.GetHashCode(); |
||||
if (DatePrevisionnelle != null) |
||||
hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode(); |
||||
if (Realisable != null) |
||||
hashCode = hashCode * 59 + Realisable.GetHashCode(); |
||||
if (Realise != null) |
||||
hashCode = hashCode * 59 + Realise.GetHashCode(); |
||||
if (RaisonNonRealisable != null) |
||||
hashCode = hashCode * 59 + RaisonNonRealisable.GetHashCode(); |
||||
if (Ep != null) |
||||
hashCode = hashCode * 59 + Ep.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(EngagementDTO left, EngagementDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(EngagementDTO left, EngagementDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,437 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Tous les détails d'un EP lorsqu'il est consulté |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class EpDTO : IEquatable<EpDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public string Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDisponibilite |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDisponibilite")] |
||||
public DateTime? DateDisponibilite { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DatePrevisionnelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="datePrevisionnelle")] |
||||
public DateTime? DatePrevisionnelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateSaisie |
||||
/// </summary> |
||||
[DataMember(Name="dateSaisie")] |
||||
public DateTime? DateSaisie { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="statut")] |
||||
public decimal? Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Cv |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="cv")] |
||||
public string Cv { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets PropositionsEntretien |
||||
/// </summary> |
||||
[DataMember(Name="propositionsEntretien")] |
||||
public List<RDVEntretienDTO> PropositionsEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets RdvEntretien |
||||
/// </summary> |
||||
[DataMember(Name="rdvEntretien")] |
||||
public RDVEntretienDTO RdvEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets ChoixTypeEntretien |
||||
/// </summary> |
||||
[DataMember(Name="choixTypeEntretien")] |
||||
public TypeEntretienDTO ChoixTypeEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Obligatoire |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="obligatoire")] |
||||
public bool? Obligatoire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Objectif |
||||
/// </summary> |
||||
[DataMember(Name="objectif")] |
||||
public List<ObjectifDTO> Objectif { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets ObjectifPrecedent |
||||
/// </summary> |
||||
[DataMember(Name="objectifPrecedent")] |
||||
public List<ObjectifPrecedentDTO> ObjectifPrecedent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets CommentaireAssistant |
||||
/// </summary> |
||||
[DataMember(Name="commentaireAssistant")] |
||||
public string CommentaireAssistant { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets CommentaireCommercial |
||||
/// </summary> |
||||
[DataMember(Name="commentaireCommercial")] |
||||
public string CommentaireCommercial { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="collaborateur")] |
||||
public CollaborateurDTO Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Referent |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="referent")] |
||||
public CollaborateurDTO Referent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DemandesFormation |
||||
/// </summary> |
||||
[DataMember(Name="demandesFormation")] |
||||
public List<DemandeFormationDTO> DemandesFormation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Participants |
||||
/// </summary> |
||||
[DataMember(Name="participants")] |
||||
public List<ParticipationEPDTO> Participants { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Engagements |
||||
/// </summary> |
||||
[DataMember(Name="engagements")] |
||||
public List<EngagementDTO> Engagements { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets AugmentationSalaire |
||||
/// </summary> |
||||
[DataMember(Name="augmentationSalaire")] |
||||
public AugmentationSalaireDTO AugmentationSalaire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DemandesDelegation |
||||
/// </summary> |
||||
[DataMember(Name="demandesDelegation")] |
||||
public List<DemandeDelegationDTO> DemandesDelegation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Documents |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="documents")] |
||||
public List<DocumentDTO> Documents { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class EpDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n"); |
||||
sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n"); |
||||
sb.Append(" DateSaisie: ").Append(DateSaisie).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" Cv: ").Append(Cv).Append("\n"); |
||||
sb.Append(" PropositionsEntretien: ").Append(PropositionsEntretien).Append("\n"); |
||||
sb.Append(" RdvEntretien: ").Append(RdvEntretien).Append("\n"); |
||||
sb.Append(" ChoixTypeEntretien: ").Append(ChoixTypeEntretien).Append("\n"); |
||||
sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n"); |
||||
sb.Append(" Objectif: ").Append(Objectif).Append("\n"); |
||||
sb.Append(" ObjectifPrecedent: ").Append(ObjectifPrecedent).Append("\n"); |
||||
sb.Append(" CommentaireAssistant: ").Append(CommentaireAssistant).Append("\n"); |
||||
sb.Append(" CommentaireCommercial: ").Append(CommentaireCommercial).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" Referent: ").Append(Referent).Append("\n"); |
||||
sb.Append(" DemandesFormation: ").Append(DemandesFormation).Append("\n"); |
||||
sb.Append(" Participants: ").Append(Participants).Append("\n"); |
||||
sb.Append(" Engagements: ").Append(Engagements).Append("\n"); |
||||
sb.Append(" AugmentationSalaire: ").Append(AugmentationSalaire).Append("\n"); |
||||
sb.Append(" DemandesDelegation: ").Append(DemandesDelegation).Append("\n"); |
||||
sb.Append(" Documents: ").Append(Documents).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((EpDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if EpDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of EpDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(EpDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
DateDisponibilite == other.DateDisponibilite || |
||||
DateDisponibilite != null && |
||||
DateDisponibilite.Equals(other.DateDisponibilite) |
||||
) && |
||||
( |
||||
DatePrevisionnelle == other.DatePrevisionnelle || |
||||
DatePrevisionnelle != null && |
||||
DatePrevisionnelle.Equals(other.DatePrevisionnelle) |
||||
) && |
||||
( |
||||
DateSaisie == other.DateSaisie || |
||||
DateSaisie != null && |
||||
DateSaisie.Equals(other.DateSaisie) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
Cv == other.Cv || |
||||
Cv != null && |
||||
Cv.Equals(other.Cv) |
||||
) && |
||||
( |
||||
PropositionsEntretien == other.PropositionsEntretien || |
||||
PropositionsEntretien != null && |
||||
PropositionsEntretien.SequenceEqual(other.PropositionsEntretien) |
||||
) && |
||||
( |
||||
RdvEntretien == other.RdvEntretien || |
||||
RdvEntretien != null && |
||||
RdvEntretien.Equals(other.RdvEntretien) |
||||
) && |
||||
( |
||||
ChoixTypeEntretien == other.ChoixTypeEntretien || |
||||
ChoixTypeEntretien != null && |
||||
ChoixTypeEntretien.Equals(other.ChoixTypeEntretien) |
||||
) && |
||||
( |
||||
Obligatoire == other.Obligatoire || |
||||
Obligatoire != null && |
||||
Obligatoire.Equals(other.Obligatoire) |
||||
) && |
||||
( |
||||
Objectif == other.Objectif || |
||||
Objectif != null && |
||||
Objectif.SequenceEqual(other.Objectif) |
||||
) && |
||||
( |
||||
ObjectifPrecedent == other.ObjectifPrecedent || |
||||
ObjectifPrecedent != null && |
||||
ObjectifPrecedent.SequenceEqual(other.ObjectifPrecedent) |
||||
) && |
||||
( |
||||
CommentaireAssistant == other.CommentaireAssistant || |
||||
CommentaireAssistant != null && |
||||
CommentaireAssistant.Equals(other.CommentaireAssistant) |
||||
) && |
||||
( |
||||
CommentaireCommercial == other.CommentaireCommercial || |
||||
CommentaireCommercial != null && |
||||
CommentaireCommercial.Equals(other.CommentaireCommercial) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
Referent == other.Referent || |
||||
Referent != null && |
||||
Referent.Equals(other.Referent) |
||||
) && |
||||
( |
||||
DemandesFormation == other.DemandesFormation || |
||||
DemandesFormation != null && |
||||
DemandesFormation.SequenceEqual(other.DemandesFormation) |
||||
) && |
||||
( |
||||
Participants == other.Participants || |
||||
Participants != null && |
||||
Participants.SequenceEqual(other.Participants) |
||||
) && |
||||
( |
||||
Engagements == other.Engagements || |
||||
Engagements != null && |
||||
Engagements.SequenceEqual(other.Engagements) |
||||
) && |
||||
( |
||||
AugmentationSalaire == other.AugmentationSalaire || |
||||
AugmentationSalaire != null && |
||||
AugmentationSalaire.Equals(other.AugmentationSalaire) |
||||
) && |
||||
( |
||||
DemandesDelegation == other.DemandesDelegation || |
||||
DemandesDelegation != null && |
||||
DemandesDelegation.SequenceEqual(other.DemandesDelegation) |
||||
) && |
||||
( |
||||
Documents == other.Documents || |
||||
Documents != null && |
||||
Documents.SequenceEqual(other.Documents) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (DateDisponibilite != null) |
||||
hashCode = hashCode * 59 + DateDisponibilite.GetHashCode(); |
||||
if (DatePrevisionnelle != null) |
||||
hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode(); |
||||
if (DateSaisie != null) |
||||
hashCode = hashCode * 59 + DateSaisie.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (Cv != null) |
||||
hashCode = hashCode * 59 + Cv.GetHashCode(); |
||||
if (PropositionsEntretien != null) |
||||
hashCode = hashCode * 59 + PropositionsEntretien.GetHashCode(); |
||||
if (RdvEntretien != null) |
||||
hashCode = hashCode * 59 + RdvEntretien.GetHashCode(); |
||||
if (ChoixTypeEntretien != null) |
||||
hashCode = hashCode * 59 + ChoixTypeEntretien.GetHashCode(); |
||||
if (Obligatoire != null) |
||||
hashCode = hashCode * 59 + Obligatoire.GetHashCode(); |
||||
if (Objectif != null) |
||||
hashCode = hashCode * 59 + Objectif.GetHashCode(); |
||||
if (ObjectifPrecedent != null) |
||||
hashCode = hashCode * 59 + ObjectifPrecedent.GetHashCode(); |
||||
if (CommentaireAssistant != null) |
||||
hashCode = hashCode * 59 + CommentaireAssistant.GetHashCode(); |
||||
if (CommentaireCommercial != null) |
||||
hashCode = hashCode * 59 + CommentaireCommercial.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (Referent != null) |
||||
hashCode = hashCode * 59 + Referent.GetHashCode(); |
||||
if (DemandesFormation != null) |
||||
hashCode = hashCode * 59 + DemandesFormation.GetHashCode(); |
||||
if (Participants != null) |
||||
hashCode = hashCode * 59 + Participants.GetHashCode(); |
||||
if (Engagements != null) |
||||
hashCode = hashCode * 59 + Engagements.GetHashCode(); |
||||
if (AugmentationSalaire != null) |
||||
hashCode = hashCode * 59 + AugmentationSalaire.GetHashCode(); |
||||
if (DemandesDelegation != null) |
||||
hashCode = hashCode * 59 + DemandesDelegation.GetHashCode(); |
||||
if (Documents != null) |
||||
hashCode = hashCode * 59 + Documents.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(EpDTO left, EpDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(EpDTO left, EpDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,225 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les informations de base d'un EP |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class EpInformationDTO : IEquatable<EpInformationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public int? Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="statut")] |
||||
public decimal? Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDisponibilite |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDisponibilite")] |
||||
public DateTime? DateDisponibilite { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DatePrevisionnelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="datePrevisionnelle")] |
||||
public DateTime? DatePrevisionnelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Obligatoire |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="obligatoire")] |
||||
public bool? Obligatoire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="collaborateur")] |
||||
public CollaborateurDTO Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Referent |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="referent")] |
||||
public CollaborateurDTO Referent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class EpInformationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n"); |
||||
sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n"); |
||||
sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" Referent: ").Append(Referent).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((EpInformationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if EpInformationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of EpInformationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(EpInformationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
DateDisponibilite == other.DateDisponibilite || |
||||
DateDisponibilite != null && |
||||
DateDisponibilite.Equals(other.DateDisponibilite) |
||||
) && |
||||
( |
||||
DatePrevisionnelle == other.DatePrevisionnelle || |
||||
DatePrevisionnelle != null && |
||||
DatePrevisionnelle.Equals(other.DatePrevisionnelle) |
||||
) && |
||||
( |
||||
Obligatoire == other.Obligatoire || |
||||
Obligatoire != null && |
||||
Obligatoire.Equals(other.Obligatoire) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
Referent == other.Referent || |
||||
Referent != null && |
||||
Referent.Equals(other.Referent) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (DateDisponibilite != null) |
||||
hashCode = hashCode * 59 + DateDisponibilite.GetHashCode(); |
||||
if (DatePrevisionnelle != null) |
||||
hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode(); |
||||
if (Obligatoire != null) |
||||
hashCode = hashCode * 59 + Obligatoire.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (Referent != null) |
||||
hashCode = hashCode * 59 + Referent.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(EpInformationDTO left, EpInformationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(EpInformationDTO left, EpInformationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,236 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Objet de l'EP au moment de la saisie du collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class EpSaisieDTO : IEquatable<EpSaisieDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public string Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DatePrevisionnelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="datePrevisionnelle")] |
||||
public DateTime? DatePrevisionnelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Cv |
||||
/// </summary> |
||||
[DataMember(Name="cv")] |
||||
public string Cv { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets ChoixEntretien |
||||
/// </summary> |
||||
[DataMember(Name="choixEntretien")] |
||||
public TypeEntretienDTO ChoixEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Obligatoire |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="obligatoire")] |
||||
public bool? Obligatoire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Objectif |
||||
/// </summary> |
||||
[DataMember(Name="objectif")] |
||||
public List<ObjectifDTO> Objectif { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets ObjectifPrecedent |
||||
/// </summary> |
||||
[DataMember(Name="objectifPrecedent")] |
||||
public List<ObjectifPrecedentDTO> ObjectifPrecedent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Documents |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="documents")] |
||||
public List<DocumentDTO> Documents { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class EpSaisieDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n"); |
||||
sb.Append(" Cv: ").Append(Cv).Append("\n"); |
||||
sb.Append(" ChoixEntretien: ").Append(ChoixEntretien).Append("\n"); |
||||
sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n"); |
||||
sb.Append(" Objectif: ").Append(Objectif).Append("\n"); |
||||
sb.Append(" ObjectifPrecedent: ").Append(ObjectifPrecedent).Append("\n"); |
||||
sb.Append(" Documents: ").Append(Documents).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((EpSaisieDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if EpSaisieDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of EpSaisieDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(EpSaisieDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
DatePrevisionnelle == other.DatePrevisionnelle || |
||||
DatePrevisionnelle != null && |
||||
DatePrevisionnelle.Equals(other.DatePrevisionnelle) |
||||
) && |
||||
( |
||||
Cv == other.Cv || |
||||
Cv != null && |
||||
Cv.Equals(other.Cv) |
||||
) && |
||||
( |
||||
ChoixEntretien == other.ChoixEntretien || |
||||
ChoixEntretien != null && |
||||
ChoixEntretien.Equals(other.ChoixEntretien) |
||||
) && |
||||
( |
||||
Obligatoire == other.Obligatoire || |
||||
Obligatoire != null && |
||||
Obligatoire.Equals(other.Obligatoire) |
||||
) && |
||||
( |
||||
Objectif == other.Objectif || |
||||
Objectif != null && |
||||
Objectif.SequenceEqual(other.Objectif) |
||||
) && |
||||
( |
||||
ObjectifPrecedent == other.ObjectifPrecedent || |
||||
ObjectifPrecedent != null && |
||||
ObjectifPrecedent.SequenceEqual(other.ObjectifPrecedent) |
||||
) && |
||||
( |
||||
Documents == other.Documents || |
||||
Documents != null && |
||||
Documents.SequenceEqual(other.Documents) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (DatePrevisionnelle != null) |
||||
hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode(); |
||||
if (Cv != null) |
||||
hashCode = hashCode * 59 + Cv.GetHashCode(); |
||||
if (ChoixEntretien != null) |
||||
hashCode = hashCode * 59 + ChoixEntretien.GetHashCode(); |
||||
if (Obligatoire != null) |
||||
hashCode = hashCode * 59 + Obligatoire.GetHashCode(); |
||||
if (Objectif != null) |
||||
hashCode = hashCode * 59 + Objectif.GetHashCode(); |
||||
if (ObjectifPrecedent != null) |
||||
hashCode = hashCode * 59 + ObjectifPrecedent.GetHashCode(); |
||||
if (Documents != null) |
||||
hashCode = hashCode * 59 + Documents.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(EpSaisieDTO left, EpSaisieDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(EpSaisieDTO left, EpSaisieDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Objet pour la gestion des erreurs |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ErreurDTO : IEquatable<ErreurDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Code |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="code")] |
||||
public string Code { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Message |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="message")] |
||||
public string Message { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ErreurDTO {\n"); |
||||
sb.Append(" Code: ").Append(Code).Append("\n"); |
||||
sb.Append(" Message: ").Append(Message).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ErreurDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ErreurDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ErreurDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ErreurDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Code == other.Code || |
||||
Code != null && |
||||
Code.Equals(other.Code) |
||||
) && |
||||
( |
||||
Message == other.Message || |
||||
Message != null && |
||||
Message.Equals(other.Message) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Code != null) |
||||
hashCode = hashCode * 59 + Code.GetHashCode(); |
||||
if (Message != null) |
||||
hashCode = hashCode * 59 + Message.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ErreurDTO left, ErreurDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ErreurDTO left, ErreurDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Evaluation d'une participation formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class EvaluationDTO : IEquatable<EvaluationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets IdParticipation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="idParticipation")] |
||||
public int? IdParticipation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Saisies |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="saisies")] |
||||
public List<SaisieDTO> Saisies { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class EvaluationDTO {\n"); |
||||
sb.Append(" IdParticipation: ").Append(IdParticipation).Append("\n"); |
||||
sb.Append(" Saisies: ").Append(Saisies).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((EvaluationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if EvaluationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of EvaluationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(EvaluationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
IdParticipation == other.IdParticipation || |
||||
IdParticipation != null && |
||||
IdParticipation.Equals(other.IdParticipation) |
||||
) && |
||||
( |
||||
Saisies == other.Saisies || |
||||
Saisies != null && |
||||
Saisies.SequenceEqual(other.Saisies) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (IdParticipation != null) |
||||
hashCode = hashCode * 59 + IdParticipation.GetHashCode(); |
||||
if (Saisies != null) |
||||
hashCode = hashCode * 59 + Saisies.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(EvaluationDTO left, EvaluationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(EvaluationDTO left, EvaluationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,298 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Toutes les informations d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class FormationDTO : IEquatable<FormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Intitule |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="intitule")] |
||||
public string Intitule { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Origine |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="origine")] |
||||
public OrigineFormationDTO Origine { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[DataMember(Name="statut")] |
||||
public StatutFormationDTO Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDebut |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDebut")] |
||||
public DateTime? DateDebut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateFin |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateFin")] |
||||
public DateTime? DateFin { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Heure |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="heure")] |
||||
public decimal? Heure { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Jour |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="jour")] |
||||
public decimal? Jour { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Organisme |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="organisme")] |
||||
public string Organisme { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Mode |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="mode")] |
||||
public ModeFormationDTO Mode { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public TypeFormationDTO Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets EstCertifie |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="estCertifie")] |
||||
public bool? EstCertifie { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets ParticipantsFormation |
||||
/// </summary> |
||||
[DataMember(Name="participantsFormation")] |
||||
public List<FormationDTOParticipantsFormation> ParticipantsFormation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class FormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Intitule: ").Append(Intitule).Append("\n"); |
||||
sb.Append(" Origine: ").Append(Origine).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n"); |
||||
sb.Append(" DateFin: ").Append(DateFin).Append("\n"); |
||||
sb.Append(" Heure: ").Append(Heure).Append("\n"); |
||||
sb.Append(" Jour: ").Append(Jour).Append("\n"); |
||||
sb.Append(" Organisme: ").Append(Organisme).Append("\n"); |
||||
sb.Append(" Mode: ").Append(Mode).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" EstCertifie: ").Append(EstCertifie).Append("\n"); |
||||
sb.Append(" ParticipantsFormation: ").Append(ParticipantsFormation).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((FormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if FormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of FormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(FormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Intitule == other.Intitule || |
||||
Intitule != null && |
||||
Intitule.Equals(other.Intitule) |
||||
) && |
||||
( |
||||
Origine == other.Origine || |
||||
Origine != null && |
||||
Origine.Equals(other.Origine) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
DateDebut == other.DateDebut || |
||||
DateDebut != null && |
||||
DateDebut.Equals(other.DateDebut) |
||||
) && |
||||
( |
||||
DateFin == other.DateFin || |
||||
DateFin != null && |
||||
DateFin.Equals(other.DateFin) |
||||
) && |
||||
( |
||||
Heure == other.Heure || |
||||
Heure != null && |
||||
Heure.Equals(other.Heure) |
||||
) && |
||||
( |
||||
Jour == other.Jour || |
||||
Jour != null && |
||||
Jour.Equals(other.Jour) |
||||
) && |
||||
( |
||||
Organisme == other.Organisme || |
||||
Organisme != null && |
||||
Organisme.Equals(other.Organisme) |
||||
) && |
||||
( |
||||
Mode == other.Mode || |
||||
Mode != null && |
||||
Mode.Equals(other.Mode) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
EstCertifie == other.EstCertifie || |
||||
EstCertifie != null && |
||||
EstCertifie.Equals(other.EstCertifie) |
||||
) && |
||||
( |
||||
ParticipantsFormation == other.ParticipantsFormation || |
||||
ParticipantsFormation != null && |
||||
ParticipantsFormation.SequenceEqual(other.ParticipantsFormation) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Intitule != null) |
||||
hashCode = hashCode * 59 + Intitule.GetHashCode(); |
||||
if (Origine != null) |
||||
hashCode = hashCode * 59 + Origine.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (DateDebut != null) |
||||
hashCode = hashCode * 59 + DateDebut.GetHashCode(); |
||||
if (DateFin != null) |
||||
hashCode = hashCode * 59 + DateFin.GetHashCode(); |
||||
if (Heure != null) |
||||
hashCode = hashCode * 59 + Heure.GetHashCode(); |
||||
if (Jour != null) |
||||
hashCode = hashCode * 59 + Jour.GetHashCode(); |
||||
if (Organisme != null) |
||||
hashCode = hashCode * 59 + Organisme.GetHashCode(); |
||||
if (Mode != null) |
||||
hashCode = hashCode * 59 + Mode.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (EstCertifie != null) |
||||
hashCode = hashCode * 59 + EstCertifie.GetHashCode(); |
||||
if (ParticipantsFormation != null) |
||||
hashCode = hashCode * 59 + ParticipantsFormation.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(FormationDTO left, FormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(FormationDTO left, FormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,221 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class FormationDTOParticipantsFormation : IEquatable<FormationDTOParticipantsFormation> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateCreation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateCreation")] |
||||
public DateTime? DateCreation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Formation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="formation")] |
||||
public string Formation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Date |
||||
/// </summary> |
||||
[DataMember(Name="date")] |
||||
public DateTime? Date { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[DataMember(Name="statut")] |
||||
public string Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdCollaborateur |
||||
/// </summary> |
||||
[DataMember(Name="idCollaborateur")] |
||||
public Guid? IdCollaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[DataMember(Name="collaborateur")] |
||||
public string Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets EstEvaluee |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="estEvaluee")] |
||||
public bool? EstEvaluee { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class FormationDTOParticipantsFormation {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" DateCreation: ").Append(DateCreation).Append("\n"); |
||||
sb.Append(" Formation: ").Append(Formation).Append("\n"); |
||||
sb.Append(" Date: ").Append(Date).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" EstEvaluee: ").Append(EstEvaluee).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((FormationDTOParticipantsFormation)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if FormationDTOParticipantsFormation instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of FormationDTOParticipantsFormation to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(FormationDTOParticipantsFormation other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
DateCreation == other.DateCreation || |
||||
DateCreation != null && |
||||
DateCreation.Equals(other.DateCreation) |
||||
) && |
||||
( |
||||
Formation == other.Formation || |
||||
Formation != null && |
||||
Formation.Equals(other.Formation) |
||||
) && |
||||
( |
||||
Date == other.Date || |
||||
Date != null && |
||||
Date.Equals(other.Date) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
IdCollaborateur == other.IdCollaborateur || |
||||
IdCollaborateur != null && |
||||
IdCollaborateur.Equals(other.IdCollaborateur) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
EstEvaluee == other.EstEvaluee || |
||||
EstEvaluee != null && |
||||
EstEvaluee.Equals(other.EstEvaluee) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (DateCreation != null) |
||||
hashCode = hashCode * 59 + DateCreation.GetHashCode(); |
||||
if (Formation != null) |
||||
hashCode = hashCode * 59 + Formation.GetHashCode(); |
||||
if (Date != null) |
||||
hashCode = hashCode * 59 + Date.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (IdCollaborateur != null) |
||||
hashCode = hashCode * 59 + IdCollaborateur.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (EstEvaluee != null) |
||||
hashCode = hashCode * 59 + EstEvaluee.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(FormationDTOParticipantsFormation left, FormationDTOParticipantsFormation right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(FormationDTOParticipantsFormation left, FormationDTOParticipantsFormation right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,238 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les détails d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class FormationDetailsDTO : IEquatable<FormationDetailsDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Intitule |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="intitule")] |
||||
public string Intitule { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[DataMember(Name="statut")] |
||||
public StatutFormationDTO Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDebut |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDebut")] |
||||
public DateTime? DateDebut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateFin |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateFin")] |
||||
public DateTime? DateFin { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets NbPartitipants |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nbPartitipants")] |
||||
public int? NbPartitipants { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Mode |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="mode")] |
||||
public ModeFormationDTO Mode { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public TypeFormationDTO Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets EstCertifie |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="estCertifie")] |
||||
public bool? EstCertifie { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class FormationDetailsDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Intitule: ").Append(Intitule).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n"); |
||||
sb.Append(" DateFin: ").Append(DateFin).Append("\n"); |
||||
sb.Append(" NbPartitipants: ").Append(NbPartitipants).Append("\n"); |
||||
sb.Append(" Mode: ").Append(Mode).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" EstCertifie: ").Append(EstCertifie).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((FormationDetailsDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if FormationDetailsDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of FormationDetailsDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(FormationDetailsDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Intitule == other.Intitule || |
||||
Intitule != null && |
||||
Intitule.Equals(other.Intitule) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
DateDebut == other.DateDebut || |
||||
DateDebut != null && |
||||
DateDebut.Equals(other.DateDebut) |
||||
) && |
||||
( |
||||
DateFin == other.DateFin || |
||||
DateFin != null && |
||||
DateFin.Equals(other.DateFin) |
||||
) && |
||||
( |
||||
NbPartitipants == other.NbPartitipants || |
||||
NbPartitipants != null && |
||||
NbPartitipants.Equals(other.NbPartitipants) |
||||
) && |
||||
( |
||||
Mode == other.Mode || |
||||
Mode != null && |
||||
Mode.Equals(other.Mode) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
EstCertifie == other.EstCertifie || |
||||
EstCertifie != null && |
||||
EstCertifie.Equals(other.EstCertifie) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Intitule != null) |
||||
hashCode = hashCode * 59 + Intitule.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (DateDebut != null) |
||||
hashCode = hashCode * 59 + DateDebut.GetHashCode(); |
||||
if (DateFin != null) |
||||
hashCode = hashCode * 59 + DateFin.GetHashCode(); |
||||
if (NbPartitipants != null) |
||||
hashCode = hashCode * 59 + NbPartitipants.GetHashCode(); |
||||
if (Mode != null) |
||||
hashCode = hashCode * 59 + Mode.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (EstCertifie != null) |
||||
hashCode = hashCode * 59 + EstCertifie.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(FormationDetailsDTO left, FormationDetailsDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(FormationDetailsDTO left, FormationDetailsDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Mode d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ModeFormationDTO : IEquatable<ModeFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ModeFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ModeFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ModeFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ModeFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ModeFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ModeFormationDTO left, ModeFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ModeFormationDTO left, ModeFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les objectifs pris par le collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ObjectifDTO : IEquatable<ObjectifDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ObjectifDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ObjectifDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ObjectifDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ObjectifDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ObjectifDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ObjectifDTO left, ObjectifDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ObjectifDTO left, ObjectifDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,165 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Les objectifs pris par le collaborateur durant le précédent EP |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ObjectifPrecedentDTO : IEquatable<ObjectifPrecedentDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Atteint |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="atteint")] |
||||
public bool? Atteint { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Commentaire |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="commentaire")] |
||||
public string Commentaire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ObjectifPrecedentDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append(" Atteint: ").Append(Atteint).Append("\n"); |
||||
sb.Append(" Commentaire: ").Append(Commentaire).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ObjectifPrecedentDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ObjectifPrecedentDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ObjectifPrecedentDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ObjectifPrecedentDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
) && |
||||
( |
||||
Atteint == other.Atteint || |
||||
Atteint != null && |
||||
Atteint.Equals(other.Atteint) |
||||
) && |
||||
( |
||||
Commentaire == other.Commentaire || |
||||
Commentaire != null && |
||||
Commentaire.Equals(other.Commentaire) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
if (Atteint != null) |
||||
hashCode = hashCode * 59 + Atteint.GetHashCode(); |
||||
if (Commentaire != null) |
||||
hashCode = hashCode * 59 + Commentaire.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ObjectifPrecedentDTO left, ObjectifPrecedentDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ObjectifPrecedentDTO left, ObjectifPrecedentDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Origine d'une demande de formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class OrigineDemandeFormationDTO : IEquatable<OrigineDemandeFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class OrigineDemandeFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((OrigineDemandeFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if OrigineDemandeFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of OrigineDemandeFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(OrigineDemandeFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(OrigineDemandeFormationDTO left, OrigineDemandeFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(OrigineDemandeFormationDTO left, OrigineDemandeFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Origine d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class OrigineFormationDTO : IEquatable<OrigineFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class OrigineFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((OrigineFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if OrigineFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of OrigineFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(OrigineFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(OrigineFormationDTO left, OrigineFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(OrigineFormationDTO left, OrigineFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,150 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Information des participants d'un EP (autre que le référent et le collaborateur) |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ParticipationEPDTO : IEquatable<ParticipationEPDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdCollaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="idCollaborateur")] |
||||
public Guid? IdCollaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="collaborateur")] |
||||
public string Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ParticipationEPDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ParticipationEPDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ParticipationEPDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ParticipationEPDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ParticipationEPDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
IdCollaborateur == other.IdCollaborateur || |
||||
IdCollaborateur != null && |
||||
IdCollaborateur.Equals(other.IdCollaborateur) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (IdCollaborateur != null) |
||||
hashCode = hashCode * 59 + IdCollaborateur.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ParticipationEPDTO left, ParticipationEPDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ParticipationEPDTO left, ParticipationEPDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,221 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ParticipationFormationDTO : IEquatable<ParticipationFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateCreation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateCreation")] |
||||
public DateTime? DateCreation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Formation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="formation")] |
||||
public string Formation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Date |
||||
/// </summary> |
||||
[DataMember(Name="date")] |
||||
public DateTime? Date { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Statut |
||||
/// </summary> |
||||
[DataMember(Name="statut")] |
||||
public string Statut { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets IdCollaborateur |
||||
/// </summary> |
||||
[DataMember(Name="idCollaborateur")] |
||||
public Guid? IdCollaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Collaborateur |
||||
/// </summary> |
||||
[DataMember(Name="collaborateur")] |
||||
public string Collaborateur { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets EstEvaluee |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="estEvaluee")] |
||||
public bool? EstEvaluee { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ParticipationFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" DateCreation: ").Append(DateCreation).Append("\n"); |
||||
sb.Append(" Formation: ").Append(Formation).Append("\n"); |
||||
sb.Append(" Date: ").Append(Date).Append("\n"); |
||||
sb.Append(" Statut: ").Append(Statut).Append("\n"); |
||||
sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n"); |
||||
sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n"); |
||||
sb.Append(" EstEvaluee: ").Append(EstEvaluee).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ParticipationFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ParticipationFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ParticipationFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ParticipationFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
DateCreation == other.DateCreation || |
||||
DateCreation != null && |
||||
DateCreation.Equals(other.DateCreation) |
||||
) && |
||||
( |
||||
Formation == other.Formation || |
||||
Formation != null && |
||||
Formation.Equals(other.Formation) |
||||
) && |
||||
( |
||||
Date == other.Date || |
||||
Date != null && |
||||
Date.Equals(other.Date) |
||||
) && |
||||
( |
||||
Statut == other.Statut || |
||||
Statut != null && |
||||
Statut.Equals(other.Statut) |
||||
) && |
||||
( |
||||
IdCollaborateur == other.IdCollaborateur || |
||||
IdCollaborateur != null && |
||||
IdCollaborateur.Equals(other.IdCollaborateur) |
||||
) && |
||||
( |
||||
Collaborateur == other.Collaborateur || |
||||
Collaborateur != null && |
||||
Collaborateur.Equals(other.Collaborateur) |
||||
) && |
||||
( |
||||
EstEvaluee == other.EstEvaluee || |
||||
EstEvaluee != null && |
||||
EstEvaluee.Equals(other.EstEvaluee) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (DateCreation != null) |
||||
hashCode = hashCode * 59 + DateCreation.GetHashCode(); |
||||
if (Formation != null) |
||||
hashCode = hashCode * 59 + Formation.GetHashCode(); |
||||
if (Date != null) |
||||
hashCode = hashCode * 59 + Date.GetHashCode(); |
||||
if (Statut != null) |
||||
hashCode = hashCode * 59 + Statut.GetHashCode(); |
||||
if (IdCollaborateur != null) |
||||
hashCode = hashCode * 59 + IdCollaborateur.GetHashCode(); |
||||
if (Collaborateur != null) |
||||
hashCode = hashCode * 59 + Collaborateur.GetHashCode(); |
||||
if (EstEvaluee != null) |
||||
hashCode = hashCode * 59 + EstEvaluee.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ParticipationFormationDTO left, ParticipationFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ParticipationFormationDTO left, ParticipationFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,180 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Objet contenant les détails du prochain EP non saisi du collaborateur |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ProchainEPDTO : IEquatable<ProchainEPDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Type |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="type")] |
||||
public int? Type { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateDisponibilite |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateDisponibilite")] |
||||
public DateTime? DateDisponibilite { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DatePrevisionnelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="datePrevisionnelle")] |
||||
public DateTime? DatePrevisionnelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Obligatoire |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="obligatoire")] |
||||
public bool? Obligatoire { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ProchainEPDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Type: ").Append(Type).Append("\n"); |
||||
sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n"); |
||||
sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n"); |
||||
sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ProchainEPDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ProchainEPDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ProchainEPDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ProchainEPDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Type == other.Type || |
||||
Type != null && |
||||
Type.Equals(other.Type) |
||||
) && |
||||
( |
||||
DateDisponibilite == other.DateDisponibilite || |
||||
DateDisponibilite != null && |
||||
DateDisponibilite.Equals(other.DateDisponibilite) |
||||
) && |
||||
( |
||||
DatePrevisionnelle == other.DatePrevisionnelle || |
||||
DatePrevisionnelle != null && |
||||
DatePrevisionnelle.Equals(other.DatePrevisionnelle) |
||||
) && |
||||
( |
||||
Obligatoire == other.Obligatoire || |
||||
Obligatoire != null && |
||||
Obligatoire.Equals(other.Obligatoire) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Type != null) |
||||
hashCode = hashCode * 59 + Type.GetHashCode(); |
||||
if (DateDisponibilite != null) |
||||
hashCode = hashCode * 59 + DateDisponibilite.GetHashCode(); |
||||
if (DatePrevisionnelle != null) |
||||
hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode(); |
||||
if (Obligatoire != null) |
||||
hashCode = hashCode * 59 + Obligatoire.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ProchainEPDTO left, ProchainEPDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ProchainEPDTO left, ProchainEPDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,178 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Information utile à avoir lorsqu'un utilisateur se connecte |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ProfilDTO : IEquatable<ProfilDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Nom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nom")] |
||||
public string Nom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Prenom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="prenom")] |
||||
public string Prenom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets MailApside |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="mailApside")] |
||||
public string MailApside { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateArrivee |
||||
/// </summary> |
||||
[DataMember(Name="dateArrivee")] |
||||
public DateTime? DateArrivee { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets BusinessUnit |
||||
/// </summary> |
||||
[DataMember(Name="businessUnit")] |
||||
public BusinessUnitDTO BusinessUnit { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ProfilDTO {\n"); |
||||
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||
sb.Append(" Prenom: ").Append(Prenom).Append("\n"); |
||||
sb.Append(" MailApside: ").Append(MailApside).Append("\n"); |
||||
sb.Append(" DateArrivee: ").Append(DateArrivee).Append("\n"); |
||||
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ProfilDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ProfilDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ProfilDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ProfilDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Nom == other.Nom || |
||||
Nom != null && |
||||
Nom.Equals(other.Nom) |
||||
) && |
||||
( |
||||
Prenom == other.Prenom || |
||||
Prenom != null && |
||||
Prenom.Equals(other.Prenom) |
||||
) && |
||||
( |
||||
MailApside == other.MailApside || |
||||
MailApside != null && |
||||
MailApside.Equals(other.MailApside) |
||||
) && |
||||
( |
||||
DateArrivee == other.DateArrivee || |
||||
DateArrivee != null && |
||||
DateArrivee.Equals(other.DateArrivee) |
||||
) && |
||||
( |
||||
BusinessUnit == other.BusinessUnit || |
||||
BusinessUnit != null && |
||||
BusinessUnit.Equals(other.BusinessUnit) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Nom != null) |
||||
hashCode = hashCode * 59 + Nom.GetHashCode(); |
||||
if (Prenom != null) |
||||
hashCode = hashCode * 59 + Prenom.GetHashCode(); |
||||
if (MailApside != null) |
||||
hashCode = hashCode * 59 + MailApside.GetHashCode(); |
||||
if (DateArrivee != null) |
||||
hashCode = hashCode * 59 + DateArrivee.GetHashCode(); |
||||
if (BusinessUnit != null) |
||||
hashCode = hashCode * 59 + BusinessUnit.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ProfilDTO left, ProfilDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ProfilDTO left, ProfilDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,150 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// RDV pour un entretien |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class RDVEntretienDTO : IEquatable<RDVEntretienDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public decimal? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DateEntretien |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="dateEntretien")] |
||||
public DateTime? DateEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets TypeEntretien |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="typeEntretien")] |
||||
public TypeEntretienDTO TypeEntretien { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class RDVEntretienDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" DateEntretien: ").Append(DateEntretien).Append("\n"); |
||||
sb.Append(" TypeEntretien: ").Append(TypeEntretien).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((RDVEntretienDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if RDVEntretienDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of RDVEntretienDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(RDVEntretienDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
DateEntretien == other.DateEntretien || |
||||
DateEntretien != null && |
||||
DateEntretien.Equals(other.DateEntretien) |
||||
) && |
||||
( |
||||
TypeEntretien == other.TypeEntretien || |
||||
TypeEntretien != null && |
||||
TypeEntretien.Equals(other.TypeEntretien) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (DateEntretien != null) |
||||
hashCode = hashCode * 59 + DateEntretien.GetHashCode(); |
||||
if (TypeEntretien != null) |
||||
hashCode = hashCode * 59 + TypeEntretien.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(RDVEntretienDTO left, RDVEntretienDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(RDVEntretienDTO left, RDVEntretienDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,205 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Saisi d'un collaborateur ou d'un référent sur un champ |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class SaisieDTO : IEquatable<SaisieDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public string Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets TypeSaisie |
||||
/// </summary> |
||||
[DataMember(Name="typeSaisie")] |
||||
public int? TypeSaisie { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Note |
||||
/// </summary> |
||||
[DataMember(Name="note")] |
||||
public int? Note { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Texte |
||||
/// </summary> |
||||
[DataMember(Name="texte")] |
||||
public string Texte { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Texte2 |
||||
/// </summary> |
||||
[DataMember(Name="texte2")] |
||||
public string Texte2 { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Niveau |
||||
/// </summary> |
||||
[DataMember(Name="niveau")] |
||||
public int? Niveau { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Champ |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="champ")] |
||||
public ChampDTO Champ { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class SaisieDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" TypeSaisie: ").Append(TypeSaisie).Append("\n"); |
||||
sb.Append(" Note: ").Append(Note).Append("\n"); |
||||
sb.Append(" Texte: ").Append(Texte).Append("\n"); |
||||
sb.Append(" Texte2: ").Append(Texte2).Append("\n"); |
||||
sb.Append(" Niveau: ").Append(Niveau).Append("\n"); |
||||
sb.Append(" Champ: ").Append(Champ).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((SaisieDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if SaisieDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of SaisieDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(SaisieDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
TypeSaisie == other.TypeSaisie || |
||||
TypeSaisie != null && |
||||
TypeSaisie.Equals(other.TypeSaisie) |
||||
) && |
||||
( |
||||
Note == other.Note || |
||||
Note != null && |
||||
Note.Equals(other.Note) |
||||
) && |
||||
( |
||||
Texte == other.Texte || |
||||
Texte != null && |
||||
Texte.Equals(other.Texte) |
||||
) && |
||||
( |
||||
Texte2 == other.Texte2 || |
||||
Texte2 != null && |
||||
Texte2.Equals(other.Texte2) |
||||
) && |
||||
( |
||||
Niveau == other.Niveau || |
||||
Niveau != null && |
||||
Niveau.Equals(other.Niveau) |
||||
) && |
||||
( |
||||
Champ == other.Champ || |
||||
Champ != null && |
||||
Champ.Equals(other.Champ) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (TypeSaisie != null) |
||||
hashCode = hashCode * 59 + TypeSaisie.GetHashCode(); |
||||
if (Note != null) |
||||
hashCode = hashCode * 59 + Note.GetHashCode(); |
||||
if (Texte != null) |
||||
hashCode = hashCode * 59 + Texte.GetHashCode(); |
||||
if (Texte2 != null) |
||||
hashCode = hashCode * 59 + Texte2.GetHashCode(); |
||||
if (Niveau != null) |
||||
hashCode = hashCode * 59 + Niveau.GetHashCode(); |
||||
if (Champ != null) |
||||
hashCode = hashCode * 59 + Champ.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(SaisieDTO left, SaisieDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(SaisieDTO left, SaisieDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Statut actuel d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class StatutFormationDTO : IEquatable<StatutFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class StatutFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((StatutFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if StatutFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of StatutFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(StatutFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(StatutFormationDTO left, StatutFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(StatutFormationDTO left, StatutFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,150 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Thème d'une demande de formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class ThemeDTO : IEquatable<ThemeDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Nom |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="nom")] |
||||
public string Nom { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets DemandesFormation |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="demandesFormation")] |
||||
public List<DemandeFormationDTO> DemandesFormation { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class ThemeDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||
sb.Append(" DemandesFormation: ").Append(DemandesFormation).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((ThemeDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if ThemeDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of ThemeDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(ThemeDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Nom == other.Nom || |
||||
Nom != null && |
||||
Nom.Equals(other.Nom) |
||||
) && |
||||
( |
||||
DemandesFormation == other.DemandesFormation || |
||||
DemandesFormation != null && |
||||
DemandesFormation.SequenceEqual(other.DemandesFormation) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Nom != null) |
||||
hashCode = hashCode * 59 + Nom.GetHashCode(); |
||||
if (DemandesFormation != null) |
||||
hashCode = hashCode * 59 + DemandesFormation.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(ThemeDTO left, ThemeDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(ThemeDTO left, ThemeDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Type de l'entretien d'un EP |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class TypeEntretienDTO : IEquatable<TypeEntretienDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class TypeEntretienDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((TypeEntretienDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if TypeEntretienDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of TypeEntretienDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(TypeEntretienDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(TypeEntretienDTO left, TypeEntretienDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(TypeEntretienDTO left, TypeEntretienDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,135 @@ |
||||
/* |
||||
* API du serveur de l'application de digitalisation des EP |
||||
* |
||||
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. |
||||
* |
||||
* OpenAPI spec version: 1.3.1 |
||||
* |
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||
*/ |
||||
using System; |
||||
using System.Linq; |
||||
using System.IO; |
||||
using System.Text; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using System.Collections.ObjectModel; |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Runtime.Serialization; |
||||
using Newtonsoft.Json; |
||||
|
||||
namespace IO.Swagger.DTO |
||||
{ |
||||
/// <summary> |
||||
/// Type d'une formation |
||||
/// </summary> |
||||
[DataContract] |
||||
public partial class TypeFormationDTO : IEquatable<TypeFormationDTO> |
||||
{ |
||||
/// <summary> |
||||
/// Gets or Sets Id |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="id")] |
||||
public int? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Gets or Sets Libelle |
||||
/// </summary> |
||||
[Required] |
||||
[DataMember(Name="libelle")] |
||||
public string Libelle { get; set; } |
||||
|
||||
/// <summary> |
||||
/// Returns the string presentation of the object |
||||
/// </summary> |
||||
/// <returns>String presentation of the object</returns> |
||||
public override string ToString() |
||||
{ |
||||
var sb = new StringBuilder(); |
||||
sb.Append("class TypeFormationDTO {\n"); |
||||
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||
sb.Append(" Libelle: ").Append(Libelle).Append("\n"); |
||||
sb.Append("}\n"); |
||||
return sb.ToString(); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the JSON string presentation of the object |
||||
/// </summary> |
||||
/// <returns>JSON string presentation of the object</returns> |
||||
public string ToJson() |
||||
{ |
||||
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if objects are equal |
||||
/// </summary> |
||||
/// <param name="obj">Object to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public override bool Equals(object obj) |
||||
{ |
||||
if (ReferenceEquals(null, obj)) return false; |
||||
if (ReferenceEquals(this, obj)) return true; |
||||
return obj.GetType() == GetType() && Equals((TypeFormationDTO)obj); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns true if TypeFormationDTO instances are equal |
||||
/// </summary> |
||||
/// <param name="other">Instance of TypeFormationDTO to be compared</param> |
||||
/// <returns>Boolean</returns> |
||||
public bool Equals(TypeFormationDTO other) |
||||
{ |
||||
if (ReferenceEquals(null, other)) return false; |
||||
if (ReferenceEquals(this, other)) return true; |
||||
|
||||
return |
||||
( |
||||
Id == other.Id || |
||||
Id != null && |
||||
Id.Equals(other.Id) |
||||
) && |
||||
( |
||||
Libelle == other.Libelle || |
||||
Libelle != null && |
||||
Libelle.Equals(other.Libelle) |
||||
); |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the hash code |
||||
/// </summary> |
||||
/// <returns>Hash code</returns> |
||||
public override int GetHashCode() |
||||
{ |
||||
unchecked // Overflow is fine, just wrap |
||||
{ |
||||
var hashCode = 41; |
||||
// Suitable nullity checks etc, of course :) |
||||
if (Id != null) |
||||
hashCode = hashCode * 59 + Id.GetHashCode(); |
||||
if (Libelle != null) |
||||
hashCode = hashCode * 59 + Libelle.GetHashCode(); |
||||
return hashCode; |
||||
} |
||||
} |
||||
|
||||
#region Operators |
||||
#pragma warning disable 1591 |
||||
|
||||
public static bool operator ==(TypeFormationDTO left, TypeFormationDTO right) |
||||
{ |
||||
return Equals(left, right); |
||||
} |
||||
|
||||
public static bool operator !=(TypeFormationDTO left, TypeFormationDTO right) |
||||
{ |
||||
return !Equals(left, right); |
||||
} |
||||
|
||||
#pragma warning restore 1591 |
||||
#endregion Operators |
||||
} |
||||
} |
@ -0,0 +1,51 @@ |
||||
using System.Linq; |
||||
using System.Text.RegularExpressions; |
||||
using Swashbuckle.AspNetCore.Swagger; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
using Microsoft.OpenApi.Models; |
||||
|
||||
namespace IO.Swagger.Filters |
||||
{ |
||||
/// <summary> |
||||
/// BasePath Document Filter sets BasePath property of Swagger and removes it from the individual URL paths |
||||
/// </summary> |
||||
public class BasePathFilter : IDocumentFilter |
||||
{ |
||||
/// <summary> |
||||
/// Constructor |
||||
/// </summary> |
||||
/// <param name="basePath">BasePath to remove from Operations</param> |
||||
public BasePathFilter(string basePath) |
||||
{ |
||||
BasePath = basePath; |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Gets the BasePath of the Swagger Doc |
||||
/// </summary> |
||||
/// <returns>The BasePath of the Swagger Doc</returns> |
||||
public string BasePath { get; } |
||||
|
||||
/// <summary> |
||||
/// Apply the filter |
||||
/// </summary> |
||||
/// <param name="swaggerDoc">OpenApiDocument</param> |
||||
/// <param name="context">FilterContext</param> |
||||
public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context) |
||||
{ |
||||
swaggerDoc.Servers.Add(new OpenApiServer() { Url = this.BasePath }); |
||||
|
||||
var pathsToModify = swaggerDoc.Paths.Where(p => p.Key.StartsWith(this.BasePath)).ToList(); |
||||
|
||||
foreach (var path in pathsToModify) |
||||
{ |
||||
if (path.Key.StartsWith(this.BasePath)) |
||||
{ |
||||
string newKey = Regex.Replace(path.Key, $"^{this.BasePath}", string.Empty); |
||||
swaggerDoc.Paths.Remove(path.Key); |
||||
swaggerDoc.Paths.Add(newKey, path.Value); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,96 @@ |
||||
using System.ComponentModel.DataAnnotations; |
||||
using System.Linq; |
||||
using Microsoft.AspNetCore.Mvc.Controllers; |
||||
using Microsoft.OpenApi.Models; |
||||
using Swashbuckle.AspNetCore.SwaggerGen; |
||||
|
||||
namespace IO.Swagger.Filters |
||||
{ |
||||
/// <summary> |
||||
/// Path Parameter Validation Rules Filter |
||||
/// </summary> |
||||
public class GeneratePathParamsValidationFilter : IOperationFilter |
||||
{ |
||||
/// <summary> |
||||
/// Constructor |
||||
/// </summary> |
||||
/// <param name="operation">Operation</param> |
||||
/// <param name="context">OperationFilterContext</param> |
||||
public void Apply(OpenApiOperation operation, OperationFilterContext context) |
||||
{ |
||||
var pars = context.ApiDescription.ParameterDescriptions; |
||||
|
||||
foreach (var par in pars) |
||||
{ |
||||
var swaggerParam = operation.Parameters.SingleOrDefault(p => p.Name == par.Name); |
||||
|
||||
var attributes = ((ControllerParameterDescriptor)par.ParameterDescriptor).ParameterInfo.CustomAttributes; |
||||
|
||||
if (attributes != null && attributes.Count() > 0 && swaggerParam != null) |
||||
{ |
||||
// Required - [Required] |
||||
var requiredAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RequiredAttribute)); |
||||
if (requiredAttr != null) |
||||
{ |
||||
swaggerParam.Required = true; |
||||
} |
||||
|
||||
// Regex Pattern [RegularExpression] |
||||
var regexAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RegularExpressionAttribute)); |
||||
if (regexAttr != null) |
||||
{ |
||||
string regex = (string)regexAttr.ConstructorArguments[0].Value; |
||||
if (swaggerParam is OpenApiParameter) |
||||
{ |
||||
((OpenApiParameter)swaggerParam).Schema.Pattern = regex; |
||||
} |
||||
} |
||||
|
||||
// String Length [StringLength] |
||||
int? minLenght = null, maxLength = null; |
||||
var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute)); |
||||
if (stringLengthAttr != null) |
||||
{ |
||||
if (stringLengthAttr.NamedArguments.Count == 1) |
||||
{ |
||||
minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value; |
||||
} |
||||
maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value; |
||||
} |
||||
|
||||
var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute)); |
||||
if (minLengthAttr != null) |
||||
{ |
||||
minLenght = (int)minLengthAttr.ConstructorArguments[0].Value; |
||||
} |
||||
|
||||
var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute)); |
||||
if (maxLengthAttr != null) |
||||
{ |
||||
maxLength = (int)maxLengthAttr.ConstructorArguments[0].Value; |
||||
} |
||||
|
||||
if (swaggerParam is OpenApiParameter) |
||||
{ |
||||
((OpenApiParameter)swaggerParam).Schema.MinLength = minLenght; |
||||
((OpenApiParameter)swaggerParam).Schema.MaxLength = maxLength; |
||||
} |
||||
|
||||
// Range [Range] |
||||
var rangeAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RangeAttribute)); |
||||
if (rangeAttr != null) |
||||
{ |
||||
int rangeMin = (int)rangeAttr.ConstructorArguments[0].Value; |
||||
int rangeMax = (int)rangeAttr.ConstructorArguments[1].Value; |
||||
|
||||
if (swaggerParam is OpenApiParameter) |
||||
{ |
||||
((OpenApiParameter)swaggerParam).Schema.Minimum = rangeMin; |
||||
((OpenApiParameter)swaggerParam).Schema.Maximum = rangeMax; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,58 @@ |
||||
using System; |
||||
using System.Net.Http.Headers; |
||||
using System.Security.Claims; |
||||
using System.Text; |
||||
using System.Text.Encodings.Web; |
||||
using System.Threading.Tasks; |
||||
using Microsoft.AspNetCore.Authentication; |
||||
using Microsoft.Extensions.Logging; |
||||
using Microsoft.Extensions.Options; |
||||
|
||||
namespace IO.Swagger.Security |
||||
{ |
||||
/// <summary> |
||||
/// class to handle bearer authentication. |
||||
/// </summary> |
||||
public class BearerAuthenticationHandler : AuthenticationHandler<AuthenticationSchemeOptions> |
||||
{ |
||||
/// <summary> |
||||
/// scheme name for authentication handler. |
||||
/// </summary> |
||||
public const string SchemeName = "Bearer"; |
||||
|
||||
public BearerAuthenticationHandler(IOptionsMonitor<AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock) |
||||
{ |
||||
} |
||||
|
||||
/// <summary> |
||||
/// verify that require authorization header exists. |
||||
/// </summary> |
||||
protected override async Task<AuthenticateResult> HandleAuthenticateAsync() |
||||
{ |
||||
if (!Request.Headers.ContainsKey("Authorization")) |
||||
{ |
||||
return AuthenticateResult.Fail("Missing Authorization Header"); |
||||
} |
||||
try |
||||
{ |
||||
var authHeader = AuthenticationHeaderValue.Parse(Request.Headers["Authorization"]); |
||||
|
||||
/// TODO handle token. |
||||
} |
||||
catch |
||||
{ |
||||
return AuthenticateResult.Fail("Invalid Authorization Header"); |
||||
} |
||||
|
||||
var claims = new[] { |
||||
new Claim(ClaimTypes.NameIdentifier, "changeme"), |
||||
new Claim(ClaimTypes.Name, "changeme"), |
||||
}; |
||||
var identity = new ClaimsIdentity(claims, Scheme.Name); |
||||
var principal = new ClaimsPrincipal(identity); |
||||
var ticket = new AuthenticationTicket(principal, Scheme.Name); |
||||
|
||||
return AuthenticateResult.Success(ticket); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue