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