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

1383 lines
80 KiB

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