/* * FHT.Core.API 1.0 * * ̨group.apiVersion:1.0 * * OpenAPI spec version: v1 * Contact: fht@fht360.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 System.Net.Http; using IO.Swagger.Client; using IO.Swagger.Model; namespace IO.Swagger.Api { /// /// Represents a collection of functions to interact with the API endpoints /// public interface IDefinitionsApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// ExposeDefinitionsViewModel ExposeDefinitionsViewModel DefinitionsApiExposeDefinitions (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of ExposeDefinitionsViewModel ApiResponse DefinitionsApiExposeDefinitionsWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<EnumDefinitionModel> List DefinitionsApiGetEnumTypes (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<EnumDefinitionModel> ApiResponse> DefinitionsApiGetEnumTypesWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// EnumDefinitionModel EnumDefinitionModel DefinitionsApiGetUserActivityTypeEnum (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of EnumDefinitionModel ApiResponse DefinitionsApiGetUserActivityTypeEnumWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<NotificationDefinitionViewModel> List DefinitionsApiNotificationTypeEnum (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<NotificationDefinitionViewModel> ApiResponse> DefinitionsApiNotificationTypeEnumWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// TestSwaggerViewModel TestSwaggerViewModel DefinitionsApiTestSwaggerGet (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// ApiResponse of TestSwaggerViewModel ApiResponse DefinitionsApiTestSwaggerGetWithHttpInfo (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void DefinitionsApiTestSwaggerPost (TestSwaggerInputModel m); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse DefinitionsApiTestSwaggerPostWithHttpInfo (TestSwaggerInputModel m); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ExposeDefinitionsViewModel System.Threading.Tasks.Task DefinitionsApiExposeDefinitionsAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (ExposeDefinitionsViewModel) System.Threading.Tasks.Task> DefinitionsApiExposeDefinitionsAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<EnumDefinitionModel> System.Threading.Tasks.Task> DefinitionsApiGetEnumTypesAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<EnumDefinitionModel>) System.Threading.Tasks.Task>> DefinitionsApiGetEnumTypesAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of EnumDefinitionModel System.Threading.Tasks.Task DefinitionsApiGetUserActivityTypeEnumAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (EnumDefinitionModel) System.Threading.Tasks.Task> DefinitionsApiGetUserActivityTypeEnumAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<NotificationDefinitionViewModel> System.Threading.Tasks.Task> DefinitionsApiNotificationTypeEnumAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<NotificationDefinitionViewModel>) System.Threading.Tasks.Task>> DefinitionsApiNotificationTypeEnumAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// Task of TestSwaggerViewModel System.Threading.Tasks.Task DefinitionsApiTestSwaggerGetAsync (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// Task of ApiResponse (TestSwaggerViewModel) System.Threading.Tasks.Task> DefinitionsApiTestSwaggerGetAsyncWithHttpInfo (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task DefinitionsApiTestSwaggerPostAsync (TestSwaggerInputModel m); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> DefinitionsApiTestSwaggerPostAsyncWithHttpInfo (TestSwaggerInputModel m); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class DefinitionsApiApi : IDefinitionsApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public DefinitionsApiApi(Configuration configuration) { this.Configuration = configuration; ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory; // ensure API client has configuration ready if (Configuration.ApiClient.Configuration == null) { this.Configuration.ApiClient.Configuration = this.Configuration; } } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// public IO.Swagger.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// /// /// Thrown when fails to make API call /// ExposeDefinitionsViewModel public ExposeDefinitionsViewModel DefinitionsApiExposeDefinitions () { ApiResponse localVarResponse = DefinitionsApiExposeDefinitionsWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of ExposeDefinitionsViewModel public ApiResponse< ExposeDefinitionsViewModel > DefinitionsApiExposeDefinitionsWithHttpInfo () { var localVarPath = "/v1/definitions/misc"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiExposeDefinitions", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ExposeDefinitionsViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ExposeDefinitionsViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of ExposeDefinitionsViewModel public async System.Threading.Tasks.Task DefinitionsApiExposeDefinitionsAsync () { ApiResponse localVarResponse = await DefinitionsApiExposeDefinitionsAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (ExposeDefinitionsViewModel) public async System.Threading.Tasks.Task> DefinitionsApiExposeDefinitionsAsyncWithHttpInfo () { var localVarPath = "/v1/definitions/misc"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiExposeDefinitions", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ExposeDefinitionsViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ExposeDefinitionsViewModel))); } /// /// /// /// Thrown when fails to make API call /// List<EnumDefinitionModel> public List DefinitionsApiGetEnumTypes () { ApiResponse> localVarResponse = DefinitionsApiGetEnumTypesWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<EnumDefinitionModel> public ApiResponse< List > DefinitionsApiGetEnumTypesWithHttpInfo () { var localVarPath = "/v1/definitions/enums"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiGetEnumTypes", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// Task of List<EnumDefinitionModel> public async System.Threading.Tasks.Task> DefinitionsApiGetEnumTypesAsync () { ApiResponse> localVarResponse = await DefinitionsApiGetEnumTypesAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<EnumDefinitionModel>) public async System.Threading.Tasks.Task>> DefinitionsApiGetEnumTypesAsyncWithHttpInfo () { var localVarPath = "/v1/definitions/enums"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiGetEnumTypes", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// EnumDefinitionModel public EnumDefinitionModel DefinitionsApiGetUserActivityTypeEnum () { ApiResponse localVarResponse = DefinitionsApiGetUserActivityTypeEnumWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of EnumDefinitionModel public ApiResponse< EnumDefinitionModel > DefinitionsApiGetUserActivityTypeEnumWithHttpInfo () { var localVarPath = "/v1/definitions/activityTypeEnum"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiGetUserActivityTypeEnum", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (EnumDefinitionModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(EnumDefinitionModel))); } /// /// /// /// Thrown when fails to make API call /// Task of EnumDefinitionModel public async System.Threading.Tasks.Task DefinitionsApiGetUserActivityTypeEnumAsync () { ApiResponse localVarResponse = await DefinitionsApiGetUserActivityTypeEnumAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (EnumDefinitionModel) public async System.Threading.Tasks.Task> DefinitionsApiGetUserActivityTypeEnumAsyncWithHttpInfo () { var localVarPath = "/v1/definitions/activityTypeEnum"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiGetUserActivityTypeEnum", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (EnumDefinitionModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(EnumDefinitionModel))); } /// /// /// /// Thrown when fails to make API call /// List<NotificationDefinitionViewModel> public List DefinitionsApiNotificationTypeEnum () { ApiResponse> localVarResponse = DefinitionsApiNotificationTypeEnumWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<NotificationDefinitionViewModel> public ApiResponse< List > DefinitionsApiNotificationTypeEnumWithHttpInfo () { var localVarPath = "/v1/definitions/notificationType"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiNotificationTypeEnum", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// Task of List<NotificationDefinitionViewModel> public async System.Threading.Tasks.Task> DefinitionsApiNotificationTypeEnumAsync () { ApiResponse> localVarResponse = await DefinitionsApiNotificationTypeEnumAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<NotificationDefinitionViewModel>) public async System.Threading.Tasks.Task>> DefinitionsApiNotificationTypeEnumAsyncWithHttpInfo () { var localVarPath = "/v1/definitions/notificationType"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiNotificationTypeEnum", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// TestSwaggerViewModel public TestSwaggerViewModel DefinitionsApiTestSwaggerGet (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null) { ApiResponse localVarResponse = DefinitionsApiTestSwaggerGetWithHttpInfo(testGender, mRequiredInt, mNonRequiredInt, mRequiredString, mGender, testNullableGender, mNullableInt, mNonRequiredString, mNullableGender); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// ApiResponse of TestSwaggerViewModel public ApiResponse< TestSwaggerViewModel > DefinitionsApiTestSwaggerGetWithHttpInfo (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null) { // verify the required parameter 'testGender' is set if (testGender == null) throw new ApiException(400, "Missing required parameter 'testGender' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mRequiredInt' is set if (mRequiredInt == null) throw new ApiException(400, "Missing required parameter 'mRequiredInt' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mNonRequiredInt' is set if (mNonRequiredInt == null) throw new ApiException(400, "Missing required parameter 'mNonRequiredInt' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mRequiredString' is set if (mRequiredString == null) throw new ApiException(400, "Missing required parameter 'mRequiredString' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mGender' is set if (mGender == null) throw new ApiException(400, "Missing required parameter 'mGender' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); var localVarPath = "/v1/definitions/_TestSwaggerGet"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (testGender != null) localVarQueryParams.Add("testGender", Configuration.ApiClient.ParameterToString(testGender)); // query parameter if (testNullableGender != null) localVarQueryParams.Add("testNullableGender", Configuration.ApiClient.ParameterToString(testNullableGender)); // query parameter if (mRequiredInt != null) localVarQueryParams.Add("m.requiredInt", Configuration.ApiClient.ParameterToString(mRequiredInt)); // query parameter if (mNonRequiredInt != null) localVarQueryParams.Add("m.nonRequiredInt", Configuration.ApiClient.ParameterToString(mNonRequiredInt)); // query parameter if (mNullableInt != null) localVarQueryParams.Add("m.nullableInt", Configuration.ApiClient.ParameterToString(mNullableInt)); // query parameter if (mRequiredString != null) localVarQueryParams.Add("m.requiredString", Configuration.ApiClient.ParameterToString(mRequiredString)); // query parameter if (mNonRequiredString != null) localVarQueryParams.Add("m.nonRequiredString", Configuration.ApiClient.ParameterToString(mNonRequiredString)); // query parameter if (mGender != null) localVarQueryParams.Add("m.gender", Configuration.ApiClient.ParameterToString(mGender)); // query parameter if (mNullableGender != null) localVarQueryParams.Add("m.nullableGender", Configuration.ApiClient.ParameterToString(mNullableGender)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiTestSwaggerGet", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TestSwaggerViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(TestSwaggerViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// Task of TestSwaggerViewModel public async System.Threading.Tasks.Task DefinitionsApiTestSwaggerGetAsync (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null) { ApiResponse localVarResponse = await DefinitionsApiTestSwaggerGetAsyncWithHttpInfo(testGender, mRequiredInt, mNonRequiredInt, mRequiredString, mGender, testNullableGender, mNullableInt, mNonRequiredString, mNullableGender); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null /// (optional) /// (optional) /// (optional) /// FHT.Core.CommonTypes.Gender, FHT.Core.CommonTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (optional) /// Task of ApiResponse (TestSwaggerViewModel) public async System.Threading.Tasks.Task> DefinitionsApiTestSwaggerGetAsyncWithHttpInfo (string testGender, int? mRequiredInt, int? mNonRequiredInt, string mRequiredString, string mGender, string testNullableGender = null, int? mNullableInt = null, string mNonRequiredString = null, string mNullableGender = null) { // verify the required parameter 'testGender' is set if (testGender == null) throw new ApiException(400, "Missing required parameter 'testGender' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mRequiredInt' is set if (mRequiredInt == null) throw new ApiException(400, "Missing required parameter 'mRequiredInt' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mNonRequiredInt' is set if (mNonRequiredInt == null) throw new ApiException(400, "Missing required parameter 'mNonRequiredInt' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mRequiredString' is set if (mRequiredString == null) throw new ApiException(400, "Missing required parameter 'mRequiredString' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); // verify the required parameter 'mGender' is set if (mGender == null) throw new ApiException(400, "Missing required parameter 'mGender' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerGet"); var localVarPath = "/v1/definitions/_TestSwaggerGet"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (testGender != null) localVarQueryParams.Add("testGender", Configuration.ApiClient.ParameterToString(testGender)); // query parameter if (testNullableGender != null) localVarQueryParams.Add("testNullableGender", Configuration.ApiClient.ParameterToString(testNullableGender)); // query parameter if (mRequiredInt != null) localVarQueryParams.Add("m.requiredInt", Configuration.ApiClient.ParameterToString(mRequiredInt)); // query parameter if (mNonRequiredInt != null) localVarQueryParams.Add("m.nonRequiredInt", Configuration.ApiClient.ParameterToString(mNonRequiredInt)); // query parameter if (mNullableInt != null) localVarQueryParams.Add("m.nullableInt", Configuration.ApiClient.ParameterToString(mNullableInt)); // query parameter if (mRequiredString != null) localVarQueryParams.Add("m.requiredString", Configuration.ApiClient.ParameterToString(mRequiredString)); // query parameter if (mNonRequiredString != null) localVarQueryParams.Add("m.nonRequiredString", Configuration.ApiClient.ParameterToString(mNonRequiredString)); // query parameter if (mGender != null) localVarQueryParams.Add("m.gender", Configuration.ApiClient.ParameterToString(mGender)); // query parameter if (mNullableGender != null) localVarQueryParams.Add("m.nullableGender", Configuration.ApiClient.ParameterToString(mNullableGender)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiTestSwaggerGet", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TestSwaggerViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(TestSwaggerViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// public void DefinitionsApiTestSwaggerPost (TestSwaggerInputModel m) { DefinitionsApiTestSwaggerPostWithHttpInfo(m); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse DefinitionsApiTestSwaggerPostWithHttpInfo (TestSwaggerInputModel m) { // verify the required parameter 'm' is set if (m == null) throw new ApiException(400, "Missing required parameter 'm' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerPost"); var localVarPath = "/v1/definitions/_TestSwaggerPost"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(m); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiTestSwaggerPost", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// Task of void public async System.Threading.Tasks.Task DefinitionsApiTestSwaggerPostAsync (TestSwaggerInputModel m) { await DefinitionsApiTestSwaggerPostAsyncWithHttpInfo(m); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> DefinitionsApiTestSwaggerPostAsyncWithHttpInfo (TestSwaggerInputModel m) { // verify the required parameter 'm' is set if (m == null) throw new ApiException(400, "Missing required parameter 'm' when calling DefinitionsApiApi->DefinitionsApiTestSwaggerPost"); var localVarPath = "/v1/definitions/_TestSwaggerPost"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(m); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("DefinitionsApiTestSwaggerPost", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } } }