commit
79e8a86071
File diff suppressed because it is too large
Load Diff
@ -1,864 +0,0 @@ |
|||||||
/* |
|
||||||
* Service Collaborateur API |
|
||||||
* |
|
||||||
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside |
|
||||||
* |
|
||||||
* OpenAPI spec version: 1.1.2 |
|
||||||
* Contact: lilian.gayet@apside-groupe.com |
|
||||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
|
||||||
*/ |
|
||||||
using System; |
|
||||||
using System.Collections.Generic; |
|
||||||
using System.Collections.ObjectModel; |
|
||||||
using System.Linq; |
|
||||||
using RestSharp; |
|
||||||
using IO.Swagger.ClientCollaborateur; |
|
||||||
using IO.Swagger.ModelCollaborateur; |
|
||||||
|
|
||||||
namespace IO.Swagger.ApiCollaborateur |
|
||||||
{ |
|
||||||
/// <summary> |
|
||||||
/// Represents a collection of functions to interact with the API endpoints |
|
||||||
/// </summary> |
|
||||||
public interface IRfrentApi : IApiAccessor |
|
||||||
{ |
|
||||||
#region Synchronous Operations |
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>List<Collaborateur></returns> |
|
||||||
List<Collaborateur> ChercherRefCollabId (Guid? collabId); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>ApiResponse of List<Collaborateur></returns> |
|
||||||
ApiResponse<List<Collaborateur>> ChercherRefCollabIdWithHttpInfo (Guid? collabId); |
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>List<Collaborateur></returns> |
|
||||||
List<Collaborateur> ChercherRefCollabMail (string mailApside); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>ApiResponse of List<Collaborateur></returns> |
|
||||||
ApiResponse<List<Collaborateur>> ChercherRefCollabMailWithHttpInfo (string mailApside); |
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Collaborateur</returns> |
|
||||||
Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>ApiResponse of Collaborateur</returns> |
|
||||||
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date); |
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Collaborateur</returns> |
|
||||||
Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>ApiResponse of Collaborateur</returns> |
|
||||||
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date); |
|
||||||
#endregion Synchronous Operations |
|
||||||
#region Asynchronous Operations |
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>Task of List<Collaborateur></returns> |
|
||||||
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>Task of ApiResponse (List<Collaborateur>)</returns> |
|
||||||
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId); |
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>Task of List<Collaborateur></returns> |
|
||||||
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>Task of ApiResponse (List<Collaborateur>)</returns> |
|
||||||
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside); |
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of Collaborateur</returns> |
|
||||||
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of ApiResponse (Collaborateur)</returns> |
|
||||||
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date); |
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of Collaborateur</returns> |
|
||||||
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date); |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit |
|
||||||
/// </summary> |
|
||||||
/// <remarks> |
|
||||||
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of ApiResponse (Collaborateur)</returns> |
|
||||||
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date); |
|
||||||
#endregion Asynchronous Operations |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// Represents a collection of functions to interact with the API endpoints |
|
||||||
/// </summary> |
|
||||||
public partial class RfrentApi : IRfrentApi |
|
||||||
{ |
|
||||||
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// Initializes a new instance of the <see cref="RfrentApi"/> class. |
|
||||||
/// </summary> |
|
||||||
/// <returns></returns> |
|
||||||
public RfrentApi(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="RfrentApi"/> class |
|
||||||
/// </summary> |
|
||||||
/// <returns></returns> |
|
||||||
public RfrentApi() |
|
||||||
{ |
|
||||||
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; |
|
||||||
|
|
||||||
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory; |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// Initializes a new instance of the <see cref="RfrentApi"/> class |
|
||||||
/// using Configuration object |
|
||||||
/// </summary> |
|
||||||
/// <param name="configuration">An instance of Configuration</param> |
|
||||||
/// <returns></returns> |
|
||||||
public RfrentApi(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 les référents rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>List<Collaborateur></returns> |
|
||||||
public List<Collaborateur> ChercherRefCollabId (Guid? collabId) |
|
||||||
{ |
|
||||||
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabIdWithHttpInfo(collabId); |
|
||||||
return localVarResponse.Data; |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>ApiResponse of List<Collaborateur></returns> |
|
||||||
public ApiResponse< List<Collaborateur> > ChercherRefCollabIdWithHttpInfo (Guid? collabId) |
|
||||||
{ |
|
||||||
// verify the required parameter 'collabId' is set |
|
||||||
if (collabId == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{collabId}/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 (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<Collaborateur>>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>Task of List<Collaborateur></returns> |
|
||||||
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId) |
|
||||||
{ |
|
||||||
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabIdAsyncWithHttpInfo(collabId); |
|
||||||
return localVarResponse.Data; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <returns>Task of ApiResponse (List<Collaborateur>)</returns> |
|
||||||
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId) |
|
||||||
{ |
|
||||||
// verify the required parameter 'collabId' is set |
|
||||||
if (collabId == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{collabId}/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 (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<Collaborateur>>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>List<Collaborateur></returns> |
|
||||||
public List<Collaborateur> ChercherRefCollabMail (string mailApside) |
|
||||||
{ |
|
||||||
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabMailWithHttpInfo(mailApside); |
|
||||||
return localVarResponse.Data; |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>ApiResponse of List<Collaborateur></returns> |
|
||||||
public ApiResponse< List<Collaborateur> > ChercherRefCollabMailWithHttpInfo (string mailApside) |
|
||||||
{ |
|
||||||
// verify the required parameter 'mailApside' is set |
|
||||||
if (mailApside == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>Task of List<Collaborateur></returns> |
|
||||||
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside) |
|
||||||
{ |
|
||||||
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabMailAsyncWithHttpInfo(mailApside); |
|
||||||
return localVarResponse.Data; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher les référents rechercher les référents d'un collaborateur à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <returns>Task of ApiResponse (List<Collaborateur>)</returns> |
|
||||||
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside) |
|
||||||
{ |
|
||||||
// verify the required parameter 'mailApside' is set |
|
||||||
if (mailApside == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Collaborateur</returns> |
|
||||||
public Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date) |
|
||||||
{ |
|
||||||
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabIdWithHttpInfo(collabId, date); |
|
||||||
return localVarResponse.Data; |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>ApiResponse of Collaborateur</returns> |
|
||||||
public ApiResponse< Collaborateur > 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 RfrentApi->ChercherRefSuiviParDateCollabId"); |
|
||||||
// verify the required parameter 'date' is set |
|
||||||
if (date == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of Collaborateur</returns> |
|
||||||
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date) |
|
||||||
{ |
|
||||||
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo(collabId, date); |
|
||||||
return localVarResponse.Data; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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'identifiant du collaborateur recherché</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of ApiResponse (Collaborateur)</returns> |
|
||||||
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> 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 RfrentApi->ChercherRefSuiviParDateCollabId"); |
|
||||||
// verify the required parameter 'date' is set |
|
||||||
if (date == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Collaborateur</returns> |
|
||||||
public Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date) |
|
||||||
{ |
|
||||||
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabMailWithHttpInfo(mailApside, date); |
|
||||||
return localVarResponse.Data; |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>ApiResponse of Collaborateur</returns> |
|
||||||
public ApiResponse< Collaborateur > 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 RfrentApi->ChercherRefSuiviParDateCollabMail"); |
|
||||||
// verify the required parameter 'date' is set |
|
||||||
if (date == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); |
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of Collaborateur</returns> |
|
||||||
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date) |
|
||||||
{ |
|
||||||
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo(mailApside, date); |
|
||||||
return localVarResponse.Data; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
/// <summary> |
|
||||||
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'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é /!\\ \"@\" doit être changé en \"%40\" /!\\</param> |
|
||||||
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param> |
|
||||||
/// <returns>Task of ApiResponse (Collaborateur)</returns> |
|
||||||
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> 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 RfrentApi->ChercherRefSuiviParDateCollabMail"); |
|
||||||
// verify the required parameter 'date' is set |
|
||||||
if (date == null) |
|
||||||
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail"); |
|
||||||
|
|
||||||
var localVarPath = "/collaborateurs/{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<Collaborateur>(localVarStatusCode, |
|
||||||
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)), |
|
||||||
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur))); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,234 @@ |
|||||||
|
/* |
||||||
|
* Service Collaborateur API |
||||||
|
* |
||||||
|
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside |
||||||
|
* |
||||||
|
* OpenAPI spec version: 1.1.3 |
||||||
|
* Contact: lilian.gayet@apside-groupe.com |
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git |
||||||
|
*/ |
||||||
|
using System; |
||||||
|
using System.Linq; |
||||||
|
using System.IO; |
||||||
|
using System.Text; |
||||||
|
using System.Text.RegularExpressions; |
||||||
|
using System.Collections; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Collections.ObjectModel; |
||||||
|
using System.Runtime.Serialization; |
||||||
|
using Newtonsoft.Json; |
||||||
|
using Newtonsoft.Json.Converters; |
||||||
|
using System.ComponentModel.DataAnnotations; |
||||||
|
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter; |
||||||
|
|
||||||
|
namespace IO.Swagger.ModelCollaborateur |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Referent |
||||||
|
/// </summary> |
||||||
|
[DataContract] |
||||||
|
public partial class Referent : IEquatable<Referent>, IValidatableObject |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Initializes a new instance of the <see cref="Referent" /> class. |
||||||
|
/// </summary> |
||||||
|
/// <param name="id">id (required).</param> |
||||||
|
/// <param name="nom">nom (required).</param> |
||||||
|
/// <param name="prenom">prenom (required).</param> |
||||||
|
/// <param name="mailApside">mailApside (required).</param> |
||||||
|
/// <param name="dateDebut">dateDebut.</param> |
||||||
|
/// <param name="dateFin">dateFin.</param> |
||||||
|
public Referent(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), string mailApside = default(string), DateTime? dateDebut = default(DateTime?), DateTime? dateFin = default(DateTime?)) |
||||||
|
{ |
||||||
|
// to ensure "id" is required (not null) |
||||||
|
if (id == null) |
||||||
|
{ |
||||||
|
throw new InvalidDataException("id is a required property for Referent and cannot be null"); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
this.Id = id; |
||||||
|
} |
||||||
|
// to ensure "nom" is required (not null) |
||||||
|
if (nom == null) |
||||||
|
{ |
||||||
|
throw new InvalidDataException("nom is a required property for Referent and cannot be null"); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
this.Nom = nom; |
||||||
|
} |
||||||
|
// to ensure "prenom" is required (not null) |
||||||
|
if (prenom == null) |
||||||
|
{ |
||||||
|
throw new InvalidDataException("prenom is a required property for Referent and cannot be null"); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
this.Prenom = prenom; |
||||||
|
} |
||||||
|
// to ensure "mailApside" is required (not null) |
||||||
|
if (mailApside == null) |
||||||
|
{ |
||||||
|
throw new InvalidDataException("mailApside is a required property for Referent and cannot be null"); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
this.MailApside = mailApside; |
||||||
|
} |
||||||
|
this.DateDebut = dateDebut; |
||||||
|
this.DateFin = dateFin; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets Id |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="id", EmitDefaultValue=false)] |
||||||
|
public Guid? Id { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets Nom |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="nom", EmitDefaultValue=false)] |
||||||
|
public string Nom { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets Prenom |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="prenom", EmitDefaultValue=false)] |
||||||
|
public string Prenom { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets MailApside |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="mailApside", EmitDefaultValue=false)] |
||||||
|
public string MailApside { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets DateDebut |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="dateDebut", EmitDefaultValue=false)] |
||||||
|
public DateTime? DateDebut { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets or Sets DateFin |
||||||
|
/// </summary> |
||||||
|
[DataMember(Name="dateFin", EmitDefaultValue=false)] |
||||||
|
public DateTime? DateFin { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Returns the string presentation of the object |
||||||
|
/// </summary> |
||||||
|
/// <returns>String presentation of the object</returns> |
||||||
|
public override string ToString() |
||||||
|
{ |
||||||
|
var sb = new StringBuilder(); |
||||||
|
sb.Append("class Referent {\n"); |
||||||
|
sb.Append(" Id: ").Append(Id).Append("\n"); |
||||||
|
sb.Append(" Nom: ").Append(Nom).Append("\n"); |
||||||
|
sb.Append(" Prenom: ").Append(Prenom).Append("\n"); |
||||||
|
sb.Append(" MailApside: ").Append(MailApside).Append("\n"); |
||||||
|
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n"); |
||||||
|
sb.Append(" DateFin: ").Append(DateFin).Append("\n"); |
||||||
|
sb.Append("}\n"); |
||||||
|
return sb.ToString(); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Returns the JSON string presentation of the object |
||||||
|
/// </summary> |
||||||
|
/// <returns>JSON string presentation of the object</returns> |
||||||
|
public virtual string ToJson() |
||||||
|
{ |
||||||
|
return JsonConvert.SerializeObject(this, Formatting.Indented); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Returns true if objects are equal |
||||||
|
/// </summary> |
||||||
|
/// <param name="input">Object to be compared</param> |
||||||
|
/// <returns>Boolean</returns> |
||||||
|
public override bool Equals(object input) |
||||||
|
{ |
||||||
|
return this.Equals(input as Referent); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Returns true if Referent instances are equal |
||||||
|
/// </summary> |
||||||
|
/// <param name="input">Instance of Referent to be compared</param> |
||||||
|
/// <returns>Boolean</returns> |
||||||
|
public bool Equals(Referent input) |
||||||
|
{ |
||||||
|
if (input == null) |
||||||
|
return false; |
||||||
|
|
||||||
|
return |
||||||
|
( |
||||||
|
this.Id == input.Id || |
||||||
|
(this.Id != null && |
||||||
|
this.Id.Equals(input.Id)) |
||||||
|
) && |
||||||
|
( |
||||||
|
this.Nom == input.Nom || |
||||||
|
(this.Nom != null && |
||||||
|
this.Nom.Equals(input.Nom)) |
||||||
|
) && |
||||||
|
( |
||||||
|
this.Prenom == input.Prenom || |
||||||
|
(this.Prenom != null && |
||||||
|
this.Prenom.Equals(input.Prenom)) |
||||||
|
) && |
||||||
|
( |
||||||
|
this.MailApside == input.MailApside || |
||||||
|
(this.MailApside != null && |
||||||
|
this.MailApside.Equals(input.MailApside)) |
||||||
|
) && |
||||||
|
( |
||||||
|
this.DateDebut == input.DateDebut || |
||||||
|
(this.DateDebut != null && |
||||||
|
this.DateDebut.Equals(input.DateDebut)) |
||||||
|
) && |
||||||
|
( |
||||||
|
this.DateFin == input.DateFin || |
||||||
|
(this.DateFin != null && |
||||||
|
this.DateFin.Equals(input.DateFin)) |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// Gets the hash code |
||||||
|
/// </summary> |
||||||
|
/// <returns>Hash code</returns> |
||||||
|
public override int GetHashCode() |
||||||
|
{ |
||||||
|
unchecked // Overflow is fine, just wrap |
||||||
|
{ |
||||||
|
int hashCode = 41; |
||||||
|
if (this.Id != null) |
||||||
|
hashCode = hashCode * 59 + this.Id.GetHashCode(); |
||||||
|
if (this.Nom != null) |
||||||
|
hashCode = hashCode * 59 + this.Nom.GetHashCode(); |
||||||
|
if (this.Prenom != null) |
||||||
|
hashCode = hashCode * 59 + this.Prenom.GetHashCode(); |
||||||
|
if (this.MailApside != null) |
||||||
|
hashCode = hashCode * 59 + this.MailApside.GetHashCode(); |
||||||
|
if (this.DateDebut != null) |
||||||
|
hashCode = hashCode * 59 + this.DateDebut.GetHashCode(); |
||||||
|
if (this.DateFin != null) |
||||||
|
hashCode = hashCode * 59 + this.DateFin.GetHashCode(); |
||||||
|
return hashCode; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// To validate all properties of the instance |
||||||
|
/// </summary> |
||||||
|
/// <param name="validationContext">Validation context</param> |
||||||
|
/// <returns>Validation Result</returns> |
||||||
|
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
||||||
|
{ |
||||||
|
yield break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue