/* * 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 ICompanyApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// List<CompanySimpleViewModel> List CompanyApiActiveCompany (int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// ApiResponse of List<CompanySimpleViewModel> ApiResponse> CompanyApiActiveCompanyWithHttpInfo (int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// int? int? CompanyApiAgentRegisterClientCompany (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// ApiResponse of int? ApiResponse CompanyApiAgentRegisterClientCompanyWithHttpInfo (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void CompanyApiApplyCompanyAuthenticationAsync (AuthenticationInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse CompanyApiApplyCompanyAuthenticationAsyncWithHttpInfo (AuthenticationInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地址对象 /// void CompanyApiChangeAddress (ChangeCompanyAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地址对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeAddressWithHttpInfo (ChangeCompanyAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// void CompanyApiChangeCompany (ApiModifyCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeCompanyWithHttpInfo (ApiModifyCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void CompanyApiChangeCompanyVerified (int? companyId, bool? isCompanyVerified); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse CompanyApiChangeCompanyVerifiedWithHttpInfo (int? companyId, bool? isCompanyVerified); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void CompanyApiChangeCustomerServices (ChangeCompanyCustomerServiceInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse CompanyApiChangeCustomerServicesWithHttpInfo (ChangeCompanyCustomerServiceInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// void CompanyApiChangeDescription (ChangeCompanyDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeDescriptionWithHttpInfo (ChangeCompanyDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 行业对象 /// void CompanyApiChangeIndustry (ChangeCompanyIndustryInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 行业对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeIndustryWithHttpInfo (ChangeCompanyIndustryInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// void CompanyApiChangeLogoUrl (ChangeCompanyLogoUrlInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeLogoUrlWithHttpInfo (ChangeCompanyLogoUrlInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// void CompanyApiChangeMainBusiness (ChangeCompanyMainBusinessInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeMainBusinessWithHttpInfo (ChangeCompanyMainBusinessInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// void CompanyApiChangeMobiles (ChangeCompanyMobilesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeMobilesWithHttpInfo (ChangeCompanyMobilesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void CompanyApiChangeMyCompanyContractInfo (ContactInfoSimpleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse CompanyApiChangeMyCompanyContractInfoWithHttpInfo (ContactInfoSimpleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地区对象 /// void CompanyApiChangeRegion (RegionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地区对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeRegionWithHttpInfo (RegionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// void CompanyApiChangeTelephones (ChangeCompanyTelephonesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// ApiResponse of Object(void) ApiResponse CompanyApiChangeTelephonesWithHttpInfo (ChangeCompanyTelephonesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// BoolViewModel BoolViewModel CompanyApiCheckIfAllowedToUseCompanyName (string companyName); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of BoolViewModel ApiResponse CompanyApiCheckIfAllowedToUseCompanyNameWithHttpInfo (string companyName); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// CreatedViewModel CreatedViewModel CompanyApiCreateCompany (ApiCreateCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// ApiResponse of CreatedViewModel ApiResponse CompanyApiCreateCompanyWithHttpInfo (ApiCreateCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业Id /// CompanyDetailViewModel CompanyDetailViewModel CompanyApiGetCompany (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业Id /// ApiResponse of CompanyDetailViewModel ApiResponse CompanyApiGetCompanyWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<IndustryViewModel> List CompanyApiGetIndustries (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<IndustryViewModel> ApiResponse> CompanyApiGetIndustriesWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// CompanyAuthenticationViewModel CompanyAuthenticationViewModel CompanyApiGetMyCompanyAuthenticationDetailAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyAuthenticationViewModel ApiResponse CompanyApiGetMyCompanyAuthenticationDetailAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// CompanyContactInfoViewModel CompanyContactInfoViewModel CompanyApiGetMyCompanyContactInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyContactInfoViewModel ApiResponse CompanyApiGetMyCompanyContactInfoWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// List<CompanySimpleViewModel> List CompanyApiGetNewlyRegisteredEnterprise (int? top = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// ApiResponse of List<CompanySimpleViewModel> ApiResponse> CompanyApiGetNewlyRegisteredEnterpriseWithHttpInfo (int? top = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<TreeNodeViewModel> List CompanyApiGetRegions (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<TreeNodeViewModel> ApiResponse> CompanyApiGetRegionsWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void CompanyApiInitializeCms (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse CompanyApiInitializeCmsWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// BoolViewModel BoolViewModel CompanyApiIsCompanyMainAdminOrSubAdmin (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of BoolViewModel ApiResponse CompanyApiIsCompanyMainAdminOrSubAdminWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// MyCompanyProfileViewModel MyCompanyProfileViewModel CompanyApiMyCompany (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of MyCompanyProfileViewModel ApiResponse CompanyApiMyCompanyWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// List<NearCompanyViewModel> List CompanyApiNearPromotionCompanies (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// ApiResponse of List<NearCompanyViewModel> ApiResponse> CompanyApiNearPromotionCompaniesWithHttpInfo (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<CompanyForApplyingViewModel> List CompanyApiRecommendCompany (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<CompanyForApplyingViewModel> ApiResponse> CompanyApiRecommendCompanyWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// List<SearchCompanyViewModel> List CompanyApiSearchCompanyByNameForJoining (string modelQ, int? modelLimit = null, int? modelOffset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// ApiResponse of List<SearchCompanyViewModel> ApiResponse> CompanyApiSearchCompanyByNameForJoiningWithHttpInfo (string modelQ, int? modelLimit = null, int? modelOffset = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of List<CompanySimpleViewModel> System.Threading.Tasks.Task> CompanyApiActiveCompanyAsync (int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of ApiResponse (List<CompanySimpleViewModel>) System.Threading.Tasks.Task>> CompanyApiActiveCompanyAsyncWithHttpInfo (int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// Task of int? System.Threading.Tasks.Task CompanyApiAgentRegisterClientCompanyAsync (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// Task of ApiResponse (int?) System.Threading.Tasks.Task> CompanyApiAgentRegisterClientCompanyAsyncWithHttpInfo (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task CompanyApiApplyCompanyAuthenticationAsyncAsync (AuthenticationInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiApplyCompanyAuthenticationAsyncAsyncWithHttpInfo (AuthenticationInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地址对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeAddressAsync (ChangeCompanyAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地址对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeAddressAsyncWithHttpInfo (ChangeCompanyAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of void System.Threading.Tasks.Task CompanyApiChangeCompanyAsync (ApiModifyCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeCompanyAsyncWithHttpInfo (ApiModifyCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task CompanyApiChangeCompanyVerifiedAsync (int? companyId, bool? isCompanyVerified); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeCompanyVerifiedAsyncWithHttpInfo (int? companyId, bool? isCompanyVerified); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task CompanyApiChangeCustomerServicesAsync (ChangeCompanyCustomerServiceInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeCustomerServicesAsyncWithHttpInfo (ChangeCompanyCustomerServiceInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeDescriptionAsync (ChangeCompanyDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeDescriptionAsyncWithHttpInfo (ChangeCompanyDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 行业对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeIndustryAsync (ChangeCompanyIndustryInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 行业对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeIndustryAsyncWithHttpInfo (ChangeCompanyIndustryInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeLogoUrlAsync (ChangeCompanyLogoUrlInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeLogoUrlAsyncWithHttpInfo (ChangeCompanyLogoUrlInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeMainBusinessAsync (ChangeCompanyMainBusinessInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeMainBusinessAsyncWithHttpInfo (ChangeCompanyMainBusinessInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeMobilesAsync (ChangeCompanyMobilesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeMobilesAsyncWithHttpInfo (ChangeCompanyMobilesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task CompanyApiChangeMyCompanyContractInfoAsync (ContactInfoSimpleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeMyCompanyContractInfoAsyncWithHttpInfo (ContactInfoSimpleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地区对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeRegionAsync (RegionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 地区对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeRegionAsyncWithHttpInfo (RegionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// Task of void System.Threading.Tasks.Task CompanyApiChangeTelephonesAsync (ChangeCompanyTelephonesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiChangeTelephonesAsyncWithHttpInfo (ChangeCompanyTelephonesInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of BoolViewModel System.Threading.Tasks.Task CompanyApiCheckIfAllowedToUseCompanyNameAsync (string companyName); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (BoolViewModel) System.Threading.Tasks.Task> CompanyApiCheckIfAllowedToUseCompanyNameAsyncWithHttpInfo (string companyName); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of CreatedViewModel System.Threading.Tasks.Task CompanyApiCreateCompanyAsync (ApiCreateCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of ApiResponse (CreatedViewModel) System.Threading.Tasks.Task> CompanyApiCreateCompanyAsyncWithHttpInfo (ApiCreateCompanyInputModel company); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业Id /// Task of CompanyDetailViewModel System.Threading.Tasks.Task CompanyApiGetCompanyAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 企业Id /// Task of ApiResponse (CompanyDetailViewModel) System.Threading.Tasks.Task> CompanyApiGetCompanyAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<IndustryViewModel> System.Threading.Tasks.Task> CompanyApiGetIndustriesAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<IndustryViewModel>) System.Threading.Tasks.Task>> CompanyApiGetIndustriesAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of CompanyAuthenticationViewModel System.Threading.Tasks.Task CompanyApiGetMyCompanyAuthenticationDetailAsyncAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyAuthenticationViewModel) System.Threading.Tasks.Task> CompanyApiGetMyCompanyAuthenticationDetailAsyncAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of CompanyContactInfoViewModel System.Threading.Tasks.Task CompanyApiGetMyCompanyContactInfoAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyContactInfoViewModel) System.Threading.Tasks.Task> CompanyApiGetMyCompanyContactInfoAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of List<CompanySimpleViewModel> System.Threading.Tasks.Task> CompanyApiGetNewlyRegisteredEnterpriseAsync (int? top = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of ApiResponse (List<CompanySimpleViewModel>) System.Threading.Tasks.Task>> CompanyApiGetNewlyRegisteredEnterpriseAsyncWithHttpInfo (int? top = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<TreeNodeViewModel> System.Threading.Tasks.Task> CompanyApiGetRegionsAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<TreeNodeViewModel>) System.Threading.Tasks.Task>> CompanyApiGetRegionsAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task CompanyApiInitializeCmsAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyApiInitializeCmsAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of BoolViewModel System.Threading.Tasks.Task CompanyApiIsCompanyMainAdminOrSubAdminAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (BoolViewModel) System.Threading.Tasks.Task> CompanyApiIsCompanyMainAdminOrSubAdminAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of MyCompanyProfileViewModel System.Threading.Tasks.Task CompanyApiMyCompanyAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (MyCompanyProfileViewModel) System.Threading.Tasks.Task> CompanyApiMyCompanyAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// Task of List<NearCompanyViewModel> System.Threading.Tasks.Task> CompanyApiNearPromotionCompaniesAsync (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// Task of ApiResponse (List<NearCompanyViewModel>) System.Threading.Tasks.Task>> CompanyApiNearPromotionCompaniesAsyncWithHttpInfo (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<CompanyForApplyingViewModel> System.Threading.Tasks.Task> CompanyApiRecommendCompanyAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<CompanyForApplyingViewModel>) System.Threading.Tasks.Task>> CompanyApiRecommendCompanyAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// Task of List<SearchCompanyViewModel> System.Threading.Tasks.Task> CompanyApiSearchCompanyByNameForJoiningAsync (string modelQ, int? modelLimit = null, int? modelOffset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// Task of ApiResponse (List<SearchCompanyViewModel>) System.Threading.Tasks.Task>> CompanyApiSearchCompanyByNameForJoiningAsyncWithHttpInfo (string modelQ, int? modelLimit = null, int? modelOffset = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class CompanyApiApi : ICompanyApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public CompanyApiApi(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 /// (optional, default to 5) /// List<CompanySimpleViewModel> public List CompanyApiActiveCompany (int? pageSize = null) { ApiResponse> localVarResponse = CompanyApiActiveCompanyWithHttpInfo(pageSize); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// ApiResponse of List<CompanySimpleViewModel> public ApiResponse< List > CompanyApiActiveCompanyWithHttpInfo (int? pageSize = null) { string localVarPath = "/v1/companies/activeCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (pageSize != null) localVarQueryParams.Add("pageSize", Configuration.ApiClient.ParameterToString(pageSize)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiActiveCompany", 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 /// (optional, default to 5) /// Task of List<CompanySimpleViewModel> public async System.Threading.Tasks.Task> CompanyApiActiveCompanyAsync (int? pageSize = null) { ApiResponse> localVarResponse = await CompanyApiActiveCompanyAsyncWithHttpInfo(pageSize); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of ApiResponse (List<CompanySimpleViewModel>) public async System.Threading.Tasks.Task>> CompanyApiActiveCompanyAsyncWithHttpInfo (int? pageSize = null) { string localVarPath = "/v1/companies/activeCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (pageSize != null) localVarQueryParams.Add("pageSize", Configuration.ApiClient.ParameterToString(pageSize)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiActiveCompany", 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 /// /// /// /// /// /// /// (optional, default to false) /// int? public int? CompanyApiAgentRegisterClientCompany (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null) { ApiResponse localVarResponse = CompanyApiAgentRegisterClientCompanyWithHttpInfo(userId, industryId, companyName, regionId, fromAgentId, sourctType, isHadShops); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// ApiResponse of int? public ApiResponse< int? > CompanyApiAgentRegisterClientCompanyWithHttpInfo (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'industryId' is set if (industryId == null) throw new ApiException(400, "Missing required parameter 'industryId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'companyName' is set if (companyName == null) throw new ApiException(400, "Missing required parameter 'companyName' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'regionId' is set if (regionId == null) throw new ApiException(400, "Missing required parameter 'regionId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'fromAgentId' is set if (fromAgentId == null) throw new ApiException(400, "Missing required parameter 'fromAgentId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'sourctType' is set if (sourctType == null) throw new ApiException(400, "Missing required parameter 'sourctType' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); string localVarPath = "/v1/_agentregisterclientcompany"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query parameter if (industryId != null) localVarQueryParams.Add("industryId", Configuration.ApiClient.ParameterToString(industryId)); // query parameter if (companyName != null) localVarQueryParams.Add("companyName", Configuration.ApiClient.ParameterToString(companyName)); // query parameter if (regionId != null) localVarQueryParams.Add("regionId", Configuration.ApiClient.ParameterToString(regionId)); // query parameter if (fromAgentId != null) localVarQueryParams.Add("fromAgentId", Configuration.ApiClient.ParameterToString(fromAgentId)); // query parameter if (sourctType != null) localVarQueryParams.Add("sourctType", Configuration.ApiClient.ParameterToString(sourctType)); // query parameter if (isHadShops != null) localVarQueryParams.Add("isHadShops", Configuration.ApiClient.ParameterToString(isHadShops)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiAgentRegisterClientCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (int?) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(int?))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// Task of int? public async System.Threading.Tasks.Task CompanyApiAgentRegisterClientCompanyAsync (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null) { ApiResponse localVarResponse = await CompanyApiAgentRegisterClientCompanyAsyncWithHttpInfo(userId, industryId, companyName, regionId, fromAgentId, sourctType, isHadShops); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// /// /// /// (optional, default to false) /// Task of ApiResponse (int?) public async System.Threading.Tasks.Task> CompanyApiAgentRegisterClientCompanyAsyncWithHttpInfo (int? userId, int? industryId, string companyName, int? regionId, int? fromAgentId, int? sourctType, bool? isHadShops = null) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'industryId' is set if (industryId == null) throw new ApiException(400, "Missing required parameter 'industryId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'companyName' is set if (companyName == null) throw new ApiException(400, "Missing required parameter 'companyName' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'regionId' is set if (regionId == null) throw new ApiException(400, "Missing required parameter 'regionId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'fromAgentId' is set if (fromAgentId == null) throw new ApiException(400, "Missing required parameter 'fromAgentId' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); // verify the required parameter 'sourctType' is set if (sourctType == null) throw new ApiException(400, "Missing required parameter 'sourctType' when calling CompanyApiApi->CompanyApiAgentRegisterClientCompany"); string localVarPath = "/v1/_agentregisterclientcompany"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query parameter if (industryId != null) localVarQueryParams.Add("industryId", Configuration.ApiClient.ParameterToString(industryId)); // query parameter if (companyName != null) localVarQueryParams.Add("companyName", Configuration.ApiClient.ParameterToString(companyName)); // query parameter if (regionId != null) localVarQueryParams.Add("regionId", Configuration.ApiClient.ParameterToString(regionId)); // query parameter if (fromAgentId != null) localVarQueryParams.Add("fromAgentId", Configuration.ApiClient.ParameterToString(fromAgentId)); // query parameter if (sourctType != null) localVarQueryParams.Add("sourctType", Configuration.ApiClient.ParameterToString(sourctType)); // query parameter if (isHadShops != null) localVarQueryParams.Add("isHadShops", Configuration.ApiClient.ParameterToString(isHadShops)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiAgentRegisterClientCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (int?) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(int?))); } /// /// /// /// Thrown when fails to make API call /// /// public void CompanyApiApplyCompanyAuthenticationAsync (AuthenticationInputModel model) { CompanyApiApplyCompanyAuthenticationAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse CompanyApiApplyCompanyAuthenticationAsyncWithHttpInfo (AuthenticationInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiApplyCompanyAuthenticationAsync"); string localVarPath = "/v1/companies/_authenticate"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiApplyCompanyAuthenticationAsync", 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 CompanyApiApplyCompanyAuthenticationAsyncAsync (AuthenticationInputModel model) { await CompanyApiApplyCompanyAuthenticationAsyncAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiApplyCompanyAuthenticationAsyncAsyncWithHttpInfo (AuthenticationInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiApplyCompanyAuthenticationAsync"); string localVarPath = "/v1/companies/_authenticate"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiApplyCompanyAuthenticationAsync", 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 /// 地址对象 /// public void CompanyApiChangeAddress (ChangeCompanyAddressInputModel model) { CompanyApiChangeAddressWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 地址对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeAddressWithHttpInfo (ChangeCompanyAddressInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeAddress"); string localVarPath = "/v1/myCompany/address"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeAddress", 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 CompanyApiChangeAddressAsync (ChangeCompanyAddressInputModel model) { await CompanyApiChangeAddressAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 地址对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeAddressAsyncWithHttpInfo (ChangeCompanyAddressInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeAddress"); string localVarPath = "/v1/myCompany/address"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeAddress", 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 /// 企业实体信息 /// public void CompanyApiChangeCompany (ApiModifyCompanyInputModel company) { CompanyApiChangeCompanyWithHttpInfo(company); } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeCompanyWithHttpInfo (ApiModifyCompanyInputModel company) { // verify the required parameter 'company' is set if (company == null) throw new ApiException(400, "Missing required parameter 'company' when calling CompanyApiApi->CompanyApiChangeCompany"); string localVarPath = "/v1/myCompany/_modify"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(company); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCompany", 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 CompanyApiChangeCompanyAsync (ApiModifyCompanyInputModel company) { await CompanyApiChangeCompanyAsyncWithHttpInfo(company); } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeCompanyAsyncWithHttpInfo (ApiModifyCompanyInputModel company) { // verify the required parameter 'company' is set if (company == null) throw new ApiException(400, "Missing required parameter 'company' when calling CompanyApiApi->CompanyApiChangeCompany"); string localVarPath = "/v1/myCompany/_modify"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(company); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCompany", 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 /// /// /// public void CompanyApiChangeCompanyVerified (int? companyId, bool? isCompanyVerified) { CompanyApiChangeCompanyVerifiedWithHttpInfo(companyId, isCompanyVerified); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeCompanyVerifiedWithHttpInfo (int? companyId, bool? isCompanyVerified) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiChangeCompanyVerified"); // verify the required parameter 'isCompanyVerified' is set if (isCompanyVerified == null) throw new ApiException(400, "Missing required parameter 'isCompanyVerified' when calling CompanyApiApi->CompanyApiChangeCompanyVerified"); string localVarPath = "/v1/changecompanyverified"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (isCompanyVerified != null) localVarQueryParams.Add("isCompanyVerified", Configuration.ApiClient.ParameterToString(isCompanyVerified)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCompanyVerified", 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 CompanyApiChangeCompanyVerifiedAsync (int? companyId, bool? isCompanyVerified) { await CompanyApiChangeCompanyVerifiedAsyncWithHttpInfo(companyId, isCompanyVerified); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeCompanyVerifiedAsyncWithHttpInfo (int? companyId, bool? isCompanyVerified) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiChangeCompanyVerified"); // verify the required parameter 'isCompanyVerified' is set if (isCompanyVerified == null) throw new ApiException(400, "Missing required parameter 'isCompanyVerified' when calling CompanyApiApi->CompanyApiChangeCompanyVerified"); string localVarPath = "/v1/changecompanyverified"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (isCompanyVerified != null) localVarQueryParams.Add("isCompanyVerified", Configuration.ApiClient.ParameterToString(isCompanyVerified)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCompanyVerified", 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 /// /// public void CompanyApiChangeCustomerServices (ChangeCompanyCustomerServiceInputModel model) { CompanyApiChangeCustomerServicesWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeCustomerServicesWithHttpInfo (ChangeCompanyCustomerServiceInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeCustomerServices"); string localVarPath = "/v1/myCompany/customerServices"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCustomerServices", 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 CompanyApiChangeCustomerServicesAsync (ChangeCompanyCustomerServiceInputModel model) { await CompanyApiChangeCustomerServicesAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeCustomerServicesAsyncWithHttpInfo (ChangeCompanyCustomerServiceInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeCustomerServices"); string localVarPath = "/v1/myCompany/customerServices"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeCustomerServices", 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 /// 企业简介对象 /// public void CompanyApiChangeDescription (ChangeCompanyDescriptionInputModel model) { CompanyApiChangeDescriptionWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeDescriptionWithHttpInfo (ChangeCompanyDescriptionInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeDescription"); string localVarPath = "/v1/myCompany/description"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeDescription", 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 CompanyApiChangeDescriptionAsync (ChangeCompanyDescriptionInputModel model) { await CompanyApiChangeDescriptionAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业简介对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeDescriptionAsyncWithHttpInfo (ChangeCompanyDescriptionInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeDescription"); string localVarPath = "/v1/myCompany/description"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeDescription", 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 /// 行业对象 /// public void CompanyApiChangeIndustry (ChangeCompanyIndustryInputModel model) { CompanyApiChangeIndustryWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 行业对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeIndustryWithHttpInfo (ChangeCompanyIndustryInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeIndustry"); string localVarPath = "/v1/myCompany/industry"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeIndustry", 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 CompanyApiChangeIndustryAsync (ChangeCompanyIndustryInputModel model) { await CompanyApiChangeIndustryAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 行业对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeIndustryAsyncWithHttpInfo (ChangeCompanyIndustryInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeIndustry"); string localVarPath = "/v1/myCompany/industry"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeIndustry", 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 /// 企业logo对象 /// public void CompanyApiChangeLogoUrl (ChangeCompanyLogoUrlInputModel model) { CompanyApiChangeLogoUrlWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeLogoUrlWithHttpInfo (ChangeCompanyLogoUrlInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeLogoUrl"); string localVarPath = "/v1/myCompany/logoUrl"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeLogoUrl", 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 /// 企业logo对象 /// Task of void public async System.Threading.Tasks.Task CompanyApiChangeLogoUrlAsync (ChangeCompanyLogoUrlInputModel model) { await CompanyApiChangeLogoUrlAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业logo对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeLogoUrlAsyncWithHttpInfo (ChangeCompanyLogoUrlInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeLogoUrl"); string localVarPath = "/v1/myCompany/logoUrl"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeLogoUrl", 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 /// 企业主营对象 /// public void CompanyApiChangeMainBusiness (ChangeCompanyMainBusinessInputModel model) { CompanyApiChangeMainBusinessWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeMainBusinessWithHttpInfo (ChangeCompanyMainBusinessInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMainBusiness"); string localVarPath = "/v1/myCompany/mainBusiness"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMainBusiness", 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 CompanyApiChangeMainBusinessAsync (ChangeCompanyMainBusinessInputModel model) { await CompanyApiChangeMainBusinessAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 企业主营对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeMainBusinessAsyncWithHttpInfo (ChangeCompanyMainBusinessInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMainBusiness"); string localVarPath = "/v1/myCompany/mainBusiness"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMainBusiness", 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 /// 手机号码对象 /// public void CompanyApiChangeMobiles (ChangeCompanyMobilesInputModel model) { CompanyApiChangeMobilesWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeMobilesWithHttpInfo (ChangeCompanyMobilesInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMobiles"); string localVarPath = "/v1/myCompany/mobiles"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMobiles", 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 CompanyApiChangeMobilesAsync (ChangeCompanyMobilesInputModel model) { await CompanyApiChangeMobilesAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 手机号码对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeMobilesAsyncWithHttpInfo (ChangeCompanyMobilesInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMobiles"); string localVarPath = "/v1/myCompany/mobiles"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMobiles", 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 /// /// public void CompanyApiChangeMyCompanyContractInfo (ContactInfoSimpleInputModel model) { CompanyApiChangeMyCompanyContractInfoWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeMyCompanyContractInfoWithHttpInfo (ContactInfoSimpleInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMyCompanyContractInfo"); string localVarPath = "/v1/myCompany/contactInfo"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMyCompanyContractInfo", 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 CompanyApiChangeMyCompanyContractInfoAsync (ContactInfoSimpleInputModel model) { await CompanyApiChangeMyCompanyContractInfoAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeMyCompanyContractInfoAsyncWithHttpInfo (ContactInfoSimpleInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeMyCompanyContractInfo"); string localVarPath = "/v1/myCompany/contactInfo"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeMyCompanyContractInfo", 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 /// 地区对象 /// public void CompanyApiChangeRegion (RegionInputModel model) { CompanyApiChangeRegionWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 地区对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeRegionWithHttpInfo (RegionInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeRegion"); string localVarPath = "/v1/myCompany/region"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeRegion", 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 CompanyApiChangeRegionAsync (RegionInputModel model) { await CompanyApiChangeRegionAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 地区对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeRegionAsyncWithHttpInfo (RegionInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeRegion"); string localVarPath = "/v1/myCompany/region"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeRegion", 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 /// 电话号码对象 /// public void CompanyApiChangeTelephones (ChangeCompanyTelephonesInputModel model) { CompanyApiChangeTelephonesWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// ApiResponse of Object(void) public ApiResponse CompanyApiChangeTelephonesWithHttpInfo (ChangeCompanyTelephonesInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeTelephones"); string localVarPath = "/v1/myCompany/telephones"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeTelephones", 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 CompanyApiChangeTelephonesAsync (ChangeCompanyTelephonesInputModel model) { await CompanyApiChangeTelephonesAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 电话号码对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiChangeTelephonesAsyncWithHttpInfo (ChangeCompanyTelephonesInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyApiApi->CompanyApiChangeTelephones"); string localVarPath = "/v1/myCompany/telephones"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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(model); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiChangeTelephones", 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 /// /// BoolViewModel public BoolViewModel CompanyApiCheckIfAllowedToUseCompanyName (string companyName) { ApiResponse localVarResponse = CompanyApiCheckIfAllowedToUseCompanyNameWithHttpInfo(companyName); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of BoolViewModel public ApiResponse< BoolViewModel > CompanyApiCheckIfAllowedToUseCompanyNameWithHttpInfo (string companyName) { // verify the required parameter 'companyName' is set if (companyName == null) throw new ApiException(400, "Missing required parameter 'companyName' when calling CompanyApiApi->CompanyApiCheckIfAllowedToUseCompanyName"); string localVarPath = "/v1/companies/_checkIfAllowedToUseCompanyName/{companyName}"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiCheckIfAllowedToUseCompanyName", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of BoolViewModel public async System.Threading.Tasks.Task CompanyApiCheckIfAllowedToUseCompanyNameAsync (string companyName) { ApiResponse localVarResponse = await CompanyApiCheckIfAllowedToUseCompanyNameAsyncWithHttpInfo(companyName); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (BoolViewModel) public async System.Threading.Tasks.Task> CompanyApiCheckIfAllowedToUseCompanyNameAsyncWithHttpInfo (string companyName) { // verify the required parameter 'companyName' is set if (companyName == null) throw new ApiException(400, "Missing required parameter 'companyName' when calling CompanyApiApi->CompanyApiCheckIfAllowedToUseCompanyName"); string localVarPath = "/v1/companies/_checkIfAllowedToUseCompanyName/{companyName}"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiCheckIfAllowedToUseCompanyName", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// CreatedViewModel public CreatedViewModel CompanyApiCreateCompany (ApiCreateCompanyInputModel company) { ApiResponse localVarResponse = CompanyApiCreateCompanyWithHttpInfo(company); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// ApiResponse of CreatedViewModel public ApiResponse< CreatedViewModel > CompanyApiCreateCompanyWithHttpInfo (ApiCreateCompanyInputModel company) { // verify the required parameter 'company' is set if (company == null) throw new ApiException(400, "Missing required parameter 'company' when calling CompanyApiApi->CompanyApiCreateCompany"); string localVarPath = "/v1/companies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { "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); localVarPostBody = Configuration.ApiClient.Serialize(company); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiCreateCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of CreatedViewModel public async System.Threading.Tasks.Task CompanyApiCreateCompanyAsync (ApiCreateCompanyInputModel company) { ApiResponse localVarResponse = await CompanyApiCreateCompanyAsyncWithHttpInfo(company); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 企业实体信息 /// Task of ApiResponse (CreatedViewModel) public async System.Threading.Tasks.Task> CompanyApiCreateCompanyAsyncWithHttpInfo (ApiCreateCompanyInputModel company) { // verify the required parameter 'company' is set if (company == null) throw new ApiException(400, "Missing required parameter 'company' when calling CompanyApiApi->CompanyApiCreateCompany"); string localVarPath = "/v1/companies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { "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); localVarPostBody = Configuration.ApiClient.Serialize(company); // http body (model) parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiCreateCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 企业Id /// CompanyDetailViewModel public CompanyDetailViewModel CompanyApiGetCompany (int? companyId) { ApiResponse localVarResponse = CompanyApiGetCompanyWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 企业Id /// ApiResponse of CompanyDetailViewModel public ApiResponse< CompanyDetailViewModel > CompanyApiGetCompanyWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiGetCompany"); string localVarPath = "/v1/companies/{companyId}"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyDetailViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// 企业Id /// Task of CompanyDetailViewModel public async System.Threading.Tasks.Task CompanyApiGetCompanyAsync (int? companyId) { ApiResponse localVarResponse = await CompanyApiGetCompanyAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 企业Id /// Task of ApiResponse (CompanyDetailViewModel) public async System.Threading.Tasks.Task> CompanyApiGetCompanyAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiGetCompany"); string localVarPath = "/v1/companies/{companyId}"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyDetailViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// List<IndustryViewModel> public List CompanyApiGetIndustries () { ApiResponse> localVarResponse = CompanyApiGetIndustriesWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<IndustryViewModel> public ApiResponse< List > CompanyApiGetIndustriesWithHttpInfo () { string localVarPath = "/v1/industries"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetIndustries", 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<IndustryViewModel> public async System.Threading.Tasks.Task> CompanyApiGetIndustriesAsync () { ApiResponse> localVarResponse = await CompanyApiGetIndustriesAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<IndustryViewModel>) public async System.Threading.Tasks.Task>> CompanyApiGetIndustriesAsyncWithHttpInfo () { string localVarPath = "/v1/industries"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetIndustries", 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 /// CompanyAuthenticationViewModel public CompanyAuthenticationViewModel CompanyApiGetMyCompanyAuthenticationDetailAsync () { ApiResponse localVarResponse = CompanyApiGetMyCompanyAuthenticationDetailAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyAuthenticationViewModel public ApiResponse< CompanyAuthenticationViewModel > CompanyApiGetMyCompanyAuthenticationDetailAsyncWithHttpInfo () { string localVarPath = "/v1/myCompany/authentication"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetMyCompanyAuthenticationDetailAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyAuthenticationViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyAuthenticationViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of CompanyAuthenticationViewModel public async System.Threading.Tasks.Task CompanyApiGetMyCompanyAuthenticationDetailAsyncAsync () { ApiResponse localVarResponse = await CompanyApiGetMyCompanyAuthenticationDetailAsyncAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyAuthenticationViewModel) public async System.Threading.Tasks.Task> CompanyApiGetMyCompanyAuthenticationDetailAsyncAsyncWithHttpInfo () { string localVarPath = "/v1/myCompany/authentication"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetMyCompanyAuthenticationDetailAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyAuthenticationViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyAuthenticationViewModel))); } /// /// /// /// Thrown when fails to make API call /// CompanyContactInfoViewModel public CompanyContactInfoViewModel CompanyApiGetMyCompanyContactInfo () { ApiResponse localVarResponse = CompanyApiGetMyCompanyContactInfoWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyContactInfoViewModel public ApiResponse< CompanyContactInfoViewModel > CompanyApiGetMyCompanyContactInfoWithHttpInfo () { string localVarPath = "/v1/myCompany/contactInfo"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetMyCompanyContactInfo", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyContactInfoViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyContactInfoViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of CompanyContactInfoViewModel public async System.Threading.Tasks.Task CompanyApiGetMyCompanyContactInfoAsync () { ApiResponse localVarResponse = await CompanyApiGetMyCompanyContactInfoAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyContactInfoViewModel) public async System.Threading.Tasks.Task> CompanyApiGetMyCompanyContactInfoAsyncWithHttpInfo () { string localVarPath = "/v1/myCompany/contactInfo"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetMyCompanyContactInfo", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyContactInfoViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyContactInfoViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// List<CompanySimpleViewModel> public List CompanyApiGetNewlyRegisteredEnterprise (int? top = null) { ApiResponse> localVarResponse = CompanyApiGetNewlyRegisteredEnterpriseWithHttpInfo(top); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// ApiResponse of List<CompanySimpleViewModel> public ApiResponse< List > CompanyApiGetNewlyRegisteredEnterpriseWithHttpInfo (int? top = null) { string localVarPath = "/v1/companies/newlyRegisteredCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetNewlyRegisteredEnterprise", 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 /// (optional, default to 5) /// Task of List<CompanySimpleViewModel> public async System.Threading.Tasks.Task> CompanyApiGetNewlyRegisteredEnterpriseAsync (int? top = null) { ApiResponse> localVarResponse = await CompanyApiGetNewlyRegisteredEnterpriseAsyncWithHttpInfo(top); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 5) /// Task of ApiResponse (List<CompanySimpleViewModel>) public async System.Threading.Tasks.Task>> CompanyApiGetNewlyRegisteredEnterpriseAsyncWithHttpInfo (int? top = null) { string localVarPath = "/v1/companies/newlyRegisteredCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetNewlyRegisteredEnterprise", 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 /// List<TreeNodeViewModel> public List CompanyApiGetRegions () { ApiResponse> localVarResponse = CompanyApiGetRegionsWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<TreeNodeViewModel> public ApiResponse< List > CompanyApiGetRegionsWithHttpInfo () { string localVarPath = "/v1/regions"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetRegions", 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<TreeNodeViewModel> public async System.Threading.Tasks.Task> CompanyApiGetRegionsAsync () { ApiResponse> localVarResponse = await CompanyApiGetRegionsAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<TreeNodeViewModel>) public async System.Threading.Tasks.Task>> CompanyApiGetRegionsAsyncWithHttpInfo () { string localVarPath = "/v1/regions"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiGetRegions", 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 /// /// public void CompanyApiInitializeCms (int? companyId) { CompanyApiInitializeCmsWithHttpInfo(companyId); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse CompanyApiInitializeCmsWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiInitializeCms"); string localVarPath = "/v1/initializecms"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiInitializeCms", 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 CompanyApiInitializeCmsAsync (int? companyId) { await CompanyApiInitializeCmsAsyncWithHttpInfo(companyId); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyApiInitializeCmsAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyApiApi->CompanyApiInitializeCms"); string localVarPath = "/v1/initializecms"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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[] { }; string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiInitializeCms", 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 /// BoolViewModel public BoolViewModel CompanyApiIsCompanyMainAdminOrSubAdmin () { ApiResponse localVarResponse = CompanyApiIsCompanyMainAdminOrSubAdminWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of BoolViewModel public ApiResponse< BoolViewModel > CompanyApiIsCompanyMainAdminOrSubAdminWithHttpInfo () { string localVarPath = "/v1/companies/isCompanyMainAdminOrSubAdmin"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiIsCompanyMainAdminOrSubAdmin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of BoolViewModel public async System.Threading.Tasks.Task CompanyApiIsCompanyMainAdminOrSubAdminAsync () { ApiResponse localVarResponse = await CompanyApiIsCompanyMainAdminOrSubAdminAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (BoolViewModel) public async System.Threading.Tasks.Task> CompanyApiIsCompanyMainAdminOrSubAdminAsyncWithHttpInfo () { string localVarPath = "/v1/companies/isCompanyMainAdminOrSubAdmin"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiIsCompanyMainAdminOrSubAdmin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// MyCompanyProfileViewModel public MyCompanyProfileViewModel CompanyApiMyCompany () { ApiResponse localVarResponse = CompanyApiMyCompanyWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of MyCompanyProfileViewModel public ApiResponse< MyCompanyProfileViewModel > CompanyApiMyCompanyWithHttpInfo () { string localVarPath = "/v1/myCompany"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiMyCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MyCompanyProfileViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MyCompanyProfileViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of MyCompanyProfileViewModel public async System.Threading.Tasks.Task CompanyApiMyCompanyAsync () { ApiResponse localVarResponse = await CompanyApiMyCompanyAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (MyCompanyProfileViewModel) public async System.Threading.Tasks.Task> CompanyApiMyCompanyAsyncWithHttpInfo () { string localVarPath = "/v1/myCompany"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiMyCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MyCompanyProfileViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MyCompanyProfileViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// List<NearCompanyViewModel> public List CompanyApiNearPromotionCompanies (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null) { ApiResponse> localVarResponse = CompanyApiNearPromotionCompaniesWithHttpInfo(longitude, latitude, currPage, pageSize); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// ApiResponse of List<NearCompanyViewModel> public ApiResponse< List > CompanyApiNearPromotionCompaniesWithHttpInfo (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null) { string localVarPath = "/v1/nearPromotionCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (currPage != null) localVarQueryParams.Add("currPage", Configuration.ApiClient.ParameterToString(currPage)); // query parameter if (pageSize != null) localVarQueryParams.Add("pageSize", Configuration.ApiClient.ParameterToString(pageSize)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiNearPromotionCompanies", 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 /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// Task of List<NearCompanyViewModel> public async System.Threading.Tasks.Task> CompanyApiNearPromotionCompaniesAsync (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null) { ApiResponse> localVarResponse = await CompanyApiNearPromotionCompaniesAsyncWithHttpInfo(longitude, latitude, currPage, pageSize); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 1) /// (optional, default to 10) /// Task of ApiResponse (List<NearCompanyViewModel>) public async System.Threading.Tasks.Task>> CompanyApiNearPromotionCompaniesAsyncWithHttpInfo (double? longitude = null, double? latitude = null, int? currPage = null, int? pageSize = null) { string localVarPath = "/v1/nearPromotionCompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (currPage != null) localVarQueryParams.Add("currPage", Configuration.ApiClient.ParameterToString(currPage)); // query parameter if (pageSize != null) localVarQueryParams.Add("pageSize", Configuration.ApiClient.ParameterToString(pageSize)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiNearPromotionCompanies", 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 /// List<CompanyForApplyingViewModel> public List CompanyApiRecommendCompany () { ApiResponse> localVarResponse = CompanyApiRecommendCompanyWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<CompanyForApplyingViewModel> public ApiResponse< List > CompanyApiRecommendCompanyWithHttpInfo () { string localVarPath = "/v1/recommendcompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiRecommendCompany", 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<CompanyForApplyingViewModel> public async System.Threading.Tasks.Task> CompanyApiRecommendCompanyAsync () { ApiResponse> localVarResponse = await CompanyApiRecommendCompanyAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<CompanyForApplyingViewModel>) public async System.Threading.Tasks.Task>> CompanyApiRecommendCompanyAsyncWithHttpInfo () { string localVarPath = "/v1/recommendcompanies"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiRecommendCompany", 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 /// /// (optional) /// (optional) /// List<SearchCompanyViewModel> public List CompanyApiSearchCompanyByNameForJoining (string modelQ, int? modelLimit = null, int? modelOffset = null) { ApiResponse> localVarResponse = CompanyApiSearchCompanyByNameForJoiningWithHttpInfo(modelQ, modelLimit, modelOffset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// ApiResponse of List<SearchCompanyViewModel> public ApiResponse< List > CompanyApiSearchCompanyByNameForJoiningWithHttpInfo (string modelQ, int? modelLimit = null, int? modelOffset = null) { // verify the required parameter 'modelQ' is set if (modelQ == null) throw new ApiException(400, "Missing required parameter 'modelQ' when calling CompanyApiApi->CompanyApiSearchCompanyByNameForJoining"); string localVarPath = "/v1/companies/_search"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (modelQ != null) localVarQueryParams.Add("model.q", Configuration.ApiClient.ParameterToString(modelQ)); // query parameter if (modelLimit != null) localVarQueryParams.Add("model.limit", Configuration.ApiClient.ParameterToString(modelLimit)); // query parameter if (modelOffset != null) localVarQueryParams.Add("model.offset", Configuration.ApiClient.ParameterToString(modelOffset)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiSearchCompanyByNameForJoining", 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 /// /// (optional) /// (optional) /// Task of List<SearchCompanyViewModel> public async System.Threading.Tasks.Task> CompanyApiSearchCompanyByNameForJoiningAsync (string modelQ, int? modelLimit = null, int? modelOffset = null) { ApiResponse> localVarResponse = await CompanyApiSearchCompanyByNameForJoiningAsyncWithHttpInfo(modelQ, modelLimit, modelOffset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional) /// (optional) /// Task of ApiResponse (List<SearchCompanyViewModel>) public async System.Threading.Tasks.Task>> CompanyApiSearchCompanyByNameForJoiningAsyncWithHttpInfo (string modelQ, int? modelLimit = null, int? modelOffset = null) { // verify the required parameter 'modelQ' is set if (modelQ == null) throw new ApiException(400, "Missing required parameter 'modelQ' when calling CompanyApiApi->CompanyApiSearchCompanyByNameForJoining"); string localVarPath = "/v1/companies/_search"; Dictionary localVarQueryParams = new Dictionary(); Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); Dictionary 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 (modelQ != null) localVarQueryParams.Add("model.q", Configuration.ApiClient.ParameterToString(modelQ)); // query parameter if (modelLimit != null) localVarQueryParams.Add("model.limit", Configuration.ApiClient.ParameterToString(modelLimit)); // query parameter if (modelOffset != null) localVarQueryParams.Add("model.offset", Configuration.ApiClient.ParameterToString(modelOffset)); // query parameter // make the HTTP request HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyApiSearchCompanyByNameForJoining", 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))); } } }