You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Digitalisation_EPA_Serveur/ApiCollaborateur/CollaborateurApi.cs

2173 lines
121 KiB

/*
* 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 ICollaborateurApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns></returns>
void AjoutCollab (NouveauCollaborateur body = null);
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> AjoutCollabWithHttpInfo (NouveauCollaborateur body = null);
/// <summary>
/// rechercher tous les collaborateurs
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherCollab (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherCollabWithHttpInfo (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherCollabAgence (long? agenceId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherCollabAgenceWithHttpInfo (long? agenceId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherCollabBU (long? buId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherCollabBUWithHttpInfo (long? buId, bool? referent = null);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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>Collaborateur</returns>
Collaborateur ChercherCollabId (Guid? collabId);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 Collaborateur</returns>
ApiResponse<Collaborateur> ChercherCollabIdWithHttpInfo (Guid? collabId);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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>Collaborateur</returns>
Collaborateur ChercherCollabMail (string mailApside);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 Collaborateur</returns>
ApiResponse<Collaborateur> ChercherCollabMailWithHttpInfo (string mailApside);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherCollabRef (Guid? refId);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherCollabRefWithHttpInfo (Guid? refId);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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 MajCollab (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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> MajCollabWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns></returns>
void MajCollabMail (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> MajCollabMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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 MajCollabpatch (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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> MajCollabpatchWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns></returns>
void MajCollabpatchMail (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> MajCollabpatchMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null);
#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task AjoutCollabAsync (NouveauCollaborateur body = null);
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> AjoutCollabAsyncWithHttpInfo (NouveauCollaborateur body = null);
/// <summary>
/// rechercher tous les collaborateurs
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabAsync (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabAsyncWithHttpInfo (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabAgenceAsync (long? agenceId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabBUAsync (long? buId, bool? referent = null);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabBUAsyncWithHttpInfo (long? buId, bool? referent = null);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherCollabIdAsync (Guid? collabId);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherCollabIdAsyncWithHttpInfo (Guid? collabId);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherCollabMailAsync (string mailApside);
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>
/// rechercher 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 (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherCollabMailAsyncWithHttpInfo (string mailApside);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabRefAsync (Guid? refId);
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent
/// </summary>
/// <remarks>
/// Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabRefAsyncWithHttpInfo (Guid? refId);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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 MajCollabAsync (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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>> MajCollabAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task MajCollabMailAsync (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> MajCollabMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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 MajCollabpatchAsync (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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>> MajCollabpatchAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>Task of void</returns>
System.Threading.Tasks.Task MajCollabpatchMailAsync (string mailApside, NouveauCollaborateur body = null);
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <remarks>
///
/// </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="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> MajCollabpatchMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null);
#endregion Asynchronous Operations
}
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class CollaborateurApi : ICollaborateurApi
{
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary>
/// Initializes a new instance of the <see cref="CollaborateurApi"/> class.
/// </summary>
/// <returns></returns>
public CollaborateurApi(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="CollaborateurApi"/> class
/// </summary>
/// <returns></returns>
public CollaborateurApi()
{
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="CollaborateurApi"/> class
/// using Configuration object
/// </summary>
/// <param name="configuration">An instance of Configuration</param>
/// <returns></returns>
public CollaborateurApi(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>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns></returns>
public void AjoutCollab (NouveauCollaborateur body = null)
{
AjoutCollabWithHttpInfo(body);
}
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> AjoutCollabWithHttpInfo (NouveauCollaborateur body = null)
{
var localVarPath = "/collaborateurs";
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 (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.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("AjoutCollab", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task AjoutCollabAsync (NouveauCollaborateur body = null)
{
await AjoutCollabAsyncWithHttpInfo(body);
}
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> AjoutCollabAsyncWithHttpInfo (NouveauCollaborateur body = null)
{
var localVarPath = "/collaborateurs";
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 (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.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("AjoutCollab", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
/// <summary>
/// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherCollab (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherCollabWithHttpInfo(collabsId, ancienCollaborateur, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherCollabWithHttpInfo (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null)
{
var localVarPath = "/collaborateurs";
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 (collabsId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "collabsId", collabsId)); // query parameter
if (ancienCollaborateur != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ancienCollaborateur", ancienCollaborateur)); // query parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollab", 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 tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabAsync (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherCollabAsyncWithHttpInfo(collabsId, ancienCollaborateur, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional)</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional)</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabAsyncWithHttpInfo (List<Guid?> collabsId = null, bool? ancienCollaborateur = null, bool? referent = null)
{
var localVarPath = "/collaborateurs";
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 (collabsId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "collabsId", collabsId)); // query parameter
if (ancienCollaborateur != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ancienCollaborateur", ancienCollaborateur)); // query parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollab", 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 tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherCollabAgence (long? agenceId, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherCollabAgenceWithHttpInfo(agenceId, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherCollabAgenceWithHttpInfo (long? agenceId, bool? referent = null)
{
// verify the required parameter 'agenceId' is set
if (agenceId == null)
throw new ApiException(400, "Missing required parameter 'agenceId' when calling CollaborateurApi->ChercherCollabAgence");
var localVarPath = "/collaborateurs/agence/{agenceId}";
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 (agenceId != null) localVarPathParams.Add("agenceId", this.Configuration.ApiClient.ParameterToString(agenceId)); // path parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollabAgence", 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 tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabAgenceAsync (long? agenceId, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherCollabAgenceAsyncWithHttpInfo(agenceId, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, bool? referent = null)
{
// verify the required parameter 'agenceId' is set
if (agenceId == null)
throw new ApiException(400, "Missing required parameter 'agenceId' when calling CollaborateurApi->ChercherCollabAgence");
var localVarPath = "/collaborateurs/agence/{agenceId}";
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 (agenceId != null) localVarPathParams.Add("agenceId", this.Configuration.ApiClient.ParameterToString(agenceId)); // path parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollabAgence", 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 tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherCollabBU (long? buId, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherCollabBUWithHttpInfo(buId, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherCollabBUWithHttpInfo (long? buId, bool? referent = null)
{
// verify the required parameter 'buId' is set
if (buId == null)
throw new ApiException(400, "Missing required parameter 'buId' when calling CollaborateurApi->ChercherCollabBU");
var localVarPath = "/collaborateurs/bu/{buId}";
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 (buId != null) localVarPathParams.Add("buId", this.Configuration.ApiClient.ParameterToString(buId)); // path parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollabBU", 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 tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabBUAsync (long? buId, bool? referent = null)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherCollabBUAsyncWithHttpInfo(buId, referent);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="referent">Ce paramêtre permet de filtrer les collaborateurs référents (optional)</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabBUAsyncWithHttpInfo (long? buId, bool? referent = null)
{
// verify the required parameter 'buId' is set
if (buId == null)
throw new ApiException(400, "Missing required parameter 'buId' when calling CollaborateurApi->ChercherCollabBU");
var localVarPath = "/collaborateurs/bu/{buId}";
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 (buId != null) localVarPathParams.Add("buId", this.Configuration.ApiClient.ParameterToString(buId)); // path parameter
if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // 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("ChercherCollabBU", 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 un collaborateur rechercher 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>Collaborateur</returns>
public Collaborateur ChercherCollabId (Guid? collabId)
{
ApiResponse<Collaborateur> localVarResponse = ChercherCollabIdWithHttpInfo(collabId);
if(localVarResponse != null)
return localVarResponse.Data;
return null;
}
/// <summary>
/// rechercher un collaborateur rechercher 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 Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherCollabIdWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherCollabId");
var localVarPath = "/collaborateurs/{collabId}";
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("ChercherCollabId", localVarResponse);
if (exception != null) return null;
}
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 un collaborateur rechercher 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 Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherCollabIdAsync (Guid? collabId)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherCollabIdAsyncWithHttpInfo(collabId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher un collaborateur rechercher 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 (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherCollabIdAsyncWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherCollabId");
var localVarPath = "/collaborateurs/{collabId}";
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("ChercherCollabId", 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 un collaborateur rechercher 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>Collaborateur</returns>
public Collaborateur ChercherCollabMail (string mailApside)
{
ApiResponse<Collaborateur> localVarResponse = ChercherCollabMailWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher un collaborateur rechercher 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 Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherCollabMailWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherCollabMail");
var localVarPath = "/collaborateurs/{mailApside}";
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("ChercherCollabMail", 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 un collaborateur rechercher 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 Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherCollabMailAsync (string mailApside)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherCollabMailAsyncWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher un collaborateur rechercher 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 (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherCollabMailAsyncWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherCollabMail");
var localVarPath = "/collaborateurs/{mailApside}";
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("ChercherCollabMail", 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 tous les collaborateurs d&#x27;un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherCollabRef (Guid? refId)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherCollabRefWithHttpInfo(refId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherCollabRefWithHttpInfo (Guid? refId)
{
// verify the required parameter 'refId' is set
if (refId == null)
throw new ApiException(400, "Missing required parameter 'refId' when calling CollaborateurApi->ChercherCollabRef");
var localVarPath = "/collaborateurs/referent/{refId}";
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 (refId != null) localVarPathParams.Add("refId", this.Configuration.ApiClient.ParameterToString(refId)); // 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("ChercherCollabRef", 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 tous les collaborateurs d&#x27;un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherCollabRefAsync (Guid? refId)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherCollabRefAsyncWithHttpInfo(refId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherCollabRefAsyncWithHttpInfo (Guid? refId)
{
// verify the required parameter 'refId' is set
if (refId == null)
throw new ApiException(400, "Missing required parameter 'refId' when calling CollaborateurApi->ChercherCollabRef");
var localVarPath = "/collaborateurs/referent/{refId}";
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 (refId != null) localVarPathParams.Add("refId", this.Configuration.ApiClient.ParameterToString(refId)); // 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("ChercherCollabRef", 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>
/// mettre à jour un collaborateur
/// </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 MajCollab (Guid? collabId, NouveauCollaborateur body = null)
{
MajCollabWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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> MajCollabWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->MajCollab");
var localVarPath = "/collaborateurs/{collabId}";
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("MajCollab", 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 un collaborateur
/// </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 MajCollabAsync (Guid? collabId, NouveauCollaborateur body = null)
{
await MajCollabAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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>> MajCollabAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->MajCollab");
var localVarPath = "/collaborateurs/{collabId}";
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("MajCollab", 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 un collaborateur
/// </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="body"> (optional)</param>
/// <returns></returns>
public void MajCollabMail (string mailApside, NouveauCollaborateur body = null)
{
MajCollabMailWithHttpInfo(mailApside, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> MajCollabMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->MajCollabMail");
var localVarPath = "/collaborateurs/{mailApside}";
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 (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // 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("MajCollabMail", 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 un collaborateur
/// </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="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task MajCollabMailAsync (string mailApside, NouveauCollaborateur body = null)
{
await MajCollabMailAsyncWithHttpInfo(mailApside, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> MajCollabMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->MajCollabMail");
var localVarPath = "/collaborateurs/{mailApside}";
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 (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // 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("MajCollabMail", 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 un collaborateur
/// </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 MajCollabpatch (Guid? collabId, NouveauCollaborateur body = null)
{
MajCollabpatchWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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> MajCollabpatchWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->MajCollabpatch");
var localVarPath = "/collaborateurs/{collabId}";
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("MajCollabpatch", 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 un collaborateur
/// </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 MajCollabpatchAsync (Guid? collabId, NouveauCollaborateur body = null)
{
await MajCollabpatchAsyncWithHttpInfo(collabId, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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>> MajCollabpatchAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->MajCollabpatch");
var localVarPath = "/collaborateurs/{collabId}";
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("MajCollabpatch", 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 un collaborateur
/// </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="body"> (optional)</param>
/// <returns></returns>
public void MajCollabpatchMail (string mailApside, NouveauCollaborateur body = null)
{
MajCollabpatchMailWithHttpInfo(mailApside, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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="body"> (optional)</param>
/// <returns>ApiResponse of Object(void)</returns>
public ApiResponse<Object> MajCollabpatchMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->MajCollabpatchMail");
var localVarPath = "/collaborateurs/{mailApside}";
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 (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // 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("MajCollabpatchMail", 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 un collaborateur
/// </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="body"> (optional)</param>
/// <returns>Task of void</returns>
public async System.Threading.Tasks.Task MajCollabpatchMailAsync (string mailApside, NouveauCollaborateur body = null)
{
await MajCollabpatchMailAsyncWithHttpInfo(mailApside, body);
}
/// <summary>
/// mettre à jour un collaborateur
/// </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="body"> (optional)</param>
/// <returns>Task of ApiResponse</returns>
public async System.Threading.Tasks.Task<ApiResponse<Object>> MajCollabpatchMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->MajCollabpatchMail");
var localVarPath = "/collaborateurs/{mailApside}";
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 (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // 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("MajCollabpatchMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Object>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
null);
}
}
}