/* * 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.3 * 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 { /// /// Represents a collection of functions to interact with the API endpoints /// public interface ICollaborateurApi : IApiAccessor { #region Synchronous Operations /// /// ajout d'un nouveau collaborateur /// /// /// /// /// Thrown when fails to make API call /// (optional) /// void AjoutCollab (NouveauCollaborateur body = null); /// /// ajout d'un nouveau collaborateur /// /// /// /// /// Thrown when fails to make API call /// (optional) /// ApiResponse of Object(void) ApiResponse AjoutCollabWithHttpInfo (NouveauCollaborateur body = null); /// /// rechercher tous les collaborateurs /// /// /// Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// List<Collaborateur> List ChercherCollab (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs /// /// /// Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// ApiResponse of List<Collaborateur> ApiResponse> ChercherCollabWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// List<Collaborateur> List ChercherCollabAgence (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// ApiResponse of List<Collaborateur> ApiResponse> ChercherCollabAgenceWithHttpInfo (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// List<Collaborateur> List ChercherCollabBU (long? buId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// ApiResponse of List<Collaborateur> ApiResponse> ChercherCollabBUWithHttpInfo (long? buId, List roles = null); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Collaborateur Collaborateur ChercherCollabId (Guid? collabId); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of Collaborateur ApiResponse ChercherCollabIdWithHttpInfo (Guid? collabId); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Collaborateur Collaborateur ChercherCollabMail (string mailApside); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of Collaborateur ApiResponse ChercherCollabMailWithHttpInfo (string mailApside); /// /// rechercher tous les collaborateurs d'un référent /// /// /// Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// List<Collaborateur> List ChercherCollabRef (Guid? refId); /// /// rechercher tous les collaborateurs d'un référent /// /// /// Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// ApiResponse of List<Collaborateur> ApiResponse> ChercherCollabRefWithHttpInfo (Guid? refId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Collaborateur Collaborateur ChercherRefActuelId (Guid? collabId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of Collaborateur ApiResponse ChercherRefActuelIdWithHttpInfo (Guid? collabId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Collaborateur Collaborateur ChercherRefActuelMail (string mailApside); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of Collaborateur ApiResponse ChercherRefActuelMailWithHttpInfo (string mailApside); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// List<Collaborateur> List ChercherRefCollabId (Guid? collabId); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of List<Collaborateur> ApiResponse> ChercherRefCollabIdWithHttpInfo (Guid? collabId); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// List<Collaborateur> List ChercherRefCollabMail (string mailApside); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of List<Collaborateur> ApiResponse> ChercherRefCollabMailWithHttpInfo (string mailApside); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void MajCollab (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse MajCollabWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// void MajCollabMail (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// ApiResponse of Object(void) ApiResponse MajCollabMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// void MajCollabpatch (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) ApiResponse MajCollabpatchWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// void MajCollabpatchMail (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// ApiResponse of Object(void) ApiResponse MajCollabpatchMailWithHttpInfo (string mailApside, NouveauCollaborateur body = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// ajout d'un nouveau collaborateur /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Task of void System.Threading.Tasks.Task AjoutCollabAsync (NouveauCollaborateur body = null); /// /// ajout d'un nouveau collaborateur /// /// /// /// /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> AjoutCollabAsyncWithHttpInfo (NouveauCollaborateur body = null); /// /// rechercher tous les collaborateurs /// /// /// Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherCollabAsync (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs /// /// /// Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherCollabAsyncWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// /// /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, List roles = null); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of Collaborateur System.Threading.Tasks.Task ChercherCollabIdAsync (Guid? collabId); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (Collaborateur) System.Threading.Tasks.Task> ChercherCollabIdAsyncWithHttpInfo (Guid? collabId); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of Collaborateur System.Threading.Tasks.Task ChercherCollabMailAsync (string mailApside); /// /// rechercher un collaborateur /// /// /// rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (Collaborateur) System.Threading.Tasks.Task> ChercherCollabMailAsyncWithHttpInfo (string mailApside); /// /// rechercher tous les collaborateurs d'un référent /// /// /// Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherCollabRefAsync (Guid? refId); /// /// rechercher tous les collaborateurs d'un référent /// /// /// Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherCollabRefAsyncWithHttpInfo (Guid? refId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of Collaborateur System.Threading.Tasks.Task ChercherRefActuelIdAsync (Guid? collabId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (Collaborateur) System.Threading.Tasks.Task> ChercherRefActuelIdAsyncWithHttpInfo (Guid? collabId); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of Collaborateur System.Threading.Tasks.Task ChercherRefActuelMailAsync (string mailApside); /// /// rechercher le référent actuel /// /// /// rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (Collaborateur) System.Threading.Tasks.Task> ChercherRefActuelMailAsyncWithHttpInfo (string mailApside); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherRefCollabIdAsync (Guid? collabId); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of List<Collaborateur> System.Threading.Tasks.Task> ChercherRefCollabMailAsync (string mailApside); /// /// rechercher les référents /// /// /// rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (List<Collaborateur>) System.Threading.Tasks.Task>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task MajCollabAsync (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajCollabAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of void System.Threading.Tasks.Task MajCollabMailAsync (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajCollabMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void System.Threading.Tasks.Task MajCollabpatchAsync (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajCollabpatchAsyncWithHttpInfo (Guid? collabId, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of void System.Threading.Tasks.Task MajCollabpatchMailAsync (string mailApside, NouveauCollaborateur body = null); /// /// mettre à jour un collaborateur /// /// /// /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of ApiResponse System.Threading.Tasks.Task> MajCollabpatchMailAsyncWithHttpInfo (string mailApside, NouveauCollaborateur body = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class CollaborateurApi : ICollaborateurApi { private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// /// public CollaborateurApi(String basePath) { this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath }; ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// /// public CollaborateurApi() { this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; } /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// 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; } /// /// Gets the base path of the API client. /// /// The base path public String GetBasePath() { return this.Configuration.ApiClient.RestClient.BaseUrl.ToString(); } /// /// Sets the base path of the API client. /// /// The base path [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")] public void SetBasePath(String basePath) { // do nothing } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public IO.Swagger.ClientCollaborateur.Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// 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; } } /// /// Gets the default header. /// /// Dictionary of HTTP header [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")] public IDictionary DefaultHeader() { return new ReadOnlyDictionary(this.Configuration.DefaultHeader); } /// /// Add default header. /// /// Header field name. /// Header field value. /// [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")] public void AddDefaultHeader(string key, string value) { this.Configuration.AddDefaultHeader(key, value); } /// /// ajout d'un nouveau collaborateur /// /// Thrown when fails to make API call /// (optional) /// public void AjoutCollab (NouveauCollaborateur body = null) { AjoutCollabWithHttpInfo(body); } /// /// ajout d'un nouveau collaborateur /// /// Thrown when fails to make API call /// (optional) /// ApiResponse of Object(void) public ApiResponse AjoutCollabWithHttpInfo (NouveauCollaborateur body = null) { var localVarPath = "/collaborateurs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("AjoutCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// ajout d'un nouveau collaborateur /// /// Thrown when fails to make API call /// (optional) /// Task of void public async System.Threading.Tasks.Task AjoutCollabAsync (NouveauCollaborateur body = null) { await AjoutCollabAsyncWithHttpInfo(body); } /// /// ajout d'un nouveau collaborateur /// /// Thrown when fails to make API call /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> AjoutCollabAsyncWithHttpInfo (NouveauCollaborateur body = null) { var localVarPath = "/collaborateurs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("AjoutCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// List<Collaborateur> public List ChercherCollab (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { ApiResponse> localVarResponse = ChercherCollabWithHttpInfo(collabsId, ancienCollaborateur, roles, buIds); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// ApiResponse of List<Collaborateur> public ApiResponse< List > ChercherCollabWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { var localVarPath = "/collaborateurs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // query parameter if (buIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "buIds", buIds)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherCollabAsync (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { ApiResponse> localVarResponse = await ChercherCollabAsyncWithHttpInfo(collabsId, ancienCollaborateur, roles, buIds); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs Cette requette demande de récupérer tous les collaborateurs existant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés (optional) /// Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside (optional) /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur (optional) /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> ChercherCollabAsyncWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { var localVarPath = "/collaborateurs"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // query parameter if (buIds != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "buIds", buIds)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// List<Collaborateur> public List ChercherCollabAgence (long? agenceId, List roles = null) { ApiResponse> localVarResponse = ChercherCollabAgenceWithHttpInfo(agenceId, roles); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// ApiResponse of List<Collaborateur> public ApiResponse< List > ChercherCollabAgenceWithHttpInfo (long? agenceId, List roles = 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabAgence", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, List roles = null) { ApiResponse> localVarResponse = await ChercherCollabAgenceAsyncWithHttpInfo(agenceId, roles); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, List roles = 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabAgence", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// List<Collaborateur> public List ChercherCollabBU (long? buId, List roles = null) { ApiResponse> localVarResponse = ChercherCollabBUWithHttpInfo(buId, roles); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// ApiResponse of List<Collaborateur> public ApiResponse< List > ChercherCollabBUWithHttpInfo (long? buId, List roles = 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabBU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, List roles = null) { ApiResponse> localVarResponse = await ChercherCollabBUAsyncWithHttpInfo(buId, roles); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un Business-unit Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée /// Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde. (optional) /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, List roles = 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (roles != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "roles", roles)); // 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabBU", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Collaborateur public Collaborateur ChercherCollabId (Guid? collabId) { ApiResponse localVarResponse = ChercherCollabIdWithHttpInfo(collabId); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of Collaborateur 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of Collaborateur public async System.Threading.Tasks.Task ChercherCollabIdAsync (Guid? collabId) { ApiResponse localVarResponse = await ChercherCollabIdAsyncWithHttpInfo(collabId); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (Collaborateur) public async System.Threading.Tasks.Task> 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Collaborateur public Collaborateur ChercherCollabMail (string mailApside) { ApiResponse localVarResponse = ChercherCollabMailWithHttpInfo(mailApside); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of Collaborateur 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of Collaborateur public async System.Threading.Tasks.Task ChercherCollabMailAsync (string mailApside) { ApiResponse localVarResponse = await ChercherCollabMailAsyncWithHttpInfo(mailApside); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher un collaborateur rechercher un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (Collaborateur) public async System.Threading.Tasks.Task> 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// List<Collaborateur> public List ChercherCollabRef (Guid? refId) { ApiResponse> localVarResponse = ChercherCollabRefWithHttpInfo(refId); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// ApiResponse of List<Collaborateur> public ApiResponse< List > 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabRef", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherCollabRefAsync (Guid? refId) { ApiResponse> localVarResponse = await ChercherCollabRefAsyncWithHttpInfo(refId); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs d'un référent /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du référent recherché /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherCollabRef", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Collaborateur public Collaborateur ChercherRefActuelId (Guid? collabId) { ApiResponse localVarResponse = ChercherRefActuelIdWithHttpInfo(collabId); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of Collaborateur public ApiResponse< Collaborateur > ChercherRefActuelIdWithHttpInfo (Guid? collabId) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherRefActuelId"); var localVarPath = "/collaborateurs/{collabId}/referent"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefActuelId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of Collaborateur public async System.Threading.Tasks.Task ChercherRefActuelIdAsync (Guid? collabId) { ApiResponse localVarResponse = await ChercherRefActuelIdAsyncWithHttpInfo(collabId); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (Collaborateur) public async System.Threading.Tasks.Task> ChercherRefActuelIdAsyncWithHttpInfo (Guid? collabId) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherRefActuelId"); var localVarPath = "/collaborateurs/{collabId}/referent"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefActuelId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Collaborateur public Collaborateur ChercherRefActuelMail (string mailApside) { ApiResponse localVarResponse = ChercherRefActuelMailWithHttpInfo(mailApside); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of Collaborateur public ApiResponse< Collaborateur > ChercherRefActuelMailWithHttpInfo (string mailApside) { // verify the required parameter 'mailApside' is set if (mailApside == null) throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherRefActuelMail"); var localVarPath = "/collaborateurs/mail/{mailApside}/referent"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefActuelMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of Collaborateur public async System.Threading.Tasks.Task ChercherRefActuelMailAsync (string mailApside) { ApiResponse localVarResponse = await ChercherRefActuelMailAsyncWithHttpInfo(mailApside); if (localVarResponse == null) return null; return localVarResponse.Data; } /// /// rechercher le référent actuel rechercher le référent actuel du collaborateur l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (Collaborateur) public async System.Threading.Tasks.Task> ChercherRefActuelMailAsyncWithHttpInfo (string mailApside) { // verify the required parameter 'mailApside' is set if (mailApside == null) throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherRefActuelMail"); var localVarPath = "/collaborateurs/mail/{mailApside}/referent"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefActuelMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// List<Collaborateur> public List ChercherRefCollabId (Guid? collabId) { ApiResponse> localVarResponse = ChercherRefCollabIdWithHttpInfo(collabId); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// ApiResponse of List<Collaborateur> public ApiResponse< List > ChercherRefCollabIdWithHttpInfo (Guid? collabId) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherRefCollabId"); var localVarPath = "/collaborateurs/{collabId}/referents"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherRefCollabIdAsync (Guid? collabId) { ApiResponse> localVarResponse = await ChercherRefCollabIdAsyncWithHttpInfo(collabId); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son identifiant /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId) { // verify the required parameter 'collabId' is set if (collabId == null) throw new ApiException(400, "Missing required parameter 'collabId' when calling CollaborateurApi->ChercherRefCollabId"); var localVarPath = "/collaborateurs/{collabId}/referents"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// List<Collaborateur> public List ChercherRefCollabMail (string mailApside) { ApiResponse> localVarResponse = ChercherRefCollabMailWithHttpInfo(mailApside); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// ApiResponse of List<Collaborateur> public ApiResponse< List > ChercherRefCollabMailWithHttpInfo (string mailApside) { // verify the required parameter 'mailApside' is set if (mailApside == null) throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherRefCollabMail"); var localVarPath = "/collaborateurs/mail/{mailApside}/referents"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of List<Collaborateur> public async System.Threading.Tasks.Task> ChercherRefCollabMailAsync (string mailApside) { ApiResponse> localVarResponse = await ChercherRefCollabMailAsyncWithHttpInfo(mailApside); if (localVarResponse == null) return new List(); return localVarResponse.Data; } /// /// rechercher les référents rechercher les référents d'un collaborateur à l'aide de son mail apside /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// Task of ApiResponse (List<Collaborateur>) public async System.Threading.Tasks.Task>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside) { // verify the required parameter 'mailApside' is set if (mailApside == null) throw new ApiException(400, "Missing required parameter 'mailApside' when calling CollaborateurApi->ChercherRefCollabMail"); var localVarPath = "/collaborateurs/mail/{mailApside}/referents"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void MajCollab (Guid? collabId, NouveauCollaborateur body = null) { MajCollabWithHttpInfo(collabId, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task MajCollabAsync (Guid? collabId, NouveauCollaborateur body = null) { await MajCollabAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollab", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// public void MajCollabMail (string mailApside, NouveauCollaborateur body = null) { MajCollabMailWithHttpInfo(mailApside, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// ApiResponse of Object(void) public ApiResponse 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of void public async System.Threading.Tasks.Task MajCollabMailAsync (string mailApside, NouveauCollaborateur body = null) { await MajCollabMailAsyncWithHttpInfo(mailApside, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// public void MajCollabpatch (Guid? collabId, NouveauCollaborateur body = null) { MajCollabpatchWithHttpInfo(collabId, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// ApiResponse of Object(void) public ApiResponse 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabpatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of void public async System.Threading.Tasks.Task MajCollabpatchAsync (Guid? collabId, NouveauCollaborateur body = null) { await MajCollabpatchAsyncWithHttpInfo(collabId, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> 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(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabpatch", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// public void MajCollabpatchMail (string mailApside, NouveauCollaborateur body = null) { MajCollabpatchMailWithHttpInfo(mailApside, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// ApiResponse of Object(void) public ApiResponse 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabpatchMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of void public async System.Threading.Tasks.Task MajCollabpatchMailAsync (string mailApside, NouveauCollaborateur body = null) { await MajCollabpatchMailAsyncWithHttpInfo(mailApside, body); } /// /// mettre à jour un collaborateur /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ /// (optional) /// Task of ApiResponse public async System.Threading.Tasks.Task> 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/mail/{mailApside}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); 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 (localVarStatusCode == 404) return null; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MajCollabpatchMail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), null); } } }