/* * 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 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 Referent ChercherRefActuelCollabMail (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\" /!\\ /// 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 = "/referent/{refId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/json" }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (refId != null) localVarPathParams.Add("refId", this.Configuration.ApiClient.ParameterToString(refId)); // path parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (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 = "/referent/{refId}"; var localVarPathParams = new Dictionary(); var localVarQueryParams = new List>(); var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); var localVarFileParams = new Dictionary(); Object localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/json" }; String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (refId != null) localVarPathParams.Add("refId", this.Configuration.ApiClient.ParameterToString(refId)); // path parameter // make the HTTP request IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath, Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams, localVarPathParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (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))); } } }