diff --git a/EPAServeur/ApiCollaborateur/AdresseApi.cs b/EPAServeur/ApiCollaborateur/AdresseApi.cs index 0217967..f5ffa2e 100644 --- a/EPAServeur/ApiCollaborateur/AdresseApi.cs +++ b/EPAServeur/ApiCollaborateur/AdresseApi.cs @@ -12,8 +12,8 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using RestSharp; -using IO.Swagger.ClientCollaborateur; using IO.Swagger.ModelCollaborateur; +using IO.Swagger.ClientCollaborateur; namespace IO.Swagger.ApiCollaborateur { diff --git a/EPAServeur/ApiCollaborateur/AgenceApi.cs b/EPAServeur/ApiCollaborateur/AgenceApi.cs index 490cefb..2f2fba4 100644 --- a/EPAServeur/ApiCollaborateur/AgenceApi.cs +++ b/EPAServeur/ApiCollaborateur/AgenceApi.cs @@ -511,7 +511,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->ChercherAgence"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -577,7 +577,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->ChercherAgence"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -762,7 +762,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->MajAgence"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -837,7 +837,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->MajAgence"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -911,7 +911,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->MajAgencepatch"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); @@ -986,7 +986,7 @@ namespace IO.Swagger.ApiCollaborateur if (agenceId == null) throw new ApiException(400, "Missing required parameter 'agenceId' when calling AgenceApi->MajAgencepatch"); - var localVarPath = "/agence/{agenceId}"; + var localVarPath = "/agences/{agenceId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); diff --git a/EPAServeur/ApiCollaborateur/CollaborateurApi.cs b/EPAServeur/ApiCollaborateur/CollaborateurApi.cs index bfc17ab..b26b95c 100644 --- a/EPAServeur/ApiCollaborateur/CollaborateurApi.cs +++ b/EPAServeur/ApiCollaborateur/CollaborateurApi.cs @@ -53,9 +53,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null); + List ChercherCollab (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs @@ -66,9 +67,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null); + ApiResponse> ChercherCollabWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// @@ -77,9 +79,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// List<Collaborateur> - List ChercherCollabAgence (long? agenceId, bool? referent = null); + List ChercherCollabAgence (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit @@ -89,9 +91,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// ApiResponse of List<Collaborateur> - ApiResponse> ChercherCollabAgenceWithHttpInfo (long? agenceId, bool? referent = null); + ApiResponse> ChercherCollabAgenceWithHttpInfo (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// @@ -100,9 +102,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// List<Collaborateur> - List ChercherCollabBU (long? buId, bool? referent = null); + List ChercherCollabBU (long? buId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit @@ -112,9 +114,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// ApiResponse of List<Collaborateur> - ApiResponse> ChercherCollabBUWithHttpInfo (long? buId, bool? referent = null); + ApiResponse> ChercherCollabBUWithHttpInfo (long? buId, List roles = null); /// /// rechercher un collaborateur /// @@ -161,7 +163,7 @@ namespace IO.Swagger.ApiCollaborateur /// rechercher tous les collaborateurs d'un référent /// /// - /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -172,13 +174,97 @@ namespace IO.Swagger.ApiCollaborateur /// rechercher tous les collaborateurs d'un référent /// /// - /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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 /// /// @@ -302,9 +388,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null); + System.Threading.Tasks.Task> ChercherCollabAsync (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null); /// /// rechercher tous les collaborateurs @@ -315,9 +402,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null); + 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 /// @@ -326,9 +414,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of List<Collaborateur> - System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, bool? referent = null); + System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit @@ -338,9 +426,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of ApiResponse (List<Collaborateur>) - System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, bool? referent = null); + System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit /// @@ -349,9 +437,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of List<Collaborateur> - System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, bool? referent = null); + System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, List roles = null); /// /// rechercher tous les collaborateurs d'un Business-unit @@ -361,9 +449,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of ApiResponse (List<Collaborateur>) - System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, bool? referent = null); + System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, List roles = null); /// /// rechercher un collaborateur /// @@ -410,7 +498,7 @@ namespace IO.Swagger.ApiCollaborateur /// rechercher tous les collaborateurs d'un référent /// /// - /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -421,13 +509,97 @@ namespace IO.Swagger.ApiCollaborateur /// rechercher tous les collaborateurs d'un référent /// /// - /// Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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 /// /// @@ -773,11 +945,12 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null) + public List ChercherCollab (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { - ApiResponse> localVarResponse = ChercherCollabWithHttpInfo(collabsId, ancienCollaborateur, referent); + ApiResponse> localVarResponse = ChercherCollabWithHttpInfo(collabsId, ancienCollaborateur, roles, buIds); return localVarResponse.Data; } @@ -787,9 +960,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null) + public ApiResponse< List > ChercherCollabWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { var localVarPath = "/collaborateurs"; @@ -815,7 +989,8 @@ namespace IO.Swagger.ApiCollaborateur if (collabsId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "collabsId", collabsId)); // query parameter if (ancienCollaborateur != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ancienCollaborateur", ancienCollaborateur)); // query parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -841,11 +1016,12 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null) + 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, referent); + ApiResponse> localVarResponse = await ChercherCollabAsyncWithHttpInfo(collabsId, ancienCollaborateur, roles, buIds); return localVarResponse.Data; } @@ -856,9 +1032,10 @@ namespace IO.Swagger.ApiCollaborateur /// 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 filtrer les collaborateurs référents (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, bool? referent = null) + public async System.Threading.Tasks.Task>> ChercherCollabAsyncWithHttpInfo (List collabsId = null, bool? ancienCollaborateur = null, List roles = null, List buIds = null) { var localVarPath = "/collaborateurs"; @@ -884,7 +1061,8 @@ namespace IO.Swagger.ApiCollaborateur if (collabsId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("multi", "collabsId", collabsId)); // query parameter if (ancienCollaborateur != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "ancienCollaborateur", ancienCollaborateur)); // query parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -898,10 +1076,9 @@ namespace IO.Swagger.ApiCollaborateur 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))); + (List)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List))); } /// @@ -909,11 +1086,11 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// List<Collaborateur> - public List ChercherCollabAgence (long? agenceId, bool? referent = null) + public List ChercherCollabAgence (long? agenceId, List roles = null) { - ApiResponse> localVarResponse = ChercherCollabAgenceWithHttpInfo(agenceId, referent); + ApiResponse> localVarResponse = ChercherCollabAgenceWithHttpInfo(agenceId, roles); return localVarResponse.Data; } @@ -922,9 +1099,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// ApiResponse of List<Collaborateur> - public ApiResponse< List > ChercherCollabAgenceWithHttpInfo (long? agenceId, bool? referent = null) + public ApiResponse< List > ChercherCollabAgenceWithHttpInfo (long? agenceId, List roles = null) { // verify the required parameter 'agenceId' is set if (agenceId == null) @@ -952,7 +1129,7 @@ namespace IO.Swagger.ApiCollaborateur localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (agenceId != null) localVarPathParams.Add("agenceId", this.Configuration.ApiClient.ParameterToString(agenceId)); // path parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -977,11 +1154,11 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of List<Collaborateur> - public async System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, bool? referent = null) + public async System.Threading.Tasks.Task> ChercherCollabAgenceAsync (long? agenceId, List roles = null) { - ApiResponse> localVarResponse = await ChercherCollabAgenceAsyncWithHttpInfo(agenceId, referent); + ApiResponse> localVarResponse = await ChercherCollabAgenceAsyncWithHttpInfo(agenceId, roles); return localVarResponse.Data; } @@ -991,9 +1168,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of ApiResponse (List<Collaborateur>) - public async System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, bool? referent = null) + public async System.Threading.Tasks.Task>> ChercherCollabAgenceAsyncWithHttpInfo (long? agenceId, List roles = null) { // verify the required parameter 'agenceId' is set if (agenceId == null) @@ -1021,7 +1198,7 @@ namespace IO.Swagger.ApiCollaborateur localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (agenceId != null) localVarPathParams.Add("agenceId", this.Configuration.ApiClient.ParameterToString(agenceId)); // path parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -1046,11 +1223,11 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// List<Collaborateur> - public List ChercherCollabBU (long? buId, bool? referent = null) + public List ChercherCollabBU (long? buId, List roles = null) { - ApiResponse> localVarResponse = ChercherCollabBUWithHttpInfo(buId, referent); + ApiResponse> localVarResponse = ChercherCollabBUWithHttpInfo(buId, roles); return localVarResponse.Data; } @@ -1059,9 +1236,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// ApiResponse of List<Collaborateur> - public ApiResponse< List > ChercherCollabBUWithHttpInfo (long? buId, bool? referent = null) + public ApiResponse< List > ChercherCollabBUWithHttpInfo (long? buId, List roles = null) { // verify the required parameter 'buId' is set if (buId == null) @@ -1089,7 +1266,7 @@ namespace IO.Swagger.ApiCollaborateur localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (buId != null) localVarPathParams.Add("buId", this.Configuration.ApiClient.ParameterToString(buId)); // path parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -1114,11 +1291,11 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of List<Collaborateur> - public async System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, bool? referent = null) + public async System.Threading.Tasks.Task> ChercherCollabBUAsync (long? buId, List roles = null) { - ApiResponse> localVarResponse = await ChercherCollabBUAsyncWithHttpInfo(buId, referent); + ApiResponse> localVarResponse = await ChercherCollabBUAsyncWithHttpInfo(buId, roles); return localVarResponse.Data; } @@ -1128,9 +1305,9 @@ namespace IO.Swagger.ApiCollaborateur /// /// 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 filtrer les collaborateurs référents (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) /// Task of ApiResponse (List<Collaborateur>) - public async System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, bool? referent = null) + public async System.Threading.Tasks.Task>> ChercherCollabBUAsyncWithHttpInfo (long? buId, List roles = null) { // verify the required parameter 'buId' is set if (buId == null) @@ -1158,7 +1335,7 @@ namespace IO.Swagger.ApiCollaborateur localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (buId != null) localVarPathParams.Add("buId", this.Configuration.ApiClient.ParameterToString(buId)); // path parameter - if (referent != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "referent", referent)); // query parameter + 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, @@ -1441,7 +1618,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -1453,7 +1630,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -1506,7 +1683,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -1519,7 +1696,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// rechercher tous les collaborateurs d'un référent Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit + /// 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é @@ -1571,6 +1748,530 @@ namespace IO.Swagger.ApiCollaborateur (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); + 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 (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); + 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 (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); + 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/{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 (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); + 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/{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 (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); + 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 (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); + 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 (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); + 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/{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 (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); + 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/{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 (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 /// diff --git a/EPAServeur/ApiCollaborateur/PeriodeDessaiApi.cs b/EPAServeur/ApiCollaborateur/PeriodeDessaiApi.cs index 61ccaee..18aa2ac 100644 --- a/EPAServeur/ApiCollaborateur/PeriodeDessaiApi.cs +++ b/EPAServeur/ApiCollaborateur/PeriodeDessaiApi.cs @@ -20,11 +20,11 @@ namespace IO.Swagger.ApiCollaborateur /// /// Represents a collection of functions to interact with the API endpoints /// - public interface IPeriodeDessaiApi : IApiAccessor + public interface IPeridodeDessaiApi : IApiAccessor { #region Synchronous Operations /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -36,7 +36,7 @@ namespace IO.Swagger.ApiCollaborateur void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -47,7 +47,7 @@ namespace IO.Swagger.ApiCollaborateur /// ApiResponse of Object(void) ApiResponse Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -59,7 +59,7 @@ namespace IO.Swagger.ApiCollaborateur void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -70,7 +70,7 @@ namespace IO.Swagger.ApiCollaborateur /// ApiResponse of Object(void) ApiResponse Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai + /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -82,7 +82,7 @@ namespace IO.Swagger.ApiCollaborateur void MajPE (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai + /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -93,7 +93,7 @@ namespace IO.Swagger.ApiCollaborateur /// ApiResponse of Object(void) ApiResponse MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai en cours + /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -105,7 +105,7 @@ namespace IO.Swagger.ApiCollaborateur void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai en cours + /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -118,7 +118,7 @@ namespace IO.Swagger.ApiCollaborateur #endregion Synchronous Operations #region Asynchronous Operations /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -130,7 +130,7 @@ namespace IO.Swagger.ApiCollaborateur System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -141,7 +141,7 @@ namespace IO.Swagger.ApiCollaborateur /// Task of ApiResponse System.Threading.Tasks.Task> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -153,7 +153,7 @@ namespace IO.Swagger.ApiCollaborateur System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour la première partie de la periode d'essai + /// mettre à jour la première partie de la péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -164,7 +164,7 @@ namespace IO.Swagger.ApiCollaborateur /// Task of ApiResponse System.Threading.Tasks.Task> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai + /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -176,7 +176,7 @@ namespace IO.Swagger.ApiCollaborateur System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai + /// mettre à jour une péridode d'essai /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -187,7 +187,7 @@ namespace IO.Swagger.ApiCollaborateur /// Task of ApiResponse System.Threading.Tasks.Task> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai en cours + /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -199,7 +199,7 @@ namespace IO.Swagger.ApiCollaborateur System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); /// - /// mettre à jour une periode d'essai en cours + /// mettre à jour une péridode d'essai en cours /// /// /// La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 @@ -215,7 +215,7 @@ namespace IO.Swagger.ApiCollaborateur /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class PeriodeDessaiApi : IPeriodeDessaiApi + public partial class PeriodeDessaiApi : IPeridodeDessaiApi { private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; @@ -321,7 +321,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -333,7 +333,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -343,7 +343,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PE"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->Maj1PE"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -395,7 +395,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -408,7 +408,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -418,7 +418,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PE"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->Maj1PE"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -470,7 +470,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -482,7 +482,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -492,7 +492,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PEPatch"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->Maj1PEPatch"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -544,7 +544,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -557,7 +557,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour la première partie de la periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour la première partie de la péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -567,7 +567,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PEPatch"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->Maj1PEPatch"); var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -619,7 +619,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -631,7 +631,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -641,7 +641,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPE"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->MajPE"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -693,7 +693,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -706,7 +706,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -716,7 +716,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPE"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->MajPE"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -768,7 +768,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -780,7 +780,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -790,7 +790,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPEPatch"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->MajPEPatch"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); @@ -842,7 +842,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -855,7 +855,7 @@ namespace IO.Swagger.ApiCollaborateur } /// - /// mettre à jour une periode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 + /// mettre à jour une péridode d'essai en cours La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 /// /// Thrown when fails to make API call /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché @@ -865,7 +865,7 @@ namespace IO.Swagger.ApiCollaborateur { // verify the required parameter 'collabId' is set if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPEPatch"); + throw new ApiException(400, "Missing required parameter 'collabId' when calling PeridodeDessaiApi->MajPEPatch"); var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPathParams = new Dictionary(); diff --git a/EPAServeur/ApiCollaborateur/ReferentApi.cs b/EPAServeur/ApiCollaborateur/ReferentApi.cs deleted file mode 100644 index 753673e..0000000 --- a/EPAServeur/ApiCollaborateur/ReferentApi.cs +++ /dev/null @@ -1,1383 +0,0 @@ -/* - * 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 IReferentApi : IApiAccessor - { - #region Synchronous Operations - /// - /// 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é - /// Referent - Referent ChercherRefActuelCollabId (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 Referent - ApiResponse ChercherRefActuelCollabIdWithHttpInfo (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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Referent - Referent ChercherRefActuelCollabMail (string mailApside); - - /// - /// 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// ApiResponse of Referent - ApiResponse ChercherRefActuelCollabMailWithHttpInfo (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<Referent> - 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<Referent> - 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<Referent> - 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<Referent> - ApiResponse> ChercherRefCollabMailWithHttpInfo (string mailApside); - /// - /// rechercher le référent par son id - /// - /// - /// rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Referent - Referent ChercherRefId (Guid? refId); - - /// - /// rechercher le référent par son id - /// - /// - /// rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// ApiResponse of Referent - ApiResponse ChercherRefIdWithHttpInfo (Guid? refId); - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Referent - Referent ChercherRefSuiviParDateCollabId (Guid? collabId, string date); - - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// ApiResponse of Referent - ApiResponse ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date); - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Referent - Referent ChercherRefSuiviParDateCollabMail (string mailApside, string date); - - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// ApiResponse of Referent - ApiResponse ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date); - #endregion Synchronous Operations - #region Asynchronous Operations - /// - /// 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 Referent - System.Threading.Tasks.Task ChercherRefActuelCollabIdAsync (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 (Referent) - System.Threading.Tasks.Task> ChercherRefActuelCollabIdAsyncWithHttpInfo (Guid? collabId); - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Task of Referent - System.Threading.Tasks.Task ChercherRefActuelCollabMailAsync (string mailApside); - - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Task of ApiResponse (Referent) - System.Threading.Tasks.Task> ChercherRefActuelCollabMailAsyncWithHttpInfo (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<Referent> - 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<Referent>) - 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<Referent> - 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<Referent>) - System.Threading.Tasks.Task>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside); - /// - /// rechercher le référent par son id - /// - /// - /// rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Task of Referent - System.Threading.Tasks.Task ChercherRefIdAsync (Guid? refId); - - /// - /// rechercher le référent par son id - /// - /// - /// rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Task of ApiResponse (Referent) - System.Threading.Tasks.Task> ChercherRefIdAsyncWithHttpInfo (Guid? refId); - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of Referent - System.Threading.Tasks.Task ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date); - - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of ApiResponse (Referent) - System.Threading.Tasks.Task> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date); - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of Referent - System.Threading.Tasks.Task ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date); - - /// - /// rechercher le référent qui a le plus suivi - /// - /// - /// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of ApiResponse (Referent) - System.Threading.Tasks.Task> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date); - #endregion Asynchronous Operations - } - - /// - /// Represents a collection of functions to interact with the API endpoints - /// - public partial class ReferentApi : IReferentApi - { - private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; - - /// - /// Initializes a new instance of the class. - /// - /// - public ReferentApi(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 ReferentApi() - { - 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 ReferentApi(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); - } - - /// - /// 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é - /// Referent - public Referent ChercherRefActuelCollabId (Guid? collabId) - { - ApiResponse localVarResponse = ChercherRefActuelCollabIdWithHttpInfo(collabId); - 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 Referent - public ApiResponse< Referent > ChercherRefActuelCollabIdWithHttpInfo (Guid? collabId) - { - // verify the required parameter 'collabId' is set - if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling ReferentApi->ChercherRefActuelCollabId"); - - var localVarPath = "/referents/collab/{collabId}/actuel"; - 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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefActuelCollabId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// 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 Referent - public async System.Threading.Tasks.Task ChercherRefActuelCollabIdAsync (Guid? collabId) - { - ApiResponse localVarResponse = await ChercherRefActuelCollabIdAsyncWithHttpInfo(collabId); - 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 (Referent) - public async System.Threading.Tasks.Task> ChercherRefActuelCollabIdAsyncWithHttpInfo (Guid? collabId) - { - // verify the required parameter 'collabId' is set - if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling ReferentApi->ChercherRefActuelCollabId"); - - var localVarPath = "/referents/collab/{collabId}/actuel"; - 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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefActuelCollabId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Referent - public Referent ChercherRefActuelCollabMail (string mailApside) - { - ApiResponse localVarResponse = ChercherRefActuelCollabMailWithHttpInfo(mailApside); - return localVarResponse.Data; - } - - /// - /// rechercher le référent qui a le plus suivi 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// ApiResponse of Referent - public ApiResponse< Referent > ChercherRefActuelCollabMailWithHttpInfo (string mailApside) - { - // verify the required parameter 'mailApside' is set - if (mailApside == null) - throw new ApiException(400, "Missing required parameter 'mailApside' when calling ReferentApi->ChercherRefActuelCollabMail"); - - var localVarPath = "/referents/collab/{mailApside}/actuel"; - 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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefActuelCollabMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Task of Referent - public async System.Threading.Tasks.Task ChercherRefActuelCollabMailAsync (string mailApside) - { - ApiResponse localVarResponse = await ChercherRefActuelCollabMailAsyncWithHttpInfo(mailApside); - return localVarResponse.Data; - - } - - /// - /// rechercher le référent qui a le plus suivi 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 le mail apside du collaborateur recherché /!\\ \"@\" doit être changé en \"%40\" /!\\ - /// Task of ApiResponse (Referent) - public async System.Threading.Tasks.Task> ChercherRefActuelCollabMailAsyncWithHttpInfo (string mailApside) - { - // verify the required parameter 'mailApside' is set - if (mailApside == null) - throw new ApiException(400, "Missing required parameter 'mailApside' when calling ReferentApi->ChercherRefActuelCollabMail"); - - var localVarPath = "/referents/collab/{mailApside}/actuel"; - 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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefActuelCollabMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// 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<Referent> - public List ChercherRefCollabId (Guid? collabId) - { - ApiResponse> localVarResponse = ChercherRefCollabIdWithHttpInfo(collabId); - 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<Referent> - 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 ReferentApi->ChercherRefCollabId"); - - var localVarPath = "/referents/collab/{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 (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<Referent> - public async System.Threading.Tasks.Task> ChercherRefCollabIdAsync (Guid? collabId) - { - ApiResponse> localVarResponse = await ChercherRefCollabIdAsyncWithHttpInfo(collabId); - 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<Referent>) - 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 ReferentApi->ChercherRefCollabId"); - - var localVarPath = "/referents/collab/{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 (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<Referent> - public List ChercherRefCollabMail (string mailApside) - { - ApiResponse> localVarResponse = ChercherRefCollabMailWithHttpInfo(mailApside); - 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<Referent> - 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 ReferentApi->ChercherRefCollabMail"); - - var localVarPath = "/referents/collab/{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 (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<Referent> - public async System.Threading.Tasks.Task> ChercherRefCollabMailAsync (string mailApside) - { - ApiResponse> localVarResponse = await ChercherRefCollabMailAsyncWithHttpInfo(mailApside); - 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<Referent>) - 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 ReferentApi->ChercherRefCollabMail"); - - var localVarPath = "/referents/collab/{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 (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 le référent par son id rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Referent - public Referent ChercherRefId (Guid? refId) - { - ApiResponse localVarResponse = ChercherRefIdWithHttpInfo(refId); - return localVarResponse.Data; - } - - /// - /// rechercher le référent par son id rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// ApiResponse of Referent - public ApiResponse< Referent > ChercherRefIdWithHttpInfo (Guid? refId) - { - // verify the required parameter 'refId' is set - if (refId == null) - throw new ApiException(400, "Missing required parameter 'refId' when calling ReferentApi->ChercherRefId"); - - var localVarPath = "/referents/{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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent par son id rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Task of Referent - public async System.Threading.Tasks.Task ChercherRefIdAsync (Guid? refId) - { - ApiResponse localVarResponse = await ChercherRefIdAsyncWithHttpInfo(refId); - return localVarResponse.Data; - - } - - /// - /// rechercher le référent par son id rechercher le référent correspondant à l'id - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du référent recherché - /// Task of ApiResponse (Referent) - public async System.Threading.Tasks.Task> ChercherRefIdAsyncWithHttpInfo (Guid? refId) - { - // verify the required parameter 'refId' is set - if (refId == null) - throw new ApiException(400, "Missing required parameter 'refId' when calling ReferentApi->ChercherRefId"); - - var localVarPath = "/referents/{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 (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Referent - public Referent ChercherRefSuiviParDateCollabId (Guid? collabId, string date) - { - ApiResponse localVarResponse = ChercherRefSuiviParDateCollabIdWithHttpInfo(collabId, date); - return localVarResponse.Data; - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// ApiResponse of Referent - public ApiResponse< Referent > ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date) - { - // verify the required parameter 'collabId' is set - if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling ReferentApi->ChercherRefSuiviParDateCollabId"); - // verify the required parameter 'date' is set - if (date == null) - throw new ApiException(400, "Missing required parameter 'date' when calling ReferentApi->ChercherRefSuiviParDateCollabId"); - - var localVarPath = "/referents/collab/{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 - if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of Referent - public async System.Threading.Tasks.Task ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date) - { - ApiResponse localVarResponse = await ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo(collabId, date); - return localVarResponse.Data; - - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant - /// - /// Thrown when fails to make API call - /// Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of ApiResponse (Referent) - public async System.Threading.Tasks.Task> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date) - { - // verify the required parameter 'collabId' is set - if (collabId == null) - throw new ApiException(400, "Missing required parameter 'collabId' when calling ReferentApi->ChercherRefSuiviParDateCollabId"); - // verify the required parameter 'date' is set - if (date == null) - throw new ApiException(400, "Missing required parameter 'date' when calling ReferentApi->ChercherRefSuiviParDateCollabId"); - - var localVarPath = "/referents/collab/{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 - if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Referent - public Referent ChercherRefSuiviParDateCollabMail (string mailApside, string date) - { - ApiResponse localVarResponse = ChercherRefSuiviParDateCollabMailWithHttpInfo(mailApside, date); - return localVarResponse.Data; - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// ApiResponse of Referent - public ApiResponse< Referent > ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date) - { - // verify the required parameter 'mailApside' is set - if (mailApside == null) - throw new ApiException(400, "Missing required parameter 'mailApside' when calling ReferentApi->ChercherRefSuiviParDateCollabMail"); - // verify the required parameter 'date' is set - if (date == null) - throw new ApiException(400, "Missing required parameter 'date' when calling ReferentApi->ChercherRefSuiviParDateCollabMail"); - - var localVarPath = "/referents/collab/{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 - if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of Referent - public async System.Threading.Tasks.Task ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date) - { - ApiResponse localVarResponse = await ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo(mailApside, date); - return localVarResponse.Data; - - } - - /// - /// rechercher le référent qui a le plus suivi rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à 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\" /!\\ - /// Ce paramêtre permet de renseigner la date recherchée - /// Task of ApiResponse (Referent) - public async System.Threading.Tasks.Task> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date) - { - // verify the required parameter 'mailApside' is set - if (mailApside == null) - throw new ApiException(400, "Missing required parameter 'mailApside' when calling ReferentApi->ChercherRefSuiviParDateCollabMail"); - // verify the required parameter 'date' is set - if (date == null) - throw new ApiException(400, "Missing required parameter 'date' when calling ReferentApi->ChercherRefSuiviParDateCollabMail"); - - var localVarPath = "/referents/collab/{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 - if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter - - // make the HTTP request - IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, - Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, - localVarPathParams, localVarHttpContentType); - - int localVarStatusCode = (int) localVarResponse.StatusCode; - - if (ExceptionFactory != null) - { - Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse); - if (exception != null) throw exception; - } - - return new ApiResponse(localVarStatusCode, - localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), - (Referent) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Referent))); - } - - } -} diff --git a/EPAServeur/ClientCollaborateur/ApiClient.cs b/EPAServeur/ClientCollaborateur/ApiClient.cs index 4099a83..09dc3d6 100644 --- a/EPAServeur/ClientCollaborateur/ApiClient.cs +++ b/EPAServeur/ClientCollaborateur/ApiClient.cs @@ -25,7 +25,7 @@ namespace IO.Swagger.ClientCollaborateur /// /// API client is mainly responsible for making the HTTP call to the API backend. /// - public partial class ApiClient + public partial class ApiClient { private JsonSerializerSettings serializerSettings = new JsonSerializerSettings { @@ -53,12 +53,12 @@ namespace IO.Swagger.ClientCollaborateur public ApiClient() { Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; - RestClient = new RestClient("https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1"); + RestClient = new RestClient("http://localhost:3000"); } /// /// Initializes a new instance of the class - /// with default base path (https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1). + /// with default base path (http://localhost:3000). /// /// An instance of Configuration. public ApiClient(Configuration config) @@ -75,7 +75,7 @@ namespace IO.Swagger.ClientCollaborateur /// The base path. public ApiClient(String basePath = "http://localhost:3000") { - if (String.IsNullOrEmpty(basePath)) + if (String.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); RestClient = new RestClient(basePath); @@ -116,23 +116,23 @@ namespace IO.Swagger.ClientCollaborateur var request = new RestRequest(path, method); // add path parameter, if any - foreach(var param in pathParams) + foreach (var param in pathParams) request.AddParameter(param.Key, param.Value, ParameterType.UrlSegment); // add header parameter, if any - foreach(var param in headerParams) + foreach (var param in headerParams) request.AddHeader(param.Key, param.Value); // add query parameter, if any - foreach(var param in queryParams) + foreach (var param in queryParams) request.AddQueryParameter(param.Key, param.Value); // add form parameter, if any - foreach(var param in formParams) + foreach (var param in formParams) request.AddParameter(param.Key, param.Value); // add file parameter, if any - foreach(var param in fileParams) + foreach (var param in fileParams) { request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentLength, param.Value.ContentType); } @@ -169,7 +169,7 @@ namespace IO.Swagger.ClientCollaborateur pathParams, contentType); // set timeout - + RestClient.Timeout = Configuration.Timeout; // set user agent RestClient.UserAgent = Configuration.UserAgent; @@ -178,7 +178,7 @@ namespace IO.Swagger.ClientCollaborateur var response = RestClient.Execute(request); InterceptResponse(request, response); - return (Object) response; + return (Object)response; } /// /// Makes the asynchronous HTTP request. @@ -204,6 +204,7 @@ namespace IO.Swagger.ClientCollaborateur pathParams, contentType); InterceptRequest(request); var response = await RestClient.ExecuteTaskAsync(request); + //var response = await RestClient.ExecuteAsync(request); InterceptResponse(request, response); return (Object)response; } @@ -246,13 +247,13 @@ namespace IO.Swagger.ClientCollaborateur // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return ((DateTime)obj).ToString (Configuration.DateTimeFormat); + return ((DateTime)obj).ToString(Configuration.DateTimeFormat); else if (obj is DateTimeOffset) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 - return ((DateTimeOffset)obj).ToString (Configuration.DateTimeFormat); + return ((DateTimeOffset)obj).ToString(Configuration.DateTimeFormat); else if (obj is IList) { var flattenedString = new StringBuilder(); @@ -265,7 +266,7 @@ namespace IO.Swagger.ClientCollaborateur return flattenedString.ToString(); } else - return Convert.ToString (obj); + return Convert.ToString(obj); } /// @@ -308,7 +309,7 @@ namespace IO.Swagger.ClientCollaborateur if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object { - return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); + return DateTime.Parse(response.Content, null, System.Globalization.DateTimeStyles.RoundtripKind); } if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type @@ -427,7 +428,7 @@ namespace IO.Swagger.ClientCollaborateur /// Byte array public static byte[] ReadAsBytes(Stream inputStream) { - byte[] buf = new byte[16*1024]; + byte[] buf = new byte[16 * 1024]; using (MemoryStream ms = new MemoryStream()) { int count; diff --git a/EPAServeur/ModelCollaborateur/Collaborateur.cs b/EPAServeur/ModelCollaborateur/Collaborateur.cs index ab444fd..b0482ba 100644 --- a/EPAServeur/ModelCollaborateur/Collaborateur.cs +++ b/EPAServeur/ModelCollaborateur/Collaborateur.cs @@ -29,16 +29,6 @@ namespace IO.Swagger.ModelCollaborateur [DataContract] public partial class Collaborateur : IEquatable, IValidatableObject { - /// - /// Gets or Sets Genre - /// - [DataMember(Name="genre", EmitDefaultValue=false)] - public Genre? Genre { get; set; } - /// - /// Gets or Sets Statut - /// - [DataMember(Name="statut", EmitDefaultValue=false)] - public Statut? Statut { get; set; } /// /// Initializes a new instance of the class. /// @@ -62,7 +52,7 @@ namespace IO.Swagger.ModelCollaborateur /// periodeEssai. /// dateArrivee. /// dateDepart. - public Collaborateur(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), Genre? genre = default(Genre?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), Adresse adresse = default(Adresse), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), Statut? statut = default(Statut?), List fonctions = default(List), BU businessUnit = default(BU), Referent referent = default(Referent), Collaborateur parrain = default(Collaborateur), List projets = default(List), List technologiesPref = default(List), List periodeEssai = default(List), DateTime? dateArrivee = default(DateTime?), DateTime? dateDepart = default(DateTime?)) + public Collaborateur(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), Genre genre = default(Genre), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), Adresse adresse = default(Adresse), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), Statut statut = default(Statut), List fonctions = default(List), BU businessUnit = default(BU), Collaborateur referent = default(Collaborateur), Collaborateur parrain = default(Collaborateur), List projets = default(List), List technologiesPref = default(List), List periodeEssai = default(List), DateTime? dateArrivee = default(DateTime?), DateTime? dateDepart = default(DateTime?)) { // to ensure "id" is required (not null) if (id == null) @@ -128,6 +118,11 @@ namespace IO.Swagger.ModelCollaborateur [DataMember(Name="prenom", EmitDefaultValue=false)] public string Prenom { get; set; } + /// + /// Gets or Sets Genre + /// + [DataMember(Name="genre", EmitDefaultValue=false)] + public Genre Genre { get; set; } /// /// Gets or Sets DateNaissance @@ -166,6 +161,11 @@ namespace IO.Swagger.ModelCollaborateur [DataMember(Name="mailApside", EmitDefaultValue=false)] public string MailApside { get; set; } + /// + /// Gets or Sets Statut + /// + [DataMember(Name="statut", EmitDefaultValue=false)] + public Statut Statut { get; set; } /// /// Gets or Sets Fonctions @@ -183,7 +183,7 @@ namespace IO.Swagger.ModelCollaborateur /// Gets or Sets Referent /// [DataMember(Name="referent", EmitDefaultValue=false)] - public Referent Referent { get; set; } + public Collaborateur Referent { get; set; } /// /// Gets or Sets Parrain diff --git a/EPAServeur/ModelCollaborateur/NouvellePeriodeEssai.cs b/EPAServeur/ModelCollaborateur/NouvellePeriodeEssai.cs index 46b7e1d..eef7f64 100644 --- a/EPAServeur/ModelCollaborateur/NouvellePeriodeEssai.cs +++ b/EPAServeur/ModelCollaborateur/NouvellePeriodeEssai.cs @@ -29,11 +29,6 @@ namespace IO.Swagger.ModelCollaborateur [DataContract] public partial class NouvellePeriodeEssai : IEquatable, IValidatableObject { - /// - /// Gets or Sets IssuePE - /// - [DataMember(Name="issuePE", EmitDefaultValue=false)] - public IssuePE? IssuePE { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,7 +37,7 @@ namespace IO.Swagger.ModelCollaborateur /// dateFinEffect. /// commentaire. /// issuePE. - public NouvellePeriodeEssai(DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE? issuePE = default(IssuePE?)) + public NouvellePeriodeEssai(DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE issuePE = default(IssuePE)) { this.DateDebut = dateDebut; this.DateFinPrev = dateFinPrev; @@ -78,6 +73,11 @@ namespace IO.Swagger.ModelCollaborateur [DataMember(Name="commentaire", EmitDefaultValue=false)] public string Commentaire { get; set; } + /// + /// Gets or Sets IssuePE + /// + [DataMember(Name="issuePE", EmitDefaultValue=false)] + public IssuePE IssuePE { get; set; } /// /// Returns the string presentation of the object diff --git a/EPAServeur/ModelCollaborateur/PeriodeEssai.cs b/EPAServeur/ModelCollaborateur/PeriodeEssai.cs index 3d7ab58..78d5cbc 100644 --- a/EPAServeur/ModelCollaborateur/PeriodeEssai.cs +++ b/EPAServeur/ModelCollaborateur/PeriodeEssai.cs @@ -29,11 +29,6 @@ namespace IO.Swagger.ModelCollaborateur [DataContract] public partial class PeriodeEssai : IEquatable, IValidatableObject { - /// - /// Gets or Sets IssuePE - /// - [DataMember(Name="issuePE", EmitDefaultValue=false)] - public IssuePE? IssuePE { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,7 +38,7 @@ namespace IO.Swagger.ModelCollaborateur /// dateFinEffect. /// commentaire. /// issuePE. - public PeriodeEssai(long? id = default(long?), DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE? issuePE = default(IssuePE?)) + public PeriodeEssai(long? id = default(long?), DateTime? dateDebut = default(DateTime?), DateTime? dateFinPrev = default(DateTime?), DateTime? dateFinEffect = default(DateTime?), string commentaire = default(string), IssuePE issuePE = default(IssuePE)) { this.Id = id; this.DateDebut = dateDebut; @@ -86,6 +81,11 @@ namespace IO.Swagger.ModelCollaborateur [DataMember(Name="commentaire", EmitDefaultValue=false)] public string Commentaire { get; set; } + /// + /// Gets or Sets IssuePE + /// + [DataMember(Name="issuePE", EmitDefaultValue=false)] + public IssuePE IssuePE { get; set; } /// /// Returns the string presentation of the object diff --git a/EPAServeur/ModelCollaborateur/Referent.cs b/EPAServeur/ModelCollaborateur/Referent.cs deleted file mode 100644 index 0cc0010..0000000 --- a/EPAServeur/ModelCollaborateur/Referent.cs +++ /dev/null @@ -1,234 +0,0 @@ -/* - * 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.Linq; -using System.IO; -using System.Text; -using System.Text.RegularExpressions; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.Serialization; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using System.ComponentModel.DataAnnotations; -using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter; - -namespace IO.Swagger.ModelCollaborateur -{ - /// - /// Referent - /// - [DataContract] - public partial class Referent : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - /// id (required). - /// nom (required). - /// prenom (required). - /// mailApside (required). - /// dateDebut. - /// dateFin. - public Referent(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), string mailApside = default(string), DateTime? dateDebut = default(DateTime?), DateTime? dateFin = default(DateTime?)) - { - // to ensure "id" is required (not null) - if (id == null) - { - throw new InvalidDataException("id is a required property for Referent and cannot be null"); - } - else - { - this.Id = id; - } - // to ensure "nom" is required (not null) - if (nom == null) - { - throw new InvalidDataException("nom is a required property for Referent and cannot be null"); - } - else - { - this.Nom = nom; - } - // to ensure "prenom" is required (not null) - if (prenom == null) - { - throw new InvalidDataException("prenom is a required property for Referent and cannot be null"); - } - else - { - this.Prenom = prenom; - } - // to ensure "mailApside" is required (not null) - if (mailApside == null) - { - throw new InvalidDataException("mailApside is a required property for Referent and cannot be null"); - } - else - { - this.MailApside = mailApside; - } - this.DateDebut = dateDebut; - this.DateFin = dateFin; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name="id", EmitDefaultValue=false)] - public Guid? Id { get; set; } - - /// - /// Gets or Sets Nom - /// - [DataMember(Name="nom", EmitDefaultValue=false)] - public string Nom { get; set; } - - /// - /// Gets or Sets Prenom - /// - [DataMember(Name="prenom", EmitDefaultValue=false)] - public string Prenom { get; set; } - - /// - /// Gets or Sets MailApside - /// - [DataMember(Name="mailApside", EmitDefaultValue=false)] - public string MailApside { get; set; } - - /// - /// Gets or Sets DateDebut - /// - [DataMember(Name="dateDebut", EmitDefaultValue=false)] - public DateTime? DateDebut { get; set; } - - /// - /// Gets or Sets DateFin - /// - [DataMember(Name="dateFin", EmitDefaultValue=false)] - public DateTime? DateFin { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - var sb = new StringBuilder(); - sb.Append("class Referent {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Nom: ").Append(Nom).Append("\n"); - sb.Append(" Prenom: ").Append(Prenom).Append("\n"); - sb.Append(" MailApside: ").Append(MailApside).Append("\n"); - sb.Append(" DateDebut: ").Append(DateDebut).Append("\n"); - sb.Append(" DateFin: ").Append(DateFin).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return JsonConvert.SerializeObject(this, Formatting.Indented); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as Referent); - } - - /// - /// Returns true if Referent instances are equal - /// - /// Instance of Referent to be compared - /// Boolean - public bool Equals(Referent input) - { - if (input == null) - return false; - - return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Nom == input.Nom || - (this.Nom != null && - this.Nom.Equals(input.Nom)) - ) && - ( - this.Prenom == input.Prenom || - (this.Prenom != null && - this.Prenom.Equals(input.Prenom)) - ) && - ( - this.MailApside == input.MailApside || - (this.MailApside != null && - this.MailApside.Equals(input.MailApside)) - ) && - ( - this.DateDebut == input.DateDebut || - (this.DateDebut != null && - this.DateDebut.Equals(input.DateDebut)) - ) && - ( - this.DateFin == input.DateFin || - (this.DateFin != null && - this.DateFin.Equals(input.DateFin)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - if (this.Nom != null) - hashCode = hashCode * 59 + this.Nom.GetHashCode(); - if (this.Prenom != null) - hashCode = hashCode * 59 + this.Prenom.GetHashCode(); - if (this.MailApside != null) - hashCode = hashCode * 59 + this.MailApside.GetHashCode(); - if (this.DateDebut != null) - hashCode = hashCode * 59 + this.DateDebut.GetHashCode(); - if (this.DateFin != null) - hashCode = hashCode * 59 + this.DateFin.GetHashCode(); - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } -} diff --git a/EPAServeur/Services/CollaborateurService.cs b/EPAServeur/Services/CollaborateurService.cs index 37137b6..30c3d92 100644 --- a/EPAServeur/Services/CollaborateurService.cs +++ b/EPAServeur/Services/CollaborateurService.cs @@ -106,6 +106,7 @@ namespace EPAServeur.Services /// Renvoie la liste des collaborateurs en fonction des paramètres public IEnumerable GetCollaborateurs(bool? asc, int? numPage, int? parPage, List fonctions, long? idAgence, long? idBU, string texte, string tri) { + if (texte == null) texte = ""; else @@ -405,7 +406,7 @@ namespace EPAServeur.Services /// /// referent à transformer en referentDTO /// Renvoie la transformation DTO du referent - private ReferentDTO GetReferentDTO(Referent referent) + private ReferentDTO GetReferentDTO(Collaborateur referent) { if (referent == null) return null; diff --git a/EPAServeur/Services/ReferentService.cs b/EPAServeur/Services/ReferentService.cs index dcabe51..605d559 100644 --- a/EPAServeur/Services/ReferentService.cs +++ b/EPAServeur/Services/ReferentService.cs @@ -13,14 +13,14 @@ namespace EPAServeur.Services public class ReferentService : IReferentService { #region Variables - private readonly IReferentApi referentApi; + // private readonly IReferentApi referentApi; private readonly ICollaborateurApi collaborateurApi; #endregion #region Contructeurs - public ReferentService(IReferentApi _referentApi, ICollaborateurApi _collaborateurApi) + public ReferentService(ICollaborateurApi _collaborateurApi) { - referentApi = _referentApi; + //referentApi = _referentApi; collaborateurApi = _collaborateurApi; } @@ -35,7 +35,7 @@ namespace EPAServeur.Services /// public ReferentDTO GetReferentById(Guid? idReferent) { - Referent referent = referentApi.ChercherRefId(idReferent); + Collaborateur referent = collaborateurApi.ChercherCollabId(idReferent); if (referent == null) throw new ReferentNotFoundException(); @@ -50,7 +50,7 @@ namespace EPAServeur.Services /// public async Task GetReferentByIdAsync(Guid? idReferent) { - Referent referent = await referentApi.ChercherRefIdAsync(idReferent); + Collaborateur referent = await collaborateurApi.ChercherCollabIdAsync(idReferent); if (referent == null) throw new ReferentNotFoundException(); @@ -65,7 +65,7 @@ namespace EPAServeur.Services /// public ReferentDTO GetReferentActuelCollaborateur(Guid? idCollaborateur) { - Referent referent = referentApi.ChercherRefActuelCollabId(idCollaborateur); + Collaborateur referent = collaborateurApi.ChercherRefActuelId(idCollaborateur); if (referent == null) throw new ReferentNotFoundException(); @@ -80,7 +80,7 @@ namespace EPAServeur.Services /// public async Task GetReferentActuelCollaborateurAsync(Guid? idCollaborateur) { - Referent referent = await referentApi.ChercherRefActuelCollabIdAsync(idCollaborateur); + Collaborateur referent = await collaborateurApi.ChercherRefActuelIdAsync(idCollaborateur); if (referent == null) throw new ReferentNotFoundException(); @@ -241,7 +241,7 @@ namespace EPAServeur.Services /// public IEnumerable GetReferentsByCollaborateur(bool? asc, Guid? idCollaborateur, int? numPage, int? parPAge, string texte, string tri) { - IEnumerable referents; + IEnumerable referents; IEnumerable referentDTOs; if (texte == null) @@ -260,7 +260,7 @@ namespace EPAServeur.Services if (collaborateur == null) throw new CollaborateurNotFoundException(); - referents = referentApi.ChercherRefCollabId(idCollaborateur); + referents = collaborateurApi.ChercherRefCollabId(idCollaborateur); if (referents == null) return new List(); @@ -282,7 +282,7 @@ namespace EPAServeur.Services /// public async Task> GetReferentsByCollaborateurAsync(bool? asc, Guid? idCollaborateur, int? numPage, int? parPAge, string texte, string tri) { - IEnumerable referents; + IEnumerable referents; IEnumerable referentDTOs; if (texte == null) @@ -301,7 +301,7 @@ namespace EPAServeur.Services if (collaborateur == null) throw new CollaborateurNotFoundException(); - referents = await referentApi.ChercherRefCollabIdAsync(idCollaborateur); + referents = await collaborateurApi.ChercherRefCollabIdAsync(idCollaborateur); if (referents == null) return new List(); @@ -384,7 +384,7 @@ namespace EPAServeur.Services /// /// /// - private ReferentDTO GetReferentDTO(Referent referent) + private ReferentDTO GetReferentDTO(Collaborateur referent) { if (referent == null) return null; @@ -398,24 +398,7 @@ namespace EPAServeur.Services return referentDTO; } - /// - /// Récupère un objet ReferentDTO en fonction d'un objet Collaborateur - /// - /// - /// - private ReferentDTO GetReferentDTO(Collaborateur collaborateur) - { - if (collaborateur == null) - return null; - ReferentDTO referentDTO = new ReferentDTO() - { - Id = collaborateur.Id, - Prenom = collaborateur.Prenom, - Nom = collaborateur.Nom, - MailApside = collaborateur.MailApside - }; - return referentDTO; - } + #endregion #region DTO to Object diff --git a/EPAServeur/Startup.cs b/EPAServeur/Startup.cs index dee1899..515adf4 100644 --- a/EPAServeur/Startup.cs +++ b/EPAServeur/Startup.cs @@ -115,7 +115,6 @@ namespace EPAServeur //API Collaborateurs services.AddScoped(); services.AddScoped(); - services.AddScoped();