Récupération du code du service collaborateur

master
Yanaël GRETTE 4 years ago
parent 823251d892
commit b0ff800c46
  1. 1039
      ApiCollaborateur/AdresseApi.cs
  2. 1039
      ApiCollaborateur/AgenceApi.cs
  3. 1039
      ApiCollaborateur/BusinessUnitApi.cs
  4. 2171
      ApiCollaborateur/CollaborateurApi.cs
  5. 920
      ApiCollaborateur/PridodeDessaiApi.cs
  6. 1212
      ApiCollaborateur/ProjetApi.cs
  7. 864
      ApiCollaborateur/RfrentApi.cs
  8. 529
      ClientCollaborateur/ApiClient.cs
  9. 59
      ClientCollaborateur/ApiException.cs
  10. 53
      ClientCollaborateur/ApiResponse.cs
  11. 469
      ClientCollaborateur/Configuration.cs
  12. 23
      ClientCollaborateur/ExceptionFactory.cs
  13. 33
      ClientCollaborateur/GlobalConfiguration.cs
  14. 41
      ClientCollaborateur/IApiAccessor.cs
  15. 93
      ClientCollaborateur/IReadableConfiguration.cs
  16. 29
      ClientCollaborateur/SwaggerDateConverter.cs
  17. 1
      EPAServeur.csproj
  18. 220
      ModelCollaborateur/Adresse.cs
  19. 155
      ModelCollaborateur/Agence.cs
  20. 154
      ModelCollaborateur/BU.cs
  21. 457
      ModelCollaborateur/Collaborateur.cs
  22. 138
      ModelCollaborateur/Fonction.cs
  23. 47
      ModelCollaborateur/Genre.cs
  24. 57
      ModelCollaborateur/IssuePE.cs
  25. 429
      ModelCollaborateur/NouveauCollaborateur.cs
  26. 188
      ModelCollaborateur/NouveauProjet.cs
  27. 204
      ModelCollaborateur/NouvelleAdresse.cs
  28. 139
      ModelCollaborateur/NouvelleAgence.cs
  29. 138
      ModelCollaborateur/NouvelleBU.cs
  30. 189
      ModelCollaborateur/NouvellePeriodeEssai.cs
  31. 205
      ModelCollaborateur/PeriodeEssai.cs
  32. 204
      ModelCollaborateur/Projet.cs
  33. 52
      ModelCollaborateur/Statut.cs
  34. 138
      ModelCollaborateur/Technologie.cs

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,920 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using RestSharp;
using IO.Swagger.ClientCollaborateur;
using IO.Swagger.ModelCollaborateur;
namespace IO.Swagger.ApiCollaborateur
{
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IPridodeDessaiApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
void MajPE (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> MajPEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours
/// </summary>
/// <remarks>
/// La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> MajPEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
#endregion Asynchronous Operations
}
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class PridodeDessaiApi : IPridodeDessaiApi
{
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class.
/// </summary>
/// <returns></returns>
public PridodeDessaiApi(String basePath)
{
this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath };
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class
/// </summary>
/// <returns></returns>
public PridodeDessaiApi()
{
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class
/// using Configuration object
/// </summary>
/// <param name="configuration">An instance of Configuration</param>
/// <returns></returns>
public PridodeDessaiApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null)
{
if (configuration == null) // use the default one in Configuration
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
else
this.Configuration = configuration;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Gets the base path of the API client.
/// </summary>
/// <value>The base path</value>
public String GetBasePath()
{
return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
/// <summary>
/// Sets the base path of the API client.
/// </summary>
/// <value>The base path</value>
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(String basePath)
{
// do nothing
}
/// <summary>
/// Gets or sets the configuration object
/// </summary>
/// <value>An instance of the Configuration</value>
public IO.Swagger.ClientCollaborateur.Configuration Configuration {get; set;}
/// <summary>
/// Provides a factory method hook for the creation of exceptions.
/// </summary>
public IO.Swagger.ClientCollaborateur.ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
/// <summary>
/// Gets the default header.
/// </summary>
/// <returns>Dictionary of HTTP header</returns>
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary<String, String> DefaultHeader()
{
return new ReadOnlyDictionary<string, string>(this.Configuration.DefaultHeader);
}
/// <summary>
/// Add default header.
/// </summary>
/// <param name="key">Header field name.</param>
/// <param name="value">Header field value.</param>
/// <returns></returns>
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
this.Configuration.AddDefaultHeader(key, value);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
public void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null)
{
Maj1PEWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("Maj1PE", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null)
{
await Maj1PEAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("Maj1PE", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
public void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null)
{
Maj1PEPatchWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("Maj1PEPatch", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null)
{
await Maj1PEPatchAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("Maj1PEPatch", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
public void MajPE (Guid? collabId, NouvellePeriodeEssai body = null)
{
MajPEWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MajPE", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null)
{
await MajPEAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MajPE", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns></returns>
public void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null)
{
MajPEPatchWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> MajPEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MajPEPatch", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null)
{
await MajPEPatchAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> MajPEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
"application/json"
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (body != null && body.GetType() != typeof(byte[]))
{
localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
}
else
{
localVarPostBody = body; // byte array
}
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MajPEPatch", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,864 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using RestSharp;
using IO.Swagger.ClientCollaborateur;
using IO.Swagger.ModelCollaborateur;
namespace IO.Swagger.ApiCollaborateur
{
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IRfrentApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherRefCollabId (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherRefCollabIdWithHttpInfo (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherRefCollabMail (string mailApside);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherRefCollabMailWithHttpInfo (string mailApside);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date);
#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date);
#endregion Asynchronous Operations
}
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class RfrentApi : IRfrentApi
{
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class.
/// </summary>
/// <returns></returns>
public RfrentApi(String basePath)
{
this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath };
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class
/// </summary>
/// <returns></returns>
public RfrentApi()
{
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class
/// using Configuration object
/// </summary>
/// <param name="configuration">An instance of Configuration</param>
/// <returns></returns>
public RfrentApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null)
{
if (configuration == null) // use the default one in Configuration
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
else
this.Configuration = configuration;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Gets the base path of the API client.
/// </summary>
/// <value>The base path</value>
public String GetBasePath()
{
return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
/// <summary>
/// Sets the base path of the API client.
/// </summary>
/// <value>The base path</value>
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(String basePath)
{
// do nothing
}
/// <summary>
/// Gets or sets the configuration object
/// </summary>
/// <value>An instance of the Configuration</value>
public IO.Swagger.ClientCollaborateur.Configuration Configuration {get; set;}
/// <summary>
/// Provides a factory method hook for the creation of exceptions.
/// </summary>
public IO.Swagger.ClientCollaborateur.ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
/// <summary>
/// Gets the default header.
/// </summary>
/// <returns>Dictionary of HTTP header</returns>
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary<String, String> DefaultHeader()
{
return new ReadOnlyDictionary<string, string>(this.Configuration.DefaultHeader);
}
/// <summary>
/// Add default header.
/// </summary>
/// <param name="key">Header field name.</param>
/// <param name="value">Header field value.</param>
/// <returns></returns>
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
this.Configuration.AddDefaultHeader(key, value);
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherRefCollabId (Guid? collabId)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabIdWithHttpInfo(collabId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherRefCollabIdWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId");
var localVarPath = "/collaborateurs/{collabId}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabIdAsyncWithHttpInfo(collabId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId");
var localVarPath = "/collaborateurs/{collabId}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherRefCollabMail (string mailApside)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabMailWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherRefCollabMailWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabMailAsyncWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
public Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date)
{
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabIdWithHttpInfo(collabId, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
var localVarPath = "/collaborateurs/{collabId}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo(collabId, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
var localVarPath = "/collaborateurs/{collabId}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
public Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date)
{
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabMailWithHttpInfo(mailApside, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo(mailApside, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
}
}

@ -0,0 +1,529 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Text.RegularExpressions;
using System.IO;
using System.Web;
using System.Linq;
using System.Net;
using System.Text;
using Newtonsoft.Json;
using RestSharp;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// API client is mainly responsible for making the HTTP call to the API backend.
/// </summary>
public partial class ApiClient
{
private JsonSerializerSettings serializerSettings = new JsonSerializerSettings
{
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor
};
/// <summary>
/// Allows for extending request processing for <see cref="ApiClient"/> generated code.
/// </summary>
/// <param name="request">The RestSharp request object</param>
partial void InterceptRequest(IRestRequest request);
/// <summary>
/// Allows for extending response processing for <see cref="ApiClient"/> generated code.
/// </summary>
/// <param name="request">The RestSharp request object</param>
/// <param name="response">The RestSharp response object</param>
partial void InterceptResponse(IRestRequest request, IRestResponse response);
/// <summary>
/// Initializes a new instance of the <see cref="ApiClient" /> class
/// with default configuration.
/// </summary>
public ApiClient()
{
Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
RestClient = new RestClient("https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1");
}
/// <summary>
/// Initializes a new instance of the <see cref="ApiClient" /> class
/// with default base path (https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1).
/// </summary>
/// <param name="config">An instance of Configuration.</param>
public ApiClient(Configuration config)
{
Configuration = config ?? IO.Swagger.ClientCollaborateur.Configuration.Default;
RestClient = new RestClient(Configuration.BasePath);
}
/// <summary>
/// Initializes a new instance of the <see cref="ApiClient" /> class
/// with default configuration.
/// </summary>
/// <param name="basePath">The base path.</param>
public ApiClient(String basePath = "https://localhost:3000")
{
if (String.IsNullOrEmpty(basePath))
throw new ArgumentException("basePath cannot be empty");
RestClient = new RestClient(basePath);
Configuration = ClientCollaborateur.Configuration.Default;
}
/// <summary>
/// Gets or sets the default API client for making HTTP calls.
/// </summary>
/// <value>The default API client.</value>
[Obsolete("ApiClient.Default is deprecated, please use 'Configuration.Default.ApiClient' instead.")]
public static ApiClient Default;
/// <summary>
/// Gets or sets an instance of the IReadableConfiguration.
/// </summary>
/// <value>An instance of the IReadableConfiguration.</value>
/// <remarks>
/// <see cref="IReadableConfiguration"/> helps us to avoid modifying possibly global
/// configuration values from within a given client. It does not guarantee thread-safety
/// of the <see cref="Configuration"/> instance in any way.
/// </remarks>
public IReadableConfiguration Configuration { get; set; }
/// <summary>
/// Gets or sets the RestClient.
/// </summary>
/// <value>An instance of the RestClient</value>
public RestClient RestClient { get; set; }
// Creates and sets up a RestRequest prior to a call.
private RestRequest PrepareRequest(
String path, RestSharp.Method method, List<KeyValuePair<String, String>> queryParams, Object postBody,
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams,
String contentType)
{
var request = new RestRequest(path, method);
// add path parameter, if any
foreach(var param in pathParams)
request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment);
// add header parameter, if any
foreach(var param in headerParams)
request.AddHeader(param.Key, param.Value);
// add query parameter, if any
foreach(var param in queryParams)
request.AddQueryParameter(param.Key, param.Value);
// add form parameter, if any
foreach(var param in formParams)
request.AddParameter(param.Key, param.Value);
// add file parameter, if any
foreach(var param in fileParams)
{
request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength, param.Value.ContentType);
}
if (postBody != null) // http body (model or byte[]) parameter
{
request.AddParameter(contentType, postBody, ParameterType.RequestBody);
}
return request;
}
/// <summary>
/// Makes the HTTP request (Sync).
/// </summary>
/// <param name="path">URL path.</param>
/// <param name="method">HTTP method.</param>
/// <param name="queryParams">Query parameters.</param>
/// <param name="postBody">HTTP body (POST request).</param>
/// <param name="headerParams">Header parameters.</param>
/// <param name="formParams">Form parameters.</param>
/// <param name="fileParams">File parameters.</param>
/// <param name="pathParams">Path parameters.</param>
/// <param name="contentType">Content Type of the request</param>
/// <returns>Object</returns>
public Object CallApi(
String path, RestSharp.Method method, List<KeyValuePair<String, String>> queryParams, Object postBody,
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams,
String contentType)
{
var request = PrepareRequest(
path, method, queryParams, postBody, headerParams, formParams, fileParams,
pathParams, contentType);
// set timeout
RestClient.Timeout = Configuration.Timeout;
// set user agent
RestClient.UserAgent = Configuration.UserAgent;
InterceptRequest(request);
var response = RestClient.Execute(request);
InterceptResponse(request, response);
return (Object) response;
}
/// <summary>
/// Makes the asynchronous HTTP request.
/// </summary>
/// <param name="path">URL path.</param>
/// <param name="method">HTTP method.</param>
/// <param name="queryParams">Query parameters.</param>
/// <param name="postBody">HTTP body (POST request).</param>
/// <param name="headerParams">Header parameters.</param>
/// <param name="formParams">Form parameters.</param>
/// <param name="fileParams">File parameters.</param>
/// <param name="pathParams">Path parameters.</param>
/// <param name="contentType">Content type.</param>
/// <returns>The Task instance.</returns>
public async System.Threading.Tasks.Task<Object> CallApiAsync(
String path, RestSharp.Method method, List<KeyValuePair<String, String>> queryParams, Object postBody,
Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams,
String contentType)
{
var request = PrepareRequest(
path, method, queryParams, postBody, headerParams, formParams, fileParams,
pathParams, contentType);
InterceptRequest(request);
var response = await RestClient.ExecuteAsync(request);
InterceptResponse(request, response);
return (Object)response;
}
/// <summary>
/// Escape string (url-encoded).
/// </summary>
/// <param name="str">String to be escaped.</param>
/// <returns>Escaped string.</returns>
public string EscapeString(string str)
{
return UrlEncode(str);
}
/// <summary>
/// Create FileParameter based on Stream.
/// </summary>
/// <param name="name">Parameter name.</param>
/// <param name="stream">Input stream.</param>
/// <returns>FileParameter.</returns>
public FileParameter ParameterToFile(string name, Stream stream)
{
if (stream is FileStream)
return FileParameter.Create(name, ReadAsBytes(stream), Path.GetFileName(((FileStream)stream).Name));
else
return FileParameter.Create(name, ReadAsBytes(stream), "no_file_name_provided");
}
/// <summary>
/// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
/// If parameter is a list, join the list with ",".
/// Otherwise just return the string.
/// </summary>
/// <param name="obj">The parameter (header, path, query, form).</param>
/// <returns>Formatted string.</returns>
public string ParameterToString(object obj)
{
if (obj is DateTime)
// Return a formatted date string - Can be customized with Configuration.DateTimeFormat
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
// For example: 2009-06-15T13:45:30.0000000
return ((DateTime)obj).ToString (Configuration.DateTimeFormat);
else if (obj is DateTimeOffset)
// Return a formatted date string - Can be customized with Configuration.DateTimeFormat
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
// For example: 2009-06-15T13:45:30.0000000
return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat);
else if (obj is IList)
{
var flattenedString = new StringBuilder();
foreach (var param in (IList)obj)
{
if (flattenedString.Length > 0)
flattenedString.Append(",");
flattenedString.Append(param);
}
return flattenedString.ToString();
}
else
return Convert.ToString (obj);
}
/// <summary>
/// Deserialize the JSON string into a proper object.
/// </summary>
/// <param name="response">The HTTP response.</param>
/// <param name="type">Object type.</param>
/// <returns>Object representation of the JSON string.</returns>
public object Deserialize(IRestResponse response, Type type)
{
IList<Parameter> headers = response.Headers;
if (type == typeof(byte[])) // return byte array
{
return response.RawBytes;
}
// TODO: ? if (type.IsAssignableFrom(typeof(Stream)))
if (type == typeof(Stream))
{
if (headers != null)
{
var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath)
? Path.GetTempPath()
: Configuration.TempFolderPath;
var regex = new Regex(@"Content-Disposition=.*filename=['""]?([^'""\s]+)['""]?$");
foreach (var header in headers)
{
var match = regex.Match(header.ToString());
if (match.Success)
{
string fileName = filePath + SanitizeFilename(match.Groups[1].Value.Replace("\"", "").Replace("'", ""));
File.WriteAllBytes(fileName, response.RawBytes);
return new FileStream(fileName, FileMode.Open);
}
}
}
var stream = new MemoryStream(response.RawBytes);
return stream;
}
if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object
{
return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind);
}
if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
{
return ConvertType(response.Content, type);
}
// at this point, it must be a model (json)
try
{
return JsonConvert.DeserializeObject(response.Content, type, serializerSettings);
}
catch (Exception e)
{
throw new ApiException(500, e.Message);
}
}
/// <summary>
/// Serialize an input (model) into JSON string
/// </summary>
/// <param name="obj">Object.</param>
/// <returns>JSON string.</returns>
public String Serialize(object obj)
{
try
{
return obj != null ? JsonConvert.SerializeObject(obj) : null;
}
catch (Exception e)
{
throw new ApiException(500, e.Message);
}
}
/// <summary>
///Check if the given MIME is a JSON MIME.
///JSON MIME examples:
/// application/json
/// application/json; charset=UTF8
/// APPLICATION/JSON
/// application/vnd.company+json
/// </summary>
/// <param name="mime">MIME</param>
/// <returns>Returns True if MIME type is json.</returns>
public bool IsJsonMime(String mime)
{
var jsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$");
return mime != null && (jsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"));
}
/// <summary>
/// Select the Content-Type header's value from the given content-type array:
/// if JSON type exists in the given array, use it;
/// otherwise use the first one defined in 'consumes'
/// </summary>
/// <param name="contentTypes">The Content-Type array to select from.</param>
/// <returns>The Content-Type header to use.</returns>
public String SelectHeaderContentType(String[] contentTypes)
{
if (contentTypes.Length == 0)
return "application/json";
foreach (var contentType in contentTypes)
{
if (IsJsonMime(contentType.ToLower()))
return contentType;
}
return contentTypes[0]; // use the first content type specified in 'consumes'
}
/// <summary>
/// Select the Accept header's value from the given accepts array:
/// if JSON exists in the given array, use it;
/// otherwise use all of them (joining into a string)
/// </summary>
/// <param name="accepts">The accepts array to select from.</param>
/// <returns>The Accept header to use.</returns>
public String SelectHeaderAccept(String[] accepts)
{
if (accepts.Length == 0)
return null;
if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase))
return "application/json";
return String.Join(",", accepts);
}
/// <summary>
/// Encode string in base64 format.
/// </summary>
/// <param name="text">String to be encoded.</param>
/// <returns>Encoded string.</returns>
public static string Base64Encode(string text)
{
return System.Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text));
}
/// <summary>
/// Dynamically cast the object into target type.
/// </summary>
/// <param name="fromObject">Object to be casted</param>
/// <param name="toObject">Target type</param>
/// <returns>Casted object</returns>
public static dynamic ConvertType(dynamic fromObject, Type toObject)
{
return Convert.ChangeType(fromObject, toObject);
}
/// <summary>
/// Convert stream to byte array
/// </summary>
/// <param name="inputStream">Input stream to be converted</param>
/// <returns>Byte array</returns>
public static byte[] ReadAsBytes(Stream inputStream)
{
byte[] buf = new byte[16*1024];
using (MemoryStream ms = new MemoryStream())
{
int count;
while ((count = inputStream.Read(buf, 0, buf.Length)) > 0)
{
ms.Write(buf, 0, count);
}
return ms.ToArray();
}
}
/// <summary>
/// URL encode a string
/// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50
/// </summary>
/// <param name="input">String to be URL encoded</param>
/// <returns>Byte array</returns>
public static string UrlEncode(string input)
{
const int maxLength = 32766;
if (input == null)
{
throw new ArgumentNullException("input");
}
if (input.Length <= maxLength)
{
return Uri.EscapeDataString(input);
}
StringBuilder sb = new StringBuilder(input.Length * 2);
int index = 0;
while (index < input.Length)
{
int length = Math.Min(input.Length - index, maxLength);
string subString = input.Substring(index, length);
sb.Append(Uri.EscapeDataString(subString));
index += subString.Length;
}
return sb.ToString();
}
/// <summary>
/// Sanitize filename by removing the path
/// </summary>
/// <param name="filename">Filename</param>
/// <returns>Filename</returns>
public static string SanitizeFilename(string filename)
{
Match match = Regex.Match(filename, @".*[/\\](.*)$");
if (match.Success)
{
return match.Groups[1].Value;
}
else
{
return filename;
}
}
/// <summary>
/// Convert params to key/value pairs.
/// Use collectionFormat to properly format lists and collections.
/// </summary>
/// <param name="name">Key name.</param>
/// <param name="value">Value object.</param>
/// <returns>A list of KeyValuePairs</returns>
public IEnumerable<KeyValuePair<string, string>> ParameterToKeyValuePairs(string collectionFormat, string name, object value)
{
var parameters = new List<KeyValuePair<string, string>>();
if (IsCollection(value) && collectionFormat == "multi")
{
var valueCollection = value as IEnumerable;
parameters.AddRange(from object item in valueCollection select new KeyValuePair<string, string>(name, ParameterToString(item)));
}
else
{
parameters.Add(new KeyValuePair<string, string>(name, ParameterToString(value)));
}
return parameters;
}
/// <summary>
/// Check if generic object is a collection.
/// </summary>
/// <param name="value"></param>
/// <returns>True if object is a collection type</returns>
private static bool IsCollection(object value)
{
return value is IList || value is ICollection;
}
}
}

@ -0,0 +1,59 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// API Exception
/// </summary>
public class ApiException : Exception
{
/// <summary>
/// Gets or sets the error code (HTTP status code)
/// </summary>
/// <value>The error code (HTTP status code).</value>
public int ErrorCode { get; set; }
/// <summary>
/// Gets or sets the error content (body json object)
/// </summary>
/// <value>The error content (Http response body).</value>
public dynamic ErrorContent { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ApiException"/> class.
/// </summary>
public ApiException() {}
/// <summary>
/// Initializes a new instance of the <see cref="ApiException"/> class.
/// </summary>
/// <param name="errorCode">HTTP status code.</param>
/// <param name="message">Error message.</param>
public ApiException(int errorCode, string message) : base(message)
{
this.ErrorCode = errorCode;
}
/// <summary>
/// Initializes a new instance of the <see cref="ApiException"/> class.
/// </summary>
/// <param name="errorCode">HTTP status code.</param>
/// <param name="message">Error message.</param>
/// <param name="errorContent">Error content.</param>
public ApiException(int errorCode, string message, dynamic errorContent = null) : base(message)
{
this.ErrorCode = errorCode;
this.ErrorContent = errorContent;
}
}
}

@ -0,0 +1,53 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// API Response
/// </summary>
public class ApiResponse<T>
{
/// <summary>
/// Gets or sets the status code (HTTP status code)
/// </summary>
/// <value>The status code.</value>
public int StatusCode { get; private set; }
/// <summary>
/// Gets or sets the HTTP headers
/// </summary>
/// <value>HTTP headers</value>
public IDictionary<string, string> Headers { get; private set; }
/// <summary>
/// Gets or sets the data (parsed HTTP body)
/// </summary>
/// <value>The data.</value>
public T Data { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ApiResponse&lt;T&gt;" /> class.
/// </summary>
/// <param name="statusCode">HTTP status code.</param>
/// <param name="headers">HTTP headers.</param>
/// <param name="data">Data (parsed HTTP body)</param>
public ApiResponse(int statusCode, IDictionary<string, string> headers, T data)
{
this.StatusCode= statusCode;
this.Headers = headers;
this.Data = data;
}
}
}

@ -0,0 +1,469 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Reflection;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// Represents a set of configuration settings
/// </summary>
public class Configuration : IReadableConfiguration
{
#region Constants
/// <summary>
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "1.0.0";
/// <summary>
/// Identifier for ISO 8601 DateTime Format
/// </summary>
/// <remarks>See https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 for more information.</remarks>
// ReSharper disable once InconsistentNaming
public const string ISO8601_DATETIME_FORMAT = "o";
#endregion Constants
#region Static Members
private static readonly object GlobalConfigSync = new { };
private static Configuration _globalConfiguration;
/// <summary>
/// Default creation of exceptions for a given method name and response object
/// </summary>
public static readonly ExceptionFactory DefaultExceptionFactory = (methodName, response) =>
{
var status = (int)response.StatusCode;
if (status >= 400)
{
return new ApiException(status,
string.Format("Error calling {0}: {1}", methodName, response.Content),
response.Content);
}
if (status == 0)
{
return new ApiException(status,
string.Format("Error calling {0}: {1}", methodName, response.ErrorMessage), response.ErrorMessage);
}
return null;
};
/// <summary>
/// Gets or sets the default Configuration.
/// </summary>
/// <value>Configuration.</value>
public static Configuration Default
{
get { return _globalConfiguration; }
set
{
lock (GlobalConfigSync)
{
_globalConfiguration = value;
}
}
}
#endregion Static Members
#region Private Members
/// <summary>
/// Gets or sets the API key based on the authentication name.
/// </summary>
/// <value>The API key.</value>
private IDictionary<string, string> _apiKey = null;
/// <summary>
/// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
/// </summary>
/// <value>The prefix of the API key.</value>
private IDictionary<string, string> _apiKeyPrefix = null;
private string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
private string _tempFolderPath = Path.GetTempPath();
#endregion Private Members
#region Constructors
static Configuration()
{
_globalConfiguration = new GlobalConfiguration();
}
/// <summary>
/// Initializes a new instance of the <see cref="Configuration" /> class
/// </summary>
public Configuration()
{
UserAgent = "Swagger-Codegen/1.0.0/csharp";
BasePath = "https://localhost:3000";
DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
ApiKeyPrefix = new ConcurrentDictionary<string, string>();
Timeout = 100000;
}
/// <summary>
/// Initializes a new instance of the <see cref="Configuration" /> class
/// </summary>
public Configuration(
IDictionary<string, string> defaultHeader,
IDictionary<string, string> apiKey,
IDictionary<string, string> apiKeyPrefix,
string basePath = "https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1") : this()
{
if (string.IsNullOrWhiteSpace(basePath))
throw new ArgumentException("The provided basePath is invalid.", "basePath");
if (defaultHeader == null)
throw new ArgumentNullException("defaultHeader");
if (apiKey == null)
throw new ArgumentNullException("apiKey");
if (apiKeyPrefix == null)
throw new ArgumentNullException("apiKeyPrefix");
BasePath = basePath;
foreach (var keyValuePair in defaultHeader)
{
DefaultHeader.Add(keyValuePair);
}
foreach (var keyValuePair in apiKey)
{
ApiKey.Add(keyValuePair);
}
foreach (var keyValuePair in apiKeyPrefix)
{
ApiKeyPrefix.Add(keyValuePair);
}
}
/// <summary>
/// Initializes a new instance of the <see cref="Configuration" /> class with different settings
/// </summary>
/// <param name="apiClient">Api client</param>
/// <param name="defaultHeader">Dictionary of default HTTP header</param>
/// <param name="username">Username</param>
/// <param name="password">Password</param>
/// <param name="accessToken">accessToken</param>
/// <param name="apiKey">Dictionary of API key</param>
/// <param name="apiKeyPrefix">Dictionary of API key prefix</param>
/// <param name="tempFolderPath">Temp folder path</param>
/// <param name="dateTimeFormat">DateTime format string</param>
/// <param name="timeout">HTTP connection timeout (in milliseconds)</param>
/// <param name="userAgent">HTTP user agent</param>
[Obsolete("Use explicit object construction and setting of properties.", true)]
public Configuration(
// ReSharper disable UnusedParameter.Local
ApiClient apiClient = null,
IDictionary<string, string> defaultHeader = null,
string username = null,
string password = null,
string accessToken = null,
IDictionary<string, string> apiKey = null,
IDictionary<string, string> apiKeyPrefix = null,
string tempFolderPath = null,
string dateTimeFormat = null,
int timeout = 100000,
string userAgent = "Swagger-Codegen/1.0.0/csharp"
// ReSharper restore UnusedParameter.Local
)
{
}
/// <summary>
/// Initializes a new instance of the Configuration class.
/// </summary>
/// <param name="apiClient">Api client.</param>
[Obsolete("This constructor caused unexpected sharing of static data. It is no longer supported.", true)]
// ReSharper disable once UnusedParameter.Local
public Configuration(ApiClient apiClient)
{
}
#endregion Constructors
#region Properties
private ApiClient _apiClient = null;
/// <summary>
/// Gets an instance of an ApiClient for this configuration
/// </summary>
public virtual ApiClient ApiClient
{
get
{
if (_apiClient == null) _apiClient = CreateApiClient();
return _apiClient;
}
}
private String _basePath = null;
/// <summary>
/// Gets or sets the base path for API access.
/// </summary>
public virtual string BasePath {
get { return _basePath; }
set {
_basePath = value;
// pass-through to ApiClient if it's set.
if(_apiClient != null) {
_apiClient.RestClient.BaseUrl = new Uri(_basePath);
}
}
}
/// <summary>
/// Gets or sets the default header.
/// </summary>
public virtual IDictionary<string, string> DefaultHeader { get; set; }
private int _timeout = 100000;
/// <summary>
/// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds.
/// </summary>
public virtual int Timeout
{
get
{
if (_apiClient == null)
{
return _timeout;
}
else
{
return ApiClient.RestClient.Timeout;
}
}
set
{
_timeout = value;
if (_apiClient != null)
{
ApiClient.RestClient.Timeout = _timeout;
}
}
}
/// <summary>
/// Gets or sets the HTTP user agent.
/// </summary>
/// <value>Http user agent.</value>
public virtual string UserAgent { get; set; }
/// <summary>
/// Gets or sets the username (HTTP basic authentication).
/// </summary>
/// <value>The username.</value>
public virtual string Username { get; set; }
/// <summary>
/// Gets or sets the password (HTTP basic authentication).
/// </summary>
/// <value>The password.</value>
public virtual string Password { get; set; }
/// <summary>
/// Gets the API key with prefix.
/// </summary>
/// <param name="apiKeyIdentifier">API key identifier (authentication scheme).</param>
/// <returns>API key with prefix.</returns>
public string GetApiKeyWithPrefix(string apiKeyIdentifier)
{
var apiKeyValue = "";
ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue);
var apiKeyPrefix = "";
if (ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix))
return apiKeyPrefix + " " + apiKeyValue;
else
return apiKeyValue;
}
/// <summary>
/// Gets or sets the access token for OAuth2 authentication.
/// </summary>
/// <value>The access token.</value>
public virtual string AccessToken { get; set; }
/// <summary>
/// Gets or sets the temporary folder path to store the files downloaded from the server.
/// </summary>
/// <value>Folder path.</value>
public virtual string TempFolderPath
{
get { return _tempFolderPath; }
set
{
if (string.IsNullOrEmpty(value))
{
// Possible breaking change since swagger-codegen 2.2.1, enforce a valid temporary path on set.
_tempFolderPath = Path.GetTempPath();
return;
}
// create the directory if it does not exist
if (!Directory.Exists(value))
{
Directory.CreateDirectory(value);
}
// check if the path contains directory separator at the end
if (value[value.Length - 1] == Path.DirectorySeparatorChar)
{
_tempFolderPath = value;
}
else
{
_tempFolderPath = value + Path.DirectorySeparatorChar;
}
}
}
/// <summary>
/// Gets or sets the the date time format used when serializing in the ApiClient
/// By default, it's set to ISO 8601 - "o", for others see:
/// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
/// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
/// No validation is done to ensure that the string you're providing is valid
/// </summary>
/// <value>The DateTimeFormat string</value>
public virtual string DateTimeFormat
{
get { return _dateTimeFormat; }
set
{
if (string.IsNullOrEmpty(value))
{
// Never allow a blank or null string, go back to the default
_dateTimeFormat = ISO8601_DATETIME_FORMAT;
return;
}
// Caution, no validation when you choose date time format other than ISO 8601
// Take a look at the above links
_dateTimeFormat = value;
}
}
/// <summary>
/// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
/// </summary>
/// <value>The prefix of the API key.</value>
public virtual IDictionary<string, string> ApiKeyPrefix
{
get { return _apiKeyPrefix; }
set
{
if (value == null)
{
throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
}
_apiKeyPrefix = value;
}
}
/// <summary>
/// Gets or sets the API key based on the authentication name.
/// </summary>
/// <value>The API key.</value>
public virtual IDictionary<string, string> ApiKey
{
get { return _apiKey; }
set
{
if (value == null)
{
throw new InvalidOperationException("ApiKey collection may not be null.");
}
_apiKey = value;
}
}
#endregion Properties
#region Methods
/// <summary>
/// Add default header.
/// </summary>
/// <param name="key">Header field name.</param>
/// <param name="value">Header field value.</param>
/// <returns></returns>
public void AddDefaultHeader(string key, string value)
{
DefaultHeader[key] = value;
}
/// <summary>
/// Creates a new <see cref="ApiClient" /> based on this <see cref="Configuration" /> instance.
/// </summary>
/// <returns></returns>
public ApiClient CreateApiClient()
{
return new ApiClient(BasePath) { Configuration = this };
}
/// <summary>
/// Returns a string with essential information for debugging.
/// </summary>
public static String ToDebugReport()
{
String report = "C# SDK (IO.Swagger) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.1.2\n";
report += " SDK Package Version: 1.0.0\n";
return report;
}
/// <summary>
/// Add Api Key Header.
/// </summary>
/// <param name="key">Api Key name.</param>
/// <param name="value">Api Key value.</param>
/// <returns></returns>
public void AddApiKey(string key, string value)
{
ApiKey[key] = value;
}
/// <summary>
/// Sets the API key prefix.
/// </summary>
/// <param name="key">Api Key name.</param>
/// <param name="value">Api Key value.</param>
public void AddApiKeyPrefix(string key, string value)
{
ApiKeyPrefix[key] = value;
}
#endregion Methods
}
}

@ -0,0 +1,23 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using RestSharp;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// A delegate to ExceptionFactory method
/// </summary>
/// <param name="methodName">Method name</param>
/// <param name="response">Response</param>
/// <returns>Exceptions</returns>
public delegate Exception ExceptionFactory(string methodName, IRestResponse response);
}

@ -0,0 +1,33 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Reflection;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// <see cref="GlobalConfiguration"/> provides a compile-time extension point for globally configuring
/// API Clients.
/// </summary>
/// <remarks>
/// A customized implementation via partial class may reside in another file and may
/// be excluded from automatic generation via a .swagger-codegen-ignore file.
/// </remarks>
public partial class GlobalConfiguration : Configuration
{
}
}

@ -0,0 +1,41 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using RestSharp;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// Represents configuration aspects required to interact with the API endpoints.
/// </summary>
public interface IApiAccessor
{
/// <summary>
/// Gets or sets the configuration object
/// </summary>
/// <value>An instance of the Configuration</value>
Configuration Configuration {get; set;}
/// <summary>
/// Gets the base path of the API client.
/// </summary>
/// <value>The base path</value>
String GetBasePath();
/// <summary>
/// Provides a factory method hook for the creation of exceptions.
/// </summary>
ExceptionFactory ExceptionFactory { get; set; }
}
}

@ -0,0 +1,93 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System.Collections.Generic;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// Represents a readable-only configuration contract.
/// </summary>
public interface IReadableConfiguration
{
/// <summary>
/// Gets the access token.
/// </summary>
/// <value>Access token.</value>
string AccessToken { get; }
/// <summary>
/// Gets the API key.
/// </summary>
/// <value>API key.</value>
IDictionary<string, string> ApiKey { get; }
/// <summary>
/// Gets the API key prefix.
/// </summary>
/// <value>API key prefix.</value>
IDictionary<string, string> ApiKeyPrefix { get; }
/// <summary>
/// Gets the base path.
/// </summary>
/// <value>Base path.</value>
string BasePath { get; }
/// <summary>
/// Gets the date time format.
/// </summary>
/// <value>Date time foramt.</value>
string DateTimeFormat { get; }
/// <summary>
/// Gets the default header.
/// </summary>
/// <value>Default header.</value>
IDictionary<string, string> DefaultHeader { get; }
/// <summary>
/// Gets the temp folder path.
/// </summary>
/// <value>Temp folder path.</value>
string TempFolderPath { get; }
/// <summary>
/// Gets the HTTP connection timeout (in milliseconds)
/// </summary>
/// <value>HTTP connection timeout.</value>
int Timeout { get; }
/// <summary>
/// Gets the user agent.
/// </summary>
/// <value>User agent.</value>
string UserAgent { get; }
/// <summary>
/// Gets the username.
/// </summary>
/// <value>Username.</value>
string Username { get; }
/// <summary>
/// Gets the password.
/// </summary>
/// <value>Password.</value>
string Password { get; }
/// <summary>
/// Gets the API key with prefix.
/// </summary>
/// <param name="apiKeyIdentifier">API key identifier (authentication scheme).</param>
/// <returns>API key with prefix.</returns>
string GetApiKeyWithPrefix(string apiKeyIdentifier);
}
}

@ -0,0 +1,29 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using Newtonsoft.Json.Converters;
namespace IO.Swagger.ClientCollaborateur
{
/// <summary>
/// Formatter for 'date' swagger formats ss defined by full-date - RFC3339
/// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types
/// </summary>
public class SwaggerDateConverter : IsoDateTimeConverter
{
/// <summary>
/// Initializes a new instance of the <see cref="SwaggerDateConverter" /> class.
/// </summary>
public SwaggerDateConverter()
{
// full-date = date-fullyear "-" date-month "-" date-mday
DateTimeFormat = "yyyy-MM-dd";
}
}
}

@ -9,6 +9,7 @@
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.7" />
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.21" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="RestSharp" Version="106.11.4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.5.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.5.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Swagger" Version="5.5.1" />

@ -0,0 +1,220 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Adresse
/// </summary>
[DataContract]
public partial class Adresse : IEquatable<Adresse>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Adresse" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="rue">rue.</param>
/// <param name="ville">ville.</param>
/// <param name="codePostal">codePostal.</param>
/// <param name="pays">pays.</param>
/// <param name="dateDebut">dateDebut.</param>
/// <param name="dateFin">dateFin.</param>
public Adresse(long? id = default(long?), string rue = default(string), string ville = default(string), string codePostal = default(string), string pays = default(string), DateTime? dateDebut = default(DateTime?), DateTime? dateFin = default(DateTime?))
{
this.Id = id;
this.Rue = rue;
this.Ville = ville;
this.CodePostal = codePostal;
this.Pays = pays;
this.DateDebut = dateDebut;
this.DateFin = dateFin;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Rue
/// </summary>
[DataMember(Name="rue", EmitDefaultValue=false)]
public string Rue { get; set; }
/// <summary>
/// Gets or Sets Ville
/// </summary>
[DataMember(Name="ville", EmitDefaultValue=false)]
public string Ville { get; set; }
/// <summary>
/// Gets or Sets CodePostal
/// </summary>
[DataMember(Name="codePostal", EmitDefaultValue=false)]
public string CodePostal { get; set; }
/// <summary>
/// Gets or Sets Pays
/// </summary>
[DataMember(Name="pays", EmitDefaultValue=false)]
public string Pays { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFin
/// </summary>
[DataMember(Name="dateFin", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFin { 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 Adresse {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Rue: ").Append(Rue).Append("\n");
sb.Append(" Ville: ").Append(Ville).Append("\n");
sb.Append(" CodePostal: ").Append(CodePostal).Append("\n");
sb.Append(" Pays: ").Append(Pays).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFin: ").Append(DateFin).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Adresse);
}
/// <summary>
/// Returns true if Adresse instances are equal
/// </summary>
/// <param name="input">Instance of Adresse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Adresse input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Rue == input.Rue ||
(this.Rue != null &&
this.Rue.Equals(input.Rue))
) &&
(
this.Ville == input.Ville ||
(this.Ville != null &&
this.Ville.Equals(input.Ville))
) &&
(
this.CodePostal == input.CodePostal ||
(this.CodePostal != null &&
this.CodePostal.Equals(input.CodePostal))
) &&
(
this.Pays == input.Pays ||
(this.Pays != null &&
this.Pays.Equals(input.Pays))
) &&
(
this.DateDebut == input.DateDebut ||
(this.DateDebut != null &&
this.DateDebut.Equals(input.DateDebut))
) &&
(
this.DateFin == input.DateFin ||
(this.DateFin != null &&
this.DateFin.Equals(input.DateFin))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Rue != null)
hashCode = hashCode * 59 + this.Rue.GetHashCode();
if (this.Ville != null)
hashCode = hashCode * 59 + this.Ville.GetHashCode();
if (this.CodePostal != null)
hashCode = hashCode * 59 + this.CodePostal.GetHashCode();
if (this.Pays != null)
hashCode = hashCode * 59 + this.Pays.GetHashCode();
if (this.DateDebut != null)
hashCode = hashCode * 59 + this.DateDebut.GetHashCode();
if (this.DateFin != null)
hashCode = hashCode * 59 + this.DateFin.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,155 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Agence
/// </summary>
[DataContract]
public partial class Agence : IEquatable<Agence>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Agence" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="nom">nom.</param>
/// <param name="bus">bus.</param>
public Agence(long? id = default(long?), string nom = default(string), List<BU> bus = default(List<BU>))
{
this.Id = id;
this.Nom = nom;
this.Bus = bus;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Bus
/// </summary>
[DataMember(Name="bus", EmitDefaultValue=false)]
public List<BU> Bus { 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 Agence {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Bus: ").Append(Bus).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Agence);
}
/// <summary>
/// Returns true if Agence instances are equal
/// </summary>
/// <param name="input">Instance of Agence to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Agence input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Bus == input.Bus ||
this.Bus != null &&
input.Bus != null &&
this.Bus.SequenceEqual(input.Bus)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Bus != null)
hashCode = hashCode * 59 + this.Bus.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,154 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// BU
/// </summary>
[DataContract]
public partial class BU : IEquatable<BU>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="BU" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="nom">nom.</param>
/// <param name="agence">agence.</param>
public BU(long? id = default(long?), string nom = default(string), Agence agence = default(Agence))
{
this.Id = id;
this.Nom = nom;
this.Agence = agence;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Agence
/// </summary>
[DataMember(Name="agence", EmitDefaultValue=false)]
public Agence 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 BU {\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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as BU);
}
/// <summary>
/// Returns true if BU instances are equal
/// </summary>
/// <param name="input">Instance of BU to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(BU input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Agence == input.Agence ||
(this.Agence != null &&
this.Agence.Equals(input.Agence))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Agence != null)
hashCode = hashCode * 59 + this.Agence.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,457 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Collaborateur
/// </summary>
[DataContract]
public partial class Collaborateur : IEquatable<Collaborateur>, IValidatableObject
{
/// <summary>
/// Gets or Sets Genre
/// </summary>
[DataMember(Name="genre", EmitDefaultValue=false)]
public Genre? Genre { get; set; }
/// <summary>
/// Gets or Sets Statut
/// </summary>
[DataMember(Name="statut", EmitDefaultValue=false)]
public Statut? Statut { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Collaborateur" /> class.
/// </summary>
/// <param name="id">id (required).</param>
/// <param name="nom">nom (required).</param>
/// <param name="prenom">prenom (required).</param>
/// <param name="genre">genre.</param>
/// <param name="dateNaissance">dateNaissance.</param>
/// <param name="nbEnfants">nbEnfants.</param>
/// <param name="adresse">adresse.</param>
/// <param name="telephone">telephone.</param>
/// <param name="mailPerso">mailPerso.</param>
/// <param name="mailApside">mailApside.</param>
/// <param name="statut">statut.</param>
/// <param name="fonctions">fonctions.</param>
/// <param name="businessUnit">businessUnit.</param>
/// <param name="referent">referent.</param>
/// <param name="parrain">parrain.</param>
/// <param name="projets">projets.</param>
/// <param name="technologiesPref">technologiesPref.</param>
/// <param name="periodeEssai">periodeEssai.</param>
/// <param name="dateArrivee">dateArrivee.</param>
/// <param name="dateDepart">dateDepart.</param>
public Collaborateur(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), Genre? genre = default(Genre?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), Adresse adresse = default(Adresse), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), Statut? statut = default(Statut?), List<Fonction> fonctions = default(List<Fonction>), BU businessUnit = default(BU), Collaborateur referent = default(Collaborateur), Collaborateur parrain = default(Collaborateur), List<Projet> projets = default(List<Projet>), List<Technologie> technologiesPref = default(List<Technologie>), List<PeriodeEssai> periodeEssai = default(List<PeriodeEssai>), DateTime? dateArrivee = default(DateTime?), DateTime? dateDepart = default(DateTime?))
{
// to ensure "id" is required (not null)
if (id == null)
{
throw new InvalidDataException("id is a required property for Collaborateur and cannot be null");
}
else
{
this.Id = id;
}
// to ensure "nom" is required (not null)
if (nom == null)
{
throw new InvalidDataException("nom is a required property for Collaborateur and cannot be null");
}
else
{
this.Nom = nom;
}
// to ensure "prenom" is required (not null)
if (prenom == null)
{
throw new InvalidDataException("prenom is a required property for Collaborateur and cannot be null");
}
else
{
this.Prenom = prenom;
}
this.Genre = genre;
this.DateNaissance = dateNaissance;
this.NbEnfants = nbEnfants;
this.Adresse = adresse;
this.Telephone = telephone;
this.MailPerso = mailPerso;
this.MailApside = mailApside;
this.Statut = statut;
this.Fonctions = fonctions;
this.BusinessUnit = businessUnit;
this.Referent = referent;
this.Parrain = parrain;
this.Projets = projets;
this.TechnologiesPref = technologiesPref;
this.PeriodeEssai = periodeEssai;
this.DateArrivee = dateArrivee;
this.DateDepart = dateDepart;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public Guid? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Prenom
/// </summary>
[DataMember(Name="prenom", EmitDefaultValue=false)]
public string Prenom { get; set; }
/// <summary>
/// Gets or Sets DateNaissance
/// </summary>
[DataMember(Name="dateNaissance", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateNaissance { get; set; }
/// <summary>
/// Gets or Sets NbEnfants
/// </summary>
[DataMember(Name="nbEnfants", EmitDefaultValue=false)]
public int? NbEnfants { get; set; }
/// <summary>
/// Gets or Sets Adresse
/// </summary>
[DataMember(Name="adresse", EmitDefaultValue=false)]
public Adresse Adresse { get; set; }
/// <summary>
/// Gets or Sets Telephone
/// </summary>
[DataMember(Name="telephone", EmitDefaultValue=false)]
public string Telephone { get; set; }
/// <summary>
/// Gets or Sets MailPerso
/// </summary>
[DataMember(Name="mailPerso", EmitDefaultValue=false)]
public string MailPerso { get; set; }
/// <summary>
/// Gets or Sets MailApside
/// </summary>
[DataMember(Name="mailApside", EmitDefaultValue=false)]
public string MailApside { get; set; }
/// <summary>
/// Gets or Sets Fonctions
/// </summary>
[DataMember(Name="fonctions", EmitDefaultValue=false)]
public List<Fonction> Fonctions { get; set; }
/// <summary>
/// Gets or Sets BusinessUnit
/// </summary>
[DataMember(Name="businessUnit", EmitDefaultValue=false)]
public BU BusinessUnit { get; set; }
/// <summary>
/// Gets or Sets Referent
/// </summary>
[DataMember(Name="referent", EmitDefaultValue=false)]
public Collaborateur Referent { get; set; }
/// <summary>
/// Gets or Sets Parrain
/// </summary>
[DataMember(Name="parrain", EmitDefaultValue=false)]
public Collaborateur Parrain { get; set; }
/// <summary>
/// Gets or Sets Projets
/// </summary>
[DataMember(Name="projets", EmitDefaultValue=false)]
public List<Projet> Projets { get; set; }
/// <summary>
/// Gets or Sets TechnologiesPref
/// </summary>
[DataMember(Name="technologiesPref", EmitDefaultValue=false)]
public List<Technologie> TechnologiesPref { get; set; }
/// <summary>
/// Gets or Sets PeriodeEssai
/// </summary>
[DataMember(Name="periodeEssai", EmitDefaultValue=false)]
public List<PeriodeEssai> PeriodeEssai { get; set; }
/// <summary>
/// Gets or Sets DateArrivee
/// </summary>
[DataMember(Name="dateArrivee", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateArrivee { get; set; }
/// <summary>
/// Gets or Sets DateDepart
/// </summary>
[DataMember(Name="dateDepart", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDepart { 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 Collaborateur {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" Genre: ").Append(Genre).Append("\n");
sb.Append(" DateNaissance: ").Append(DateNaissance).Append("\n");
sb.Append(" NbEnfants: ").Append(NbEnfants).Append("\n");
sb.Append(" Adresse: ").Append(Adresse).Append("\n");
sb.Append(" Telephone: ").Append(Telephone).Append("\n");
sb.Append(" MailPerso: ").Append(MailPerso).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).Append("\n");
sb.Append(" Statut: ").Append(Statut).Append("\n");
sb.Append(" Fonctions: ").Append(Fonctions).Append("\n");
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
sb.Append(" Referent: ").Append(Referent).Append("\n");
sb.Append(" Parrain: ").Append(Parrain).Append("\n");
sb.Append(" Projets: ").Append(Projets).Append("\n");
sb.Append(" TechnologiesPref: ").Append(TechnologiesPref).Append("\n");
sb.Append(" PeriodeEssai: ").Append(PeriodeEssai).Append("\n");
sb.Append(" DateArrivee: ").Append(DateArrivee).Append("\n");
sb.Append(" DateDepart: ").Append(DateDepart).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Collaborateur);
}
/// <summary>
/// Returns true if Collaborateur instances are equal
/// </summary>
/// <param name="input">Instance of Collaborateur to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Collaborateur input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Prenom == input.Prenom ||
(this.Prenom != null &&
this.Prenom.Equals(input.Prenom))
) &&
(
this.Genre == input.Genre ||
(this.Genre != null &&
this.Genre.Equals(input.Genre))
) &&
(
this.DateNaissance == input.DateNaissance ||
(this.DateNaissance != null &&
this.DateNaissance.Equals(input.DateNaissance))
) &&
(
this.NbEnfants == input.NbEnfants ||
(this.NbEnfants != null &&
this.NbEnfants.Equals(input.NbEnfants))
) &&
(
this.Adresse == input.Adresse ||
(this.Adresse != null &&
this.Adresse.Equals(input.Adresse))
) &&
(
this.Telephone == input.Telephone ||
(this.Telephone != null &&
this.Telephone.Equals(input.Telephone))
) &&
(
this.MailPerso == input.MailPerso ||
(this.MailPerso != null &&
this.MailPerso.Equals(input.MailPerso))
) &&
(
this.MailApside == input.MailApside ||
(this.MailApside != null &&
this.MailApside.Equals(input.MailApside))
) &&
(
this.Statut == input.Statut ||
(this.Statut != null &&
this.Statut.Equals(input.Statut))
) &&
(
this.Fonctions == input.Fonctions ||
this.Fonctions != null &&
input.Fonctions != null &&
this.Fonctions.SequenceEqual(input.Fonctions)
) &&
(
this.BusinessUnit == input.BusinessUnit ||
(this.BusinessUnit != null &&
this.BusinessUnit.Equals(input.BusinessUnit))
) &&
(
this.Referent == input.Referent ||
(this.Referent != null &&
this.Referent.Equals(input.Referent))
) &&
(
this.Parrain == input.Parrain ||
(this.Parrain != null &&
this.Parrain.Equals(input.Parrain))
) &&
(
this.Projets == input.Projets ||
this.Projets != null &&
input.Projets != null &&
this.Projets.SequenceEqual(input.Projets)
) &&
(
this.TechnologiesPref == input.TechnologiesPref ||
this.TechnologiesPref != null &&
input.TechnologiesPref != null &&
this.TechnologiesPref.SequenceEqual(input.TechnologiesPref)
) &&
(
this.PeriodeEssai == input.PeriodeEssai ||
this.PeriodeEssai != null &&
input.PeriodeEssai != null &&
this.PeriodeEssai.SequenceEqual(input.PeriodeEssai)
) &&
(
this.DateArrivee == input.DateArrivee ||
(this.DateArrivee != null &&
this.DateArrivee.Equals(input.DateArrivee))
) &&
(
this.DateDepart == input.DateDepart ||
(this.DateDepart != null &&
this.DateDepart.Equals(input.DateDepart))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Prenom != null)
hashCode = hashCode * 59 + this.Prenom.GetHashCode();
if (this.Genre != null)
hashCode = hashCode * 59 + this.Genre.GetHashCode();
if (this.DateNaissance != null)
hashCode = hashCode * 59 + this.DateNaissance.GetHashCode();
if (this.NbEnfants != null)
hashCode = hashCode * 59 + this.NbEnfants.GetHashCode();
if (this.Adresse != null)
hashCode = hashCode * 59 + this.Adresse.GetHashCode();
if (this.Telephone != null)
hashCode = hashCode * 59 + this.Telephone.GetHashCode();
if (this.MailPerso != null)
hashCode = hashCode * 59 + this.MailPerso.GetHashCode();
if (this.MailApside != null)
hashCode = hashCode * 59 + this.MailApside.GetHashCode();
if (this.Statut != null)
hashCode = hashCode * 59 + this.Statut.GetHashCode();
if (this.Fonctions != null)
hashCode = hashCode * 59 + this.Fonctions.GetHashCode();
if (this.BusinessUnit != null)
hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode();
if (this.Referent != null)
hashCode = hashCode * 59 + this.Referent.GetHashCode();
if (this.Parrain != null)
hashCode = hashCode * 59 + this.Parrain.GetHashCode();
if (this.Projets != null)
hashCode = hashCode * 59 + this.Projets.GetHashCode();
if (this.TechnologiesPref != null)
hashCode = hashCode * 59 + this.TechnologiesPref.GetHashCode();
if (this.PeriodeEssai != null)
hashCode = hashCode * 59 + this.PeriodeEssai.GetHashCode();
if (this.DateArrivee != null)
hashCode = hashCode * 59 + this.DateArrivee.GetHashCode();
if (this.DateDepart != null)
hashCode = hashCode * 59 + this.DateDepart.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,138 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Fonction
/// </summary>
[DataContract]
public partial class Fonction : IEquatable<Fonction>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Fonction" /> class.
/// </summary>
/// <param name="code">code.</param>
/// <param name="intitule">intitule.</param>
public Fonction(string code = default(string), string intitule = default(string))
{
this.Code = code;
this.Intitule = intitule;
}
/// <summary>
/// Gets or Sets Code
/// </summary>
[DataMember(Name="code", EmitDefaultValue=false)]
public string Code { get; set; }
/// <summary>
/// Gets or Sets Intitule
/// </summary>
[DataMember(Name="intitule", EmitDefaultValue=false)]
public string Intitule { 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 Fonction {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Intitule: ").Append(Intitule).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Fonction);
}
/// <summary>
/// Returns true if Fonction instances are equal
/// </summary>
/// <param name="input">Instance of Fonction to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Fonction input)
{
if (input == null)
return false;
return
(
this.Code == input.Code ||
(this.Code != null &&
this.Code.Equals(input.Code))
) &&
(
this.Intitule == input.Intitule ||
(this.Intitule != null &&
this.Intitule.Equals(input.Intitule))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Code != null)
hashCode = hashCode * 59 + this.Code.GetHashCode();
if (this.Intitule != null)
hashCode = hashCode * 59 + this.Intitule.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,47 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Defines Genre
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum Genre
{
/// <summary>
/// Enum FEMININ for value: FEMININ
/// </summary>
[EnumMember(Value = "FEMININ")]
FEMININ = 1,
/// <summary>
/// Enum MASCULIN for value: MASCULIN
/// </summary>
[EnumMember(Value = "MASCULIN")]
MASCULIN = 2,
/// <summary>
/// Enum NEUTRE for value: NEUTRE
/// </summary>
[EnumMember(Value = "NEUTRE")]
NEUTRE = 3 }
}

@ -0,0 +1,57 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Defines IssuePE
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum IssuePE
{
/// <summary>
/// Enum VALIDEE for value: VALIDEE
/// </summary>
[EnumMember(Value = "VALIDEE")]
VALIDEE = 1,
/// <summary>
/// Enum PROLONGEECOLLAB for value: PROLONGEE_COLLAB
/// </summary>
[EnumMember(Value = "PROLONGEE_COLLAB")]
PROLONGEECOLLAB = 2,
/// <summary>
/// Enum PROLONGEEAPSIDE for value: PROLONGEE_APSIDE
/// </summary>
[EnumMember(Value = "PROLONGEE_APSIDE")]
PROLONGEEAPSIDE = 3,
/// <summary>
/// Enum ARRETEECOLLAB for value: ARRETEE_COLLAB
/// </summary>
[EnumMember(Value = "ARRETEE_COLLAB")]
ARRETEECOLLAB = 4,
/// <summary>
/// Enum ARRETEEAPSIDE for value: ARRETEE_APSIDE
/// </summary>
[EnumMember(Value = "ARRETEE_APSIDE")]
ARRETEEAPSIDE = 5 }
}

@ -0,0 +1,429 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouveauCollaborateur
/// </summary>
[DataContract]
public partial class NouveauCollaborateur : IEquatable<NouveauCollaborateur>, IValidatableObject
{
/// <summary>
/// Defines Genre
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum GenreEnum
{
/// <summary>
/// Enum FEMININ for value: FEMININ
/// </summary>
[EnumMember(Value = "FEMININ")]
FEMININ = 1,
/// <summary>
/// Enum MASCULIN for value: MASCULIN
/// </summary>
[EnumMember(Value = "MASCULIN")]
MASCULIN = 2,
/// <summary>
/// Enum NEUTRE for value: NEUTRE
/// </summary>
[EnumMember(Value = "NEUTRE")]
NEUTRE = 3 }
/// <summary>
/// Gets or Sets Genre
/// </summary>
[DataMember(Name="genre", EmitDefaultValue=false)]
public GenreEnum? Genre { get; set; }
/// <summary>
/// Defines Statut
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum StatutEnum
{
/// <summary>
/// Enum CADRE for value: CADRE
/// </summary>
[EnumMember(Value = "CADRE")]
CADRE = 1,
/// <summary>
/// Enum NONCADRE for value: NON-CADRE
/// </summary>
[EnumMember(Value = "NON-CADRE")]
NONCADRE = 2,
/// <summary>
/// Enum ALTERNANT for value: ALTERNANT
/// </summary>
[EnumMember(Value = "ALTERNANT")]
ALTERNANT = 3,
/// <summary>
/// Enum STAGIAIRE for value: STAGIAIRE
/// </summary>
[EnumMember(Value = "STAGIAIRE")]
STAGIAIRE = 4 }
/// <summary>
/// Gets or Sets Statut
/// </summary>
[DataMember(Name="statut", EmitDefaultValue=false)]
public StatutEnum? Statut { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="NouveauCollaborateur" /> class.
/// </summary>
/// <param name="nom">nom.</param>
/// <param name="prenom">prenom.</param>
/// <param name="genre">genre.</param>
/// <param name="dateNaissance">dateNaissance.</param>
/// <param name="nbEnfants">nbEnfants.</param>
/// <param name="adresse">adresse.</param>
/// <param name="adresseId">adresseId.</param>
/// <param name="telephone">telephone.</param>
/// <param name="mailPerso">mailPerso.</param>
/// <param name="mailApside">mailApside.</param>
/// <param name="statut">statut.</param>
/// <param name="fonctions">fonctions.</param>
/// <param name="businessUnit">businessUnit.</param>
/// <param name="parrain">parrain.</param>
/// <param name="technologiesPref">technologiesPref.</param>
/// <param name="dateDebutPE">dateDebutPE.</param>
/// <param name="dateFinPE">dateFinPE.</param>
public NouveauCollaborateur(string nom = default(string), string prenom = default(string), GenreEnum? genre = default(GenreEnum?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), string adresse = default(string), long? adresseId = default(long?), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), StatutEnum? statut = default(StatutEnum?), string fonctions = default(string), long? businessUnit = default(long?), long? parrain = default(long?), List<string> technologiesPref = default(List<string>), DateTime? dateDebutPE = default(DateTime?), DateTime? dateFinPE = default(DateTime?))
{
this.Nom = nom;
this.Prenom = prenom;
this.Genre = genre;
this.DateNaissance = dateNaissance;
this.NbEnfants = nbEnfants;
this.Adresse = adresse;
this.AdresseId = adresseId;
this.Telephone = telephone;
this.MailPerso = mailPerso;
this.MailApside = mailApside;
this.Statut = statut;
this.Fonctions = fonctions;
this.BusinessUnit = businessUnit;
this.Parrain = parrain;
this.TechnologiesPref = technologiesPref;
this.DateDebutPE = dateDebutPE;
this.DateFinPE = dateFinPE;
}
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Prenom
/// </summary>
[DataMember(Name="prenom", EmitDefaultValue=false)]
public string Prenom { get; set; }
/// <summary>
/// Gets or Sets DateNaissance
/// </summary>
[DataMember(Name="dateNaissance", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateNaissance { get; set; }
/// <summary>
/// Gets or Sets NbEnfants
/// </summary>
[DataMember(Name="nbEnfants", EmitDefaultValue=false)]
public int? NbEnfants { get; set; }
/// <summary>
/// Gets or Sets Adresse
/// </summary>
[DataMember(Name="adresse", EmitDefaultValue=false)]
public string Adresse { get; set; }
/// <summary>
/// Gets or Sets AdresseId
/// </summary>
[DataMember(Name="adresseId", EmitDefaultValue=false)]
public long? AdresseId { get; set; }
/// <summary>
/// Gets or Sets Telephone
/// </summary>
[DataMember(Name="telephone", EmitDefaultValue=false)]
public string Telephone { get; set; }
/// <summary>
/// Gets or Sets MailPerso
/// </summary>
[DataMember(Name="mailPerso", EmitDefaultValue=false)]
public string MailPerso { get; set; }
/// <summary>
/// Gets or Sets MailApside
/// </summary>
[DataMember(Name="mailApside", EmitDefaultValue=false)]
public string MailApside { get; set; }
/// <summary>
/// Gets or Sets Fonctions
/// </summary>
[DataMember(Name="fonctions", EmitDefaultValue=false)]
public string Fonctions { get; set; }
/// <summary>
/// Gets or Sets BusinessUnit
/// </summary>
[DataMember(Name="businessUnit", EmitDefaultValue=false)]
public long? BusinessUnit { get; set; }
/// <summary>
/// Gets or Sets Parrain
/// </summary>
[DataMember(Name="parrain", EmitDefaultValue=false)]
public long? Parrain { get; set; }
/// <summary>
/// Gets or Sets TechnologiesPref
/// </summary>
[DataMember(Name="technologiesPref", EmitDefaultValue=false)]
public List<string> TechnologiesPref { get; set; }
/// <summary>
/// Gets or Sets DateDebutPE
/// </summary>
[DataMember(Name="dateDebutPE", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDebutPE { get; set; }
/// <summary>
/// Gets or Sets DateFinPE
/// </summary>
[DataMember(Name="dateFinPE", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFinPE { 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 NouveauCollaborateur {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" Genre: ").Append(Genre).Append("\n");
sb.Append(" DateNaissance: ").Append(DateNaissance).Append("\n");
sb.Append(" NbEnfants: ").Append(NbEnfants).Append("\n");
sb.Append(" Adresse: ").Append(Adresse).Append("\n");
sb.Append(" AdresseId: ").Append(AdresseId).Append("\n");
sb.Append(" Telephone: ").Append(Telephone).Append("\n");
sb.Append(" MailPerso: ").Append(MailPerso).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).Append("\n");
sb.Append(" Statut: ").Append(Statut).Append("\n");
sb.Append(" Fonctions: ").Append(Fonctions).Append("\n");
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
sb.Append(" Parrain: ").Append(Parrain).Append("\n");
sb.Append(" TechnologiesPref: ").Append(TechnologiesPref).Append("\n");
sb.Append(" DateDebutPE: ").Append(DateDebutPE).Append("\n");
sb.Append(" DateFinPE: ").Append(DateFinPE).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouveauCollaborateur);
}
/// <summary>
/// Returns true if NouveauCollaborateur instances are equal
/// </summary>
/// <param name="input">Instance of NouveauCollaborateur to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouveauCollaborateur input)
{
if (input == null)
return false;
return
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Prenom == input.Prenom ||
(this.Prenom != null &&
this.Prenom.Equals(input.Prenom))
) &&
(
this.Genre == input.Genre ||
(this.Genre != null &&
this.Genre.Equals(input.Genre))
) &&
(
this.DateNaissance == input.DateNaissance ||
(this.DateNaissance != null &&
this.DateNaissance.Equals(input.DateNaissance))
) &&
(
this.NbEnfants == input.NbEnfants ||
(this.NbEnfants != null &&
this.NbEnfants.Equals(input.NbEnfants))
) &&
(
this.Adresse == input.Adresse ||
(this.Adresse != null &&
this.Adresse.Equals(input.Adresse))
) &&
(
this.AdresseId == input.AdresseId ||
(this.AdresseId != null &&
this.AdresseId.Equals(input.AdresseId))
) &&
(
this.Telephone == input.Telephone ||
(this.Telephone != null &&
this.Telephone.Equals(input.Telephone))
) &&
(
this.MailPerso == input.MailPerso ||
(this.MailPerso != null &&
this.MailPerso.Equals(input.MailPerso))
) &&
(
this.MailApside == input.MailApside ||
(this.MailApside != null &&
this.MailApside.Equals(input.MailApside))
) &&
(
this.Statut == input.Statut ||
(this.Statut != null &&
this.Statut.Equals(input.Statut))
) &&
(
this.Fonctions == input.Fonctions ||
(this.Fonctions != null &&
this.Fonctions.Equals(input.Fonctions))
) &&
(
this.BusinessUnit == input.BusinessUnit ||
(this.BusinessUnit != null &&
this.BusinessUnit.Equals(input.BusinessUnit))
) &&
(
this.Parrain == input.Parrain ||
(this.Parrain != null &&
this.Parrain.Equals(input.Parrain))
) &&
(
this.TechnologiesPref == input.TechnologiesPref ||
this.TechnologiesPref != null &&
input.TechnologiesPref != null &&
this.TechnologiesPref.SequenceEqual(input.TechnologiesPref)
) &&
(
this.DateDebutPE == input.DateDebutPE ||
(this.DateDebutPE != null &&
this.DateDebutPE.Equals(input.DateDebutPE))
) &&
(
this.DateFinPE == input.DateFinPE ||
(this.DateFinPE != null &&
this.DateFinPE.Equals(input.DateFinPE))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Prenom != null)
hashCode = hashCode * 59 + this.Prenom.GetHashCode();
if (this.Genre != null)
hashCode = hashCode * 59 + this.Genre.GetHashCode();
if (this.DateNaissance != null)
hashCode = hashCode * 59 + this.DateNaissance.GetHashCode();
if (this.NbEnfants != null)
hashCode = hashCode * 59 + this.NbEnfants.GetHashCode();
if (this.Adresse != null)
hashCode = hashCode * 59 + this.Adresse.GetHashCode();
if (this.AdresseId != null)
hashCode = hashCode * 59 + this.AdresseId.GetHashCode();
if (this.Telephone != null)
hashCode = hashCode * 59 + this.Telephone.GetHashCode();
if (this.MailPerso != null)
hashCode = hashCode * 59 + this.MailPerso.GetHashCode();
if (this.MailApside != null)
hashCode = hashCode * 59 + this.MailApside.GetHashCode();
if (this.Statut != null)
hashCode = hashCode * 59 + this.Statut.GetHashCode();
if (this.Fonctions != null)
hashCode = hashCode * 59 + this.Fonctions.GetHashCode();
if (this.BusinessUnit != null)
hashCode = hashCode * 59 + this.BusinessUnit.GetHashCode();
if (this.Parrain != null)
hashCode = hashCode * 59 + this.Parrain.GetHashCode();
if (this.TechnologiesPref != null)
hashCode = hashCode * 59 + this.TechnologiesPref.GetHashCode();
if (this.DateDebutPE != null)
hashCode = hashCode * 59 + this.DateDebutPE.GetHashCode();
if (this.DateFinPE != null)
hashCode = hashCode * 59 + this.DateFinPE.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,188 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouveauProjet
/// </summary>
[DataContract]
public partial class NouveauProjet : IEquatable<NouveauProjet>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NouveauProjet" /> class.
/// </summary>
/// <param name="nom">nom.</param>
/// <param name="_client">_client.</param>
/// <param name="debut">debut.</param>
/// <param name="fin">fin.</param>
/// <param name="description">description.</param>
public NouveauProjet(string nom = default(string), string _client = default(string), DateTime? debut = default(DateTime?), DateTime? fin = default(DateTime?), string description = default(string))
{
this.Nom = nom;
this.Client = _client;
this.Debut = debut;
this.Fin = fin;
this.Description = description;
}
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Client
/// </summary>
[DataMember(Name="client", EmitDefaultValue=false)]
public string Client { get; set; }
/// <summary>
/// Gets or Sets Debut
/// </summary>
[DataMember(Name="debut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? Debut { get; set; }
/// <summary>
/// Gets or Sets Fin
/// </summary>
[DataMember(Name="fin", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? Fin { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name="description", EmitDefaultValue=false)]
public string Description { 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 NouveauProjet {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Client: ").Append(Client).Append("\n");
sb.Append(" Debut: ").Append(Debut).Append("\n");
sb.Append(" Fin: ").Append(Fin).Append("\n");
sb.Append(" Description: ").Append(Description).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouveauProjet);
}
/// <summary>
/// Returns true if NouveauProjet instances are equal
/// </summary>
/// <param name="input">Instance of NouveauProjet to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouveauProjet input)
{
if (input == null)
return false;
return
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Client == input.Client ||
(this.Client != null &&
this.Client.Equals(input.Client))
) &&
(
this.Debut == input.Debut ||
(this.Debut != null &&
this.Debut.Equals(input.Debut))
) &&
(
this.Fin == input.Fin ||
(this.Fin != null &&
this.Fin.Equals(input.Fin))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Client != null)
hashCode = hashCode * 59 + this.Client.GetHashCode();
if (this.Debut != null)
hashCode = hashCode * 59 + this.Debut.GetHashCode();
if (this.Fin != null)
hashCode = hashCode * 59 + this.Fin.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,204 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouvelleAdresse
/// </summary>
[DataContract]
public partial class NouvelleAdresse : IEquatable<NouvelleAdresse>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NouvelleAdresse" /> class.
/// </summary>
/// <param name="rue">rue.</param>
/// <param name="ville">ville.</param>
/// <param name="codePostal">codePostal.</param>
/// <param name="pays">pays.</param>
/// <param name="dateDebut">dateDebut.</param>
/// <param name="dateFin">dateFin.</param>
public NouvelleAdresse(string rue = default(string), string ville = default(string), string codePostal = default(string), string pays = default(string), DateTime? dateDebut = default(DateTime?), DateTime? dateFin = default(DateTime?))
{
this.Rue = rue;
this.Ville = ville;
this.CodePostal = codePostal;
this.Pays = pays;
this.DateDebut = dateDebut;
this.DateFin = dateFin;
}
/// <summary>
/// Gets or Sets Rue
/// </summary>
[DataMember(Name="rue", EmitDefaultValue=false)]
public string Rue { get; set; }
/// <summary>
/// Gets or Sets Ville
/// </summary>
[DataMember(Name="ville", EmitDefaultValue=false)]
public string Ville { get; set; }
/// <summary>
/// Gets or Sets CodePostal
/// </summary>
[DataMember(Name="codePostal", EmitDefaultValue=false)]
public string CodePostal { get; set; }
/// <summary>
/// Gets or Sets Pays
/// </summary>
[DataMember(Name="pays", EmitDefaultValue=false)]
public string Pays { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFin
/// </summary>
[DataMember(Name="dateFin", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFin { 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 NouvelleAdresse {\n");
sb.Append(" Rue: ").Append(Rue).Append("\n");
sb.Append(" Ville: ").Append(Ville).Append("\n");
sb.Append(" CodePostal: ").Append(CodePostal).Append("\n");
sb.Append(" Pays: ").Append(Pays).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFin: ").Append(DateFin).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouvelleAdresse);
}
/// <summary>
/// Returns true if NouvelleAdresse instances are equal
/// </summary>
/// <param name="input">Instance of NouvelleAdresse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleAdresse input)
{
if (input == null)
return false;
return
(
this.Rue == input.Rue ||
(this.Rue != null &&
this.Rue.Equals(input.Rue))
) &&
(
this.Ville == input.Ville ||
(this.Ville != null &&
this.Ville.Equals(input.Ville))
) &&
(
this.CodePostal == input.CodePostal ||
(this.CodePostal != null &&
this.CodePostal.Equals(input.CodePostal))
) &&
(
this.Pays == input.Pays ||
(this.Pays != null &&
this.Pays.Equals(input.Pays))
) &&
(
this.DateDebut == input.DateDebut ||
(this.DateDebut != null &&
this.DateDebut.Equals(input.DateDebut))
) &&
(
this.DateFin == input.DateFin ||
(this.DateFin != null &&
this.DateFin.Equals(input.DateFin))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Rue != null)
hashCode = hashCode * 59 + this.Rue.GetHashCode();
if (this.Ville != null)
hashCode = hashCode * 59 + this.Ville.GetHashCode();
if (this.CodePostal != null)
hashCode = hashCode * 59 + this.CodePostal.GetHashCode();
if (this.Pays != null)
hashCode = hashCode * 59 + this.Pays.GetHashCode();
if (this.DateDebut != null)
hashCode = hashCode * 59 + this.DateDebut.GetHashCode();
if (this.DateFin != null)
hashCode = hashCode * 59 + this.DateFin.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,139 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouvelleAgence
/// </summary>
[DataContract]
public partial class NouvelleAgence : IEquatable<NouvelleAgence>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NouvelleAgence" /> class.
/// </summary>
/// <param name="nom">nom.</param>
/// <param name="bus">bus.</param>
public NouvelleAgence(string nom = default(string), List<BU> bus = default(List<BU>))
{
this.Nom = nom;
this.Bus = bus;
}
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Bus
/// </summary>
[DataMember(Name="bus", EmitDefaultValue=false)]
public List<BU> Bus { 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 NouvelleAgence {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Bus: ").Append(Bus).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouvelleAgence);
}
/// <summary>
/// Returns true if NouvelleAgence instances are equal
/// </summary>
/// <param name="input">Instance of NouvelleAgence to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleAgence input)
{
if (input == null)
return false;
return
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Bus == input.Bus ||
this.Bus != null &&
input.Bus != null &&
this.Bus.SequenceEqual(input.Bus)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Bus != null)
hashCode = hashCode * 59 + this.Bus.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,138 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouvelleBU
/// </summary>
[DataContract]
public partial class NouvelleBU : IEquatable<NouvelleBU>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NouvelleBU" /> class.
/// </summary>
/// <param name="nom">nom.</param>
/// <param name="agence">agence.</param>
public NouvelleBU(string nom = default(string), Agence agence = default(Agence))
{
this.Nom = nom;
this.Agence = agence;
}
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Agence
/// </summary>
[DataMember(Name="agence", EmitDefaultValue=false)]
public Agence 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 NouvelleBU {\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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouvelleBU);
}
/// <summary>
/// Returns true if NouvelleBU instances are equal
/// </summary>
/// <param name="input">Instance of NouvelleBU to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleBU input)
{
if (input == null)
return false;
return
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Agence == input.Agence ||
(this.Agence != null &&
this.Agence.Equals(input.Agence))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Agence != null)
hashCode = hashCode * 59 + this.Agence.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,189 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// NouvellePeriodeEssai
/// </summary>
[DataContract]
public partial class NouvellePeriodeEssai : IEquatable<NouvellePeriodeEssai>, IValidatableObject
{
/// <summary>
/// Gets or Sets IssuePE
/// </summary>
[DataMember(Name="issuePE", EmitDefaultValue=false)]
public IssuePE? IssuePE { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="NouvellePeriodeEssai" /> class.
/// </summary>
/// <param name="dateDebut">dateDebut.</param>
/// <param name="dateFinPrev">dateFinPrev.</param>
/// <param name="dateFinEffect">dateFinEffect.</param>
/// <param name="commentaire">commentaire.</param>
/// <param name="issuePE">issuePE.</param>
public NouvellePeriodeEssai(DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE? issuePE = default(IssuePE?))
{
this.DateDebut = dateDebut;
this.DateFinPrev = dateFinPrev;
this.DateFinEffect = dateFinEffect;
this.Commentaire = commentaire;
this.IssuePE = issuePE;
}
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFinPrev
/// </summary>
[DataMember(Name="dateFinPrev", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFinPrev { get; set; }
/// <summary>
/// Gets or Sets DateFinEffect
/// </summary>
[DataMember(Name="dateFinEffect", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFinEffect { get; set; }
/// <summary>
/// Gets or Sets Commentaire
/// </summary>
[DataMember(Name="commentaire", EmitDefaultValue=false)]
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 NouvellePeriodeEssai {\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFinPrev: ").Append(DateFinPrev).Append("\n");
sb.Append(" DateFinEffect: ").Append(DateFinEffect).Append("\n");
sb.Append(" Commentaire: ").Append(Commentaire).Append("\n");
sb.Append(" IssuePE: ").Append(IssuePE).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NouvellePeriodeEssai);
}
/// <summary>
/// Returns true if NouvellePeriodeEssai instances are equal
/// </summary>
/// <param name="input">Instance of NouvellePeriodeEssai to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvellePeriodeEssai input)
{
if (input == null)
return false;
return
(
this.DateDebut == input.DateDebut ||
(this.DateDebut != null &&
this.DateDebut.Equals(input.DateDebut))
) &&
(
this.DateFinPrev == input.DateFinPrev ||
(this.DateFinPrev != null &&
this.DateFinPrev.Equals(input.DateFinPrev))
) &&
(
this.DateFinEffect == input.DateFinEffect ||
(this.DateFinEffect != null &&
this.DateFinEffect.Equals(input.DateFinEffect))
) &&
(
this.Commentaire == input.Commentaire ||
(this.Commentaire != null &&
this.Commentaire.Equals(input.Commentaire))
) &&
(
this.IssuePE == input.IssuePE ||
(this.IssuePE != null &&
this.IssuePE.Equals(input.IssuePE))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.DateDebut != null)
hashCode = hashCode * 59 + this.DateDebut.GetHashCode();
if (this.DateFinPrev != null)
hashCode = hashCode * 59 + this.DateFinPrev.GetHashCode();
if (this.DateFinEffect != null)
hashCode = hashCode * 59 + this.DateFinEffect.GetHashCode();
if (this.Commentaire != null)
hashCode = hashCode * 59 + this.Commentaire.GetHashCode();
if (this.IssuePE != null)
hashCode = hashCode * 59 + this.IssuePE.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,205 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// PeriodeEssai
/// </summary>
[DataContract]
public partial class PeriodeEssai : IEquatable<PeriodeEssai>, IValidatableObject
{
/// <summary>
/// Gets or Sets IssuePE
/// </summary>
[DataMember(Name="issuePE", EmitDefaultValue=false)]
public IssuePE? IssuePE { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="PeriodeEssai" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="dateDebut">dateDebut.</param>
/// <param name="dateFinPrev">dateFinPrev.</param>
/// <param name="dateFinEffect">dateFinEffect.</param>
/// <param name="commentaire">commentaire.</param>
/// <param name="issuePE">issuePE.</param>
public PeriodeEssai(long? id = default(long?), DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE? issuePE = default(IssuePE?))
{
this.Id = id;
this.DateDebut = dateDebut;
this.DateFinPrev = dateFinPrev;
this.DateFinEffect = dateFinEffect;
this.Commentaire = commentaire;
this.IssuePE = issuePE;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFinPrev
/// </summary>
[DataMember(Name="dateFinPrev", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFinPrev { get; set; }
/// <summary>
/// Gets or Sets DateFinEffect
/// </summary>
[DataMember(Name="dateFinEffect", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? DateFinEffect { get; set; }
/// <summary>
/// Gets or Sets Commentaire
/// </summary>
[DataMember(Name="commentaire", EmitDefaultValue=false)]
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 PeriodeEssai {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFinPrev: ").Append(DateFinPrev).Append("\n");
sb.Append(" DateFinEffect: ").Append(DateFinEffect).Append("\n");
sb.Append(" Commentaire: ").Append(Commentaire).Append("\n");
sb.Append(" IssuePE: ").Append(IssuePE).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as PeriodeEssai);
}
/// <summary>
/// Returns true if PeriodeEssai instances are equal
/// </summary>
/// <param name="input">Instance of PeriodeEssai to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(PeriodeEssai input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.DateDebut == input.DateDebut ||
(this.DateDebut != null &&
this.DateDebut.Equals(input.DateDebut))
) &&
(
this.DateFinPrev == input.DateFinPrev ||
(this.DateFinPrev != null &&
this.DateFinPrev.Equals(input.DateFinPrev))
) &&
(
this.DateFinEffect == input.DateFinEffect ||
(this.DateFinEffect != null &&
this.DateFinEffect.Equals(input.DateFinEffect))
) &&
(
this.Commentaire == input.Commentaire ||
(this.Commentaire != null &&
this.Commentaire.Equals(input.Commentaire))
) &&
(
this.IssuePE == input.IssuePE ||
(this.IssuePE != null &&
this.IssuePE.Equals(input.IssuePE))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.DateDebut != null)
hashCode = hashCode * 59 + this.DateDebut.GetHashCode();
if (this.DateFinPrev != null)
hashCode = hashCode * 59 + this.DateFinPrev.GetHashCode();
if (this.DateFinEffect != null)
hashCode = hashCode * 59 + this.DateFinEffect.GetHashCode();
if (this.Commentaire != null)
hashCode = hashCode * 59 + this.Commentaire.GetHashCode();
if (this.IssuePE != null)
hashCode = hashCode * 59 + this.IssuePE.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,204 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Projet
/// </summary>
[DataContract]
public partial class Projet : IEquatable<Projet>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Projet" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="nom">nom.</param>
/// <param name="_client">_client.</param>
/// <param name="debut">debut.</param>
/// <param name="fin">fin.</param>
/// <param name="description">description.</param>
public Projet(long? id = default(long?), string nom = default(string), string _client = default(string), DateTime? debut = default(DateTime?), DateTime? fin = default(DateTime?), string description = default(string))
{
this.Id = id;
this.Nom = nom;
this.Client = _client;
this.Debut = debut;
this.Fin = fin;
this.Description = description;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Client
/// </summary>
[DataMember(Name="client", EmitDefaultValue=false)]
public string Client { get; set; }
/// <summary>
/// Gets or Sets Debut
/// </summary>
[DataMember(Name="debut", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? Debut { get; set; }
/// <summary>
/// Gets or Sets Fin
/// </summary>
[DataMember(Name="fin", EmitDefaultValue=false)]
[JsonConverter(typeof(SwaggerDateConverter))]
public DateTime? Fin { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name="description", EmitDefaultValue=false)]
public string Description { 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 Projet {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Client: ").Append(Client).Append("\n");
sb.Append(" Debut: ").Append(Debut).Append("\n");
sb.Append(" Fin: ").Append(Fin).Append("\n");
sb.Append(" Description: ").Append(Description).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Projet);
}
/// <summary>
/// Returns true if Projet instances are equal
/// </summary>
/// <param name="input">Instance of Projet to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Projet input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Client == input.Client ||
(this.Client != null &&
this.Client.Equals(input.Client))
) &&
(
this.Debut == input.Debut ||
(this.Debut != null &&
this.Debut.Equals(input.Debut))
) &&
(
this.Fin == input.Fin ||
(this.Fin != null &&
this.Fin.Equals(input.Fin))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Client != null)
hashCode = hashCode * 59 + this.Client.GetHashCode();
if (this.Debut != null)
hashCode = hashCode * 59 + this.Debut.GetHashCode();
if (this.Fin != null)
hashCode = hashCode * 59 + this.Fin.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -0,0 +1,52 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Defines Statut
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum Statut
{
/// <summary>
/// Enum CADRE for value: CADRE
/// </summary>
[EnumMember(Value = "CADRE")]
CADRE = 1,
/// <summary>
/// Enum NONCADRE for value: NON-CADRE
/// </summary>
[EnumMember(Value = "NON-CADRE")]
NONCADRE = 2,
/// <summary>
/// Enum ALTERNANT for value: ALTERNANT
/// </summary>
[EnumMember(Value = "ALTERNANT")]
ALTERNANT = 3,
/// <summary>
/// Enum STAGIAIRE for value: STAGIAIRE
/// </summary>
[EnumMember(Value = "STAGIAIRE")]
STAGIAIRE = 4 }
}

@ -0,0 +1,138 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Technologie
/// </summary>
[DataContract]
public partial class Technologie : IEquatable<Technologie>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Technologie" /> class.
/// </summary>
/// <param name="code">code.</param>
/// <param name="intitule">intitule.</param>
public Technologie(string code = default(string), string intitule = default(string))
{
this.Code = code;
this.Intitule = intitule;
}
/// <summary>
/// Gets or Sets Code
/// </summary>
[DataMember(Name="code", EmitDefaultValue=false)]
public string Code { get; set; }
/// <summary>
/// Gets or Sets Intitule
/// </summary>
[DataMember(Name="intitule", EmitDefaultValue=false)]
public string Intitule { 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 Technologie {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Intitule: ").Append(Intitule).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Technologie);
}
/// <summary>
/// Returns true if Technologie instances are equal
/// </summary>
/// <param name="input">Instance of Technologie to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Technologie input)
{
if (input == null)
return false;
return
(
this.Code == input.Code ||
(this.Code != null &&
this.Code.Equals(input.Code))
) &&
(
this.Intitule == input.Intitule ||
(this.Intitule != null &&
this.Intitule.Equals(input.Intitule))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Code != null)
hashCode = hashCode * 59 + this.Code.GetHashCode();
if (this.Intitule != null)
hashCode = hashCode * 59 + this.Intitule.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
Loading…
Cancel
Save