/* * 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 ICmsApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// List<AutoCompleteViewModel> List CmsApiAutoCompleteCustomPages (int? companyId, string q); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<AutoCompleteViewModel> ApiResponse> CmsApiAutoCompleteCustomPagesWithHttpInfo (int? companyId, string q); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CmsSettingViewModel CmsSettingViewModel CmsApiCmsSettingByCompanyId (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CmsSettingViewModel ApiResponse CmsApiCmsSettingByCompanyIdWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<UserSimpleViewModel> List CmsApiGetAllCompanyCustomerServicesByCompanyId (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<UserSimpleViewModel> ApiResponse> CmsApiGetAllCompanyCustomerServicesByCompanyIdWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<CompanyMemberViewModel> List CmsApiGetAllCompanyMembersByCompanyId (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> ApiResponse> CmsApiGetAllCompanyMembersByCompanyIdWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<UserSimpleViewModel> List CmsApiGetAllCompanyMembersCached (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<UserSimpleViewModel> ApiResponse> CmsApiGetAllCompanyMembersCachedWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ArticleTypeSimpleViewModel ArticleTypeSimpleViewModel CmsApiGetArticleType (long? articleTypeId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of ArticleTypeSimpleViewModel ApiResponse CmsApiGetArticleTypeWithHttpInfo (long? articleTypeId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<ArticleViewModel> List CmsApiGetArticlesByIds (List articleIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ArticleViewModel> ApiResponse> CmsApiGetArticlesByIdsWithHttpInfo (List articleIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// ArticleDetailViewModel ArticleDetailViewModel CmsApiGetArticlesDetail (long? articleId, bool? isDetail = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// ApiResponse of ArticleDetailViewModel ApiResponse CmsApiGetArticlesDetailWithHttpInfo (long? articleId, bool? isDetail = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// QueryResultArticleViewModel QueryResultArticleViewModel CmsApiGetArticlesOfArticleType (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultArticleViewModel ApiResponse CmsApiGetArticlesOfArticleTypeWithHttpInfo (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// List<CategoryItemViewModel> List CmsApiGetCategoriesByIdsCached (int? companyId, List categoryIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<CategoryItemViewModel> ApiResponse> CmsApiGetCategoriesByIdsCachedWithHttpInfo (int? companyId, List categoryIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// UsedCategoryViewModel UsedCategoryViewModel CmsApiGetCategory (string type, long? categoryId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of UsedCategoryViewModel ApiResponse CmsApiGetCategoryWithHttpInfo (string type, long? categoryId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanySystemAndCustomCategoriesViewModel CompanySystemAndCustomCategoriesViewModel CmsApiGetCompanyAllUsedCategoriesCached (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanySystemAndCustomCategoriesViewModel ApiResponse CmsApiGetCompanyAllUsedCategoriesCachedWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyDetailViewModel CompanyDetailViewModel CmsApiGetCompanyDetail (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyDetailViewModel ApiResponse CmsApiGetCompanyDetailWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<FriendlyLinkViewModel> List CmsApiGetCompanyFriendlyLinksCached (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<FriendlyLinkViewModel> ApiResponse> CmsApiGetCompanyFriendlyLinksCachedWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// List<ProductSimpleViewModel> List CmsApiGetCompanyMultiProductsCached (int? companyId, List productIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<ProductSimpleViewModel> ApiResponse> CmsApiGetCompanyMultiProductsCachedWithHttpInfo (int? companyId, List productIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CustomPageViewModel CustomPageViewModel CmsApiGetCustomPageAsync (long? customPageId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CustomPageViewModel ApiResponse CmsApiGetCustomPageAsyncWithHttpInfo (long? customPageId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberViewModel CompanyMemberViewModel CmsApiGetMyCompanyMember (int? authenticatedUserId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberViewModel ApiResponse CmsApiGetMyCompanyMemberWithHttpInfo (int? authenticatedUserId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<CompanyMemberViewModel> List CmsApiGetMyCompanyMembers (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> ApiResponse> CmsApiGetMyCompanyMembersWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<NavigationViewModel> List CmsApiGetNavigations (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<NavigationViewModel> ApiResponse> CmsApiGetNavigationsWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ProductTitleViewModel ProductTitleViewModel CmsApiGetNextProduct (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ProductTitleViewModel ApiResponse CmsApiGetNextProductWithHttpInfo (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ProductTitleViewModel ProductTitleViewModel CmsApiGetPreProduct (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ProductTitleViewModel ApiResponse CmsApiGetPreProductWithHttpInfo (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ArticleTypeSimpleViewModel ArticleTypeSimpleViewModel CmsApiGetPresetArticleType (int? companyId, string presetPage); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ArticleTypeSimpleViewModel ApiResponse CmsApiGetPresetArticleTypeWithHttpInfo (int? companyId, string presetPage); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultArticleViewModel QueryResultArticleViewModel CmsApiGetPresetArticles (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultArticleViewModel ApiResponse CmsApiGetPresetArticlesWithHttpInfo (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ProductDetailViewModel ProductDetailViewModel CmsApiGetProductDetail (long? productId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of ProductDetailViewModel ApiResponse CmsApiGetProductDetailWithHttpInfo (long? productId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<ProductSimpleViewModel> List CmsApiGetProductsByIds (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ProductSimpleViewModel> ApiResponse> CmsApiGetProductsByIdsWithHttpInfo (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<ProductSimpleViewModel> List CmsApiGetProductsByProductIds (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ProductSimpleViewModel> ApiResponse> CmsApiGetProductsByProductIdsWithHttpInfo (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultProductSimpleViewModel QueryResultProductSimpleViewModel CmsApiGetProductsInCms (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultProductSimpleViewModel ApiResponse CmsApiGetProductsInCmsWithHttpInfo (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// List<ProductSimpleViewModel> List CmsApiGetRelatedProducts (string title, int? companyId, long? productId, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// ApiResponse of List<ProductSimpleViewModel> ApiResponse> CmsApiGetRelatedProductsWithHttpInfo (string title, int? companyId, long? productId, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<SystemCategoryPathViewModel> List CmsApiGetUsedSystemCategoriesOfCompany (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<SystemCategoryPathViewModel> ApiResponse> CmsApiGetUsedSystemCategoriesOfCompanyWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// BoolViewModel BoolViewModel CmsApiIsShowMembersInShops (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of BoolViewModel ApiResponse CmsApiIsShowMembersInShopsWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CmsSettingViewModel CmsSettingViewModel CmsApiPreviewTemplateCmsSettingByCompanyId (int? companyId, string templateId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CmsSettingViewModel ApiResponse CmsApiPreviewTemplateCmsSettingByCompanyIdWithHttpInfo (int? companyId, string templateId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// List<ArticleViewModel> List CmsApiRelated (int? companyId, string title, int? limit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of List<ArticleViewModel> ApiResponse> CmsApiRelatedWithHttpInfo (int? companyId, string title, int? limit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// CompanySystemAndCustomCategoriesViewModel CompanySystemAndCustomCategoriesViewModel CmsApiSearchAllUsedCategoriesOfCompany (int? companyId, string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// ApiResponse of CompanySystemAndCustomCategoriesViewModel ApiResponse CmsApiSearchAllUsedCategoriesOfCompanyWithHttpInfo (int? companyId, string q = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of List<AutoCompleteViewModel> System.Threading.Tasks.Task> CmsApiAutoCompleteCustomPagesAsync (int? companyId, string q); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<AutoCompleteViewModel>) System.Threading.Tasks.Task>> CmsApiAutoCompleteCustomPagesAsyncWithHttpInfo (int? companyId, string q); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CmsSettingViewModel System.Threading.Tasks.Task CmsApiCmsSettingByCompanyIdAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CmsSettingViewModel) System.Threading.Tasks.Task> CmsApiCmsSettingByCompanyIdAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<UserSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetAllCompanyCustomerServicesByCompanyIdAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<UserSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetAllCompanyCustomerServicesByCompanyIdAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<CompanyMemberViewModel> System.Threading.Tasks.Task> CmsApiGetAllCompanyMembersByCompanyIdAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) System.Threading.Tasks.Task>> CmsApiGetAllCompanyMembersByCompanyIdAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<UserSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetAllCompanyMembersCachedAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<UserSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetAllCompanyMembersCachedAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ArticleTypeSimpleViewModel System.Threading.Tasks.Task CmsApiGetArticleTypeAsync (long? articleTypeId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (ArticleTypeSimpleViewModel) System.Threading.Tasks.Task> CmsApiGetArticleTypeAsyncWithHttpInfo (long? articleTypeId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<ArticleViewModel> System.Threading.Tasks.Task> CmsApiGetArticlesByIdsAsync (List articleIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ArticleViewModel>) System.Threading.Tasks.Task>> CmsApiGetArticlesByIdsAsyncWithHttpInfo (List articleIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// Task of ArticleDetailViewModel System.Threading.Tasks.Task CmsApiGetArticlesDetailAsync (long? articleId, bool? isDetail = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// Task of ApiResponse (ArticleDetailViewModel) System.Threading.Tasks.Task> CmsApiGetArticlesDetailAsyncWithHttpInfo (long? articleId, bool? isDetail = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultArticleViewModel System.Threading.Tasks.Task CmsApiGetArticlesOfArticleTypeAsync (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultArticleViewModel) System.Threading.Tasks.Task> CmsApiGetArticlesOfArticleTypeAsyncWithHttpInfo (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of List<CategoryItemViewModel> System.Threading.Tasks.Task> CmsApiGetCategoriesByIdsCachedAsync (int? companyId, List categoryIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<CategoryItemViewModel>) System.Threading.Tasks.Task>> CmsApiGetCategoriesByIdsCachedAsyncWithHttpInfo (int? companyId, List categoryIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of UsedCategoryViewModel System.Threading.Tasks.Task CmsApiGetCategoryAsync (string type, long? categoryId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (UsedCategoryViewModel) System.Threading.Tasks.Task> CmsApiGetCategoryAsyncWithHttpInfo (string type, long? categoryId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanySystemAndCustomCategoriesViewModel System.Threading.Tasks.Task CmsApiGetCompanyAllUsedCategoriesCachedAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanySystemAndCustomCategoriesViewModel) System.Threading.Tasks.Task> CmsApiGetCompanyAllUsedCategoriesCachedAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyDetailViewModel System.Threading.Tasks.Task CmsApiGetCompanyDetailAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyDetailViewModel) System.Threading.Tasks.Task> CmsApiGetCompanyDetailAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<FriendlyLinkViewModel> System.Threading.Tasks.Task> CmsApiGetCompanyFriendlyLinksCachedAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<FriendlyLinkViewModel>) System.Threading.Tasks.Task>> CmsApiGetCompanyFriendlyLinksCachedAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of List<ProductSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetCompanyMultiProductsCachedAsync (int? companyId, List productIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<ProductSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetCompanyMultiProductsCachedAsyncWithHttpInfo (int? companyId, List productIds); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CustomPageViewModel System.Threading.Tasks.Task CmsApiGetCustomPageAsyncAsync (long? customPageId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CustomPageViewModel) System.Threading.Tasks.Task> CmsApiGetCustomPageAsyncAsyncWithHttpInfo (long? customPageId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberViewModel System.Threading.Tasks.Task CmsApiGetMyCompanyMemberAsync (int? authenticatedUserId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberViewModel) System.Threading.Tasks.Task> CmsApiGetMyCompanyMemberAsyncWithHttpInfo (int? authenticatedUserId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<CompanyMemberViewModel> System.Threading.Tasks.Task> CmsApiGetMyCompanyMembersAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) System.Threading.Tasks.Task>> CmsApiGetMyCompanyMembersAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<NavigationViewModel> System.Threading.Tasks.Task> CmsApiGetNavigationsAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<NavigationViewModel>) System.Threading.Tasks.Task>> CmsApiGetNavigationsAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ProductTitleViewModel System.Threading.Tasks.Task CmsApiGetNextProductAsync (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ProductTitleViewModel) System.Threading.Tasks.Task> CmsApiGetNextProductAsyncWithHttpInfo (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ProductTitleViewModel System.Threading.Tasks.Task CmsApiGetPreProductAsync (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ProductTitleViewModel) System.Threading.Tasks.Task> CmsApiGetPreProductAsyncWithHttpInfo (long? productId, int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ArticleTypeSimpleViewModel System.Threading.Tasks.Task CmsApiGetPresetArticleTypeAsync (int? companyId, string presetPage); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ArticleTypeSimpleViewModel) System.Threading.Tasks.Task> CmsApiGetPresetArticleTypeAsyncWithHttpInfo (int? companyId, string presetPage); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultArticleViewModel System.Threading.Tasks.Task CmsApiGetPresetArticlesAsync (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultArticleViewModel) System.Threading.Tasks.Task> CmsApiGetPresetArticlesAsyncWithHttpInfo (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ProductDetailViewModel System.Threading.Tasks.Task CmsApiGetProductDetailAsync (long? productId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (ProductDetailViewModel) System.Threading.Tasks.Task> CmsApiGetProductDetailAsyncWithHttpInfo (long? productId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<ProductSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetProductsByIdsAsync (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ProductSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetProductsByIdsAsyncWithHttpInfo (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<ProductSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetProductsByProductIdsAsync (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ProductSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetProductsByProductIdsAsyncWithHttpInfo (IdsInputModel args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultProductSimpleViewModel System.Threading.Tasks.Task CmsApiGetProductsInCmsAsync (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultProductSimpleViewModel) System.Threading.Tasks.Task> CmsApiGetProductsInCmsAsyncWithHttpInfo (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// Task of List<ProductSimpleViewModel> System.Threading.Tasks.Task> CmsApiGetRelatedProductsAsync (string title, int? companyId, long? productId, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// Task of ApiResponse (List<ProductSimpleViewModel>) System.Threading.Tasks.Task>> CmsApiGetRelatedProductsAsyncWithHttpInfo (string title, int? companyId, long? productId, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<SystemCategoryPathViewModel> System.Threading.Tasks.Task> CmsApiGetUsedSystemCategoriesOfCompanyAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<SystemCategoryPathViewModel>) System.Threading.Tasks.Task>> CmsApiGetUsedSystemCategoriesOfCompanyAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of BoolViewModel System.Threading.Tasks.Task CmsApiIsShowMembersInShopsAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (BoolViewModel) System.Threading.Tasks.Task> CmsApiIsShowMembersInShopsAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CmsSettingViewModel System.Threading.Tasks.Task CmsApiPreviewTemplateCmsSettingByCompanyIdAsync (int? companyId, string templateId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CmsSettingViewModel) System.Threading.Tasks.Task> CmsApiPreviewTemplateCmsSettingByCompanyIdAsyncWithHttpInfo (int? companyId, string templateId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of List<ArticleViewModel> System.Threading.Tasks.Task> CmsApiRelatedAsync (int? companyId, string title, int? limit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (List<ArticleViewModel>) System.Threading.Tasks.Task>> CmsApiRelatedAsyncWithHttpInfo (int? companyId, string title, int? limit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// Task of CompanySystemAndCustomCategoriesViewModel System.Threading.Tasks.Task CmsApiSearchAllUsedCategoriesOfCompanyAsync (int? companyId, string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// Task of ApiResponse (CompanySystemAndCustomCategoriesViewModel) System.Threading.Tasks.Task> CmsApiSearchAllUsedCategoriesOfCompanyAsyncWithHttpInfo (int? companyId, string q = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class CmsApiApi : ICmsApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public CmsApiApi(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 /// /// /// List<AutoCompleteViewModel> public List CmsApiAutoCompleteCustomPages (int? companyId, string q) { ApiResponse> localVarResponse = CmsApiAutoCompleteCustomPagesWithHttpInfo(companyId, q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<AutoCompleteViewModel> public ApiResponse< List > CmsApiAutoCompleteCustomPagesWithHttpInfo (int? companyId, string q) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiAutoCompleteCustomPages"); // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling CmsApiApi->CmsApiAutoCompleteCustomPages"); var localVarPath = "/v1/cms/autocompletecustomPages"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiAutoCompleteCustomPages", 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<AutoCompleteViewModel> public async System.Threading.Tasks.Task> CmsApiAutoCompleteCustomPagesAsync (int? companyId, string q) { ApiResponse> localVarResponse = await CmsApiAutoCompleteCustomPagesAsyncWithHttpInfo(companyId, q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<AutoCompleteViewModel>) public async System.Threading.Tasks.Task>> CmsApiAutoCompleteCustomPagesAsyncWithHttpInfo (int? companyId, string q) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiAutoCompleteCustomPages"); // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling CmsApiApi->CmsApiAutoCompleteCustomPages"); var localVarPath = "/v1/cms/autocompletecustomPages"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiAutoCompleteCustomPages", 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 /// /// CmsSettingViewModel public CmsSettingViewModel CmsApiCmsSettingByCompanyId (int? companyId) { ApiResponse localVarResponse = CmsApiCmsSettingByCompanyIdWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CmsSettingViewModel public ApiResponse< CmsSettingViewModel > CmsApiCmsSettingByCompanyIdWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiCmsSettingByCompanyId"); var localVarPath = "/v1/cms/settings"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiCmsSettingByCompanyId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CmsSettingViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CmsSettingViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CmsSettingViewModel public async System.Threading.Tasks.Task CmsApiCmsSettingByCompanyIdAsync (int? companyId) { ApiResponse localVarResponse = await CmsApiCmsSettingByCompanyIdAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CmsSettingViewModel) public async System.Threading.Tasks.Task> CmsApiCmsSettingByCompanyIdAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiCmsSettingByCompanyId"); var localVarPath = "/v1/cms/settings"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiCmsSettingByCompanyId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CmsSettingViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CmsSettingViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// List<UserSimpleViewModel> public List CmsApiGetAllCompanyCustomerServicesByCompanyId (int? companyId) { ApiResponse> localVarResponse = CmsApiGetAllCompanyCustomerServicesByCompanyIdWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<UserSimpleViewModel> public ApiResponse< List > CmsApiGetAllCompanyCustomerServicesByCompanyIdWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyCustomerServicesByCompanyId"); var localVarPath = "/v1/cms/companyallcustomerservices"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyCustomerServicesByCompanyId", 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<UserSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetAllCompanyCustomerServicesByCompanyIdAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetAllCompanyCustomerServicesByCompanyIdAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<UserSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetAllCompanyCustomerServicesByCompanyIdAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyCustomerServicesByCompanyId"); var localVarPath = "/v1/cms/companyallcustomerservices"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyCustomerServicesByCompanyId", 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<CompanyMemberViewModel> public List CmsApiGetAllCompanyMembersByCompanyId (int? companyId) { ApiResponse> localVarResponse = CmsApiGetAllCompanyMembersByCompanyIdWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> public ApiResponse< List > CmsApiGetAllCompanyMembersByCompanyIdWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyMembersByCompanyId"); var localVarPath = "/v1/cms/companyallmembers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyMembersByCompanyId", 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<CompanyMemberViewModel> public async System.Threading.Tasks.Task> CmsApiGetAllCompanyMembersByCompanyIdAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetAllCompanyMembersByCompanyIdAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetAllCompanyMembersByCompanyIdAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyMembersByCompanyId"); var localVarPath = "/v1/cms/companyallmembers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyMembersByCompanyId", 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<UserSimpleViewModel> public List CmsApiGetAllCompanyMembersCached (int? companyId) { ApiResponse> localVarResponse = CmsApiGetAllCompanyMembersCachedWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<UserSimpleViewModel> public ApiResponse< List > CmsApiGetAllCompanyMembersCachedWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyMembersCached"); var localVarPath = "/v1/cms/companymemberusers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyMembersCached", 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<UserSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetAllCompanyMembersCachedAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetAllCompanyMembersCachedAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<UserSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetAllCompanyMembersCachedAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetAllCompanyMembersCached"); var localVarPath = "/v1/cms/companymemberusers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetAllCompanyMembersCached", 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 /// /// ArticleTypeSimpleViewModel public ArticleTypeSimpleViewModel CmsApiGetArticleType (long? articleTypeId) { ApiResponse localVarResponse = CmsApiGetArticleTypeWithHttpInfo(articleTypeId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of ArticleTypeSimpleViewModel public ApiResponse< ArticleTypeSimpleViewModel > CmsApiGetArticleTypeWithHttpInfo (long? articleTypeId) { // verify the required parameter 'articleTypeId' is set if (articleTypeId == null) throw new ApiException(400, "Missing required parameter 'articleTypeId' when calling CmsApiApi->CmsApiGetArticleType"); var localVarPath = "/v1/cms/articletype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (articleTypeId != null) localVarQueryParams.Add("articleTypeId", Configuration.ApiClient.ParameterToString(articleTypeId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleTypeSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ArticleTypeSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of ArticleTypeSimpleViewModel public async System.Threading.Tasks.Task CmsApiGetArticleTypeAsync (long? articleTypeId) { ApiResponse localVarResponse = await CmsApiGetArticleTypeAsyncWithHttpInfo(articleTypeId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (ArticleTypeSimpleViewModel) public async System.Threading.Tasks.Task> CmsApiGetArticleTypeAsyncWithHttpInfo (long? articleTypeId) { // verify the required parameter 'articleTypeId' is set if (articleTypeId == null) throw new ApiException(400, "Missing required parameter 'articleTypeId' when calling CmsApiApi->CmsApiGetArticleType"); var localVarPath = "/v1/cms/articletype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (articleTypeId != null) localVarQueryParams.Add("articleTypeId", Configuration.ApiClient.ParameterToString(articleTypeId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleTypeSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ArticleTypeSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// List<ArticleViewModel> public List CmsApiGetArticlesByIds (List articleIds) { ApiResponse> localVarResponse = CmsApiGetArticlesByIdsWithHttpInfo(articleIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ArticleViewModel> public ApiResponse< List > CmsApiGetArticlesByIdsWithHttpInfo (List articleIds) { // verify the required parameter 'articleIds' is set if (articleIds == null) throw new ApiException(400, "Missing required parameter 'articleIds' when calling CmsApiApi->CmsApiGetArticlesByIds"); var localVarPath = "/v1/cms/batcharticles"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (articleIds != null) localVarQueryParams.Add("articleIds", Configuration.ApiClient.ParameterToString(articleIds)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesByIds", 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<ArticleViewModel> public async System.Threading.Tasks.Task> CmsApiGetArticlesByIdsAsync (List articleIds) { ApiResponse> localVarResponse = await CmsApiGetArticlesByIdsAsyncWithHttpInfo(articleIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ArticleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetArticlesByIdsAsyncWithHttpInfo (List articleIds) { // verify the required parameter 'articleIds' is set if (articleIds == null) throw new ApiException(400, "Missing required parameter 'articleIds' when calling CmsApiApi->CmsApiGetArticlesByIds"); var localVarPath = "/v1/cms/batcharticles"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (articleIds != null) localVarQueryParams.Add("articleIds", Configuration.ApiClient.ParameterToString(articleIds)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesByIds", 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) /// ArticleDetailViewModel public ArticleDetailViewModel CmsApiGetArticlesDetail (long? articleId, bool? isDetail = null) { ApiResponse localVarResponse = CmsApiGetArticlesDetailWithHttpInfo(articleId, isDetail); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// ApiResponse of ArticleDetailViewModel public ApiResponse< ArticleDetailViewModel > CmsApiGetArticlesDetailWithHttpInfo (long? articleId, bool? isDetail = null) { // verify the required parameter 'articleId' is set if (articleId == null) throw new ApiException(400, "Missing required parameter 'articleId' when calling CmsApiApi->CmsApiGetArticlesDetail"); var localVarPath = "/v1/cms/article"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (articleId != null) localVarQueryParams.Add("articleId", Configuration.ApiClient.ParameterToString(articleId)); // query parameter if (isDetail != null) localVarQueryParams.Add("isDetail", Configuration.ApiClient.ParameterToString(isDetail)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleDetailViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ArticleDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// Task of ArticleDetailViewModel public async System.Threading.Tasks.Task CmsApiGetArticlesDetailAsync (long? articleId, bool? isDetail = null) { ApiResponse localVarResponse = await CmsApiGetArticlesDetailAsyncWithHttpInfo(articleId, isDetail); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to false) /// Task of ApiResponse (ArticleDetailViewModel) public async System.Threading.Tasks.Task> CmsApiGetArticlesDetailAsyncWithHttpInfo (long? articleId, bool? isDetail = null) { // verify the required parameter 'articleId' is set if (articleId == null) throw new ApiException(400, "Missing required parameter 'articleId' when calling CmsApiApi->CmsApiGetArticlesDetail"); var localVarPath = "/v1/cms/article"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (articleId != null) localVarQueryParams.Add("articleId", Configuration.ApiClient.ParameterToString(articleId)); // query parameter if (isDetail != null) localVarQueryParams.Add("isDetail", Configuration.ApiClient.ParameterToString(isDetail)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleDetailViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ArticleDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// QueryResultArticleViewModel public QueryResultArticleViewModel CmsApiGetArticlesOfArticleType (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null) { ApiResponse localVarResponse = CmsApiGetArticlesOfArticleTypeWithHttpInfo(companyId, articleTypeId, q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultArticleViewModel public ApiResponse< QueryResultArticleViewModel > CmsApiGetArticlesOfArticleTypeWithHttpInfo (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); // verify the required parameter 'articleTypeId' is set if (articleTypeId == null) throw new ApiException(400, "Missing required parameter 'articleTypeId' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); var localVarPath = "/v1/cms/articlesoftype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (articleTypeId != null) localVarQueryParams.Add("articleTypeId", Configuration.ApiClient.ParameterToString(articleTypeId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesOfArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultArticleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultArticleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultArticleViewModel public async System.Threading.Tasks.Task CmsApiGetArticlesOfArticleTypeAsync (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null) { ApiResponse localVarResponse = await CmsApiGetArticlesOfArticleTypeAsyncWithHttpInfo(companyId, articleTypeId, q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultArticleViewModel) public async System.Threading.Tasks.Task> CmsApiGetArticlesOfArticleTypeAsyncWithHttpInfo (int? companyId, long? articleTypeId, string q, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); // verify the required parameter 'articleTypeId' is set if (articleTypeId == null) throw new ApiException(400, "Missing required parameter 'articleTypeId' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling CmsApiApi->CmsApiGetArticlesOfArticleType"); var localVarPath = "/v1/cms/articlesoftype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (articleTypeId != null) localVarQueryParams.Add("articleTypeId", Configuration.ApiClient.ParameterToString(articleTypeId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetArticlesOfArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultArticleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultArticleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// List<CategoryItemViewModel> public List CmsApiGetCategoriesByIdsCached (int? companyId, List categoryIds) { ApiResponse> localVarResponse = CmsApiGetCategoriesByIdsCachedWithHttpInfo(companyId, categoryIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<CategoryItemViewModel> public ApiResponse< List > CmsApiGetCategoriesByIdsCachedWithHttpInfo (int? companyId, List categoryIds) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCategoriesByIdsCached"); // verify the required parameter 'categoryIds' is set if (categoryIds == null) throw new ApiException(400, "Missing required parameter 'categoryIds' when calling CmsApiApi->CmsApiGetCategoriesByIdsCached"); var localVarPath = "/v1/cms/batchcategories"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter localVarPostBody = Configuration.ApiClient.Serialize(categoryIds); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCategoriesByIdsCached", 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<CategoryItemViewModel> public async System.Threading.Tasks.Task> CmsApiGetCategoriesByIdsCachedAsync (int? companyId, List categoryIds) { ApiResponse> localVarResponse = await CmsApiGetCategoriesByIdsCachedAsyncWithHttpInfo(companyId, categoryIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<CategoryItemViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetCategoriesByIdsCachedAsyncWithHttpInfo (int? companyId, List categoryIds) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCategoriesByIdsCached"); // verify the required parameter 'categoryIds' is set if (categoryIds == null) throw new ApiException(400, "Missing required parameter 'categoryIds' when calling CmsApiApi->CmsApiGetCategoriesByIdsCached"); var localVarPath = "/v1/cms/batchcategories"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter localVarPostBody = Configuration.ApiClient.Serialize(categoryIds); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCategoriesByIdsCached", 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 /// /// /// UsedCategoryViewModel public UsedCategoryViewModel CmsApiGetCategory (string type, long? categoryId) { ApiResponse localVarResponse = CmsApiGetCategoryWithHttpInfo(type, categoryId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of UsedCategoryViewModel public ApiResponse< UsedCategoryViewModel > CmsApiGetCategoryWithHttpInfo (string type, long? categoryId) { // verify the required parameter 'type' is set if (type == null) throw new ApiException(400, "Missing required parameter 'type' when calling CmsApiApi->CmsApiGetCategory"); // verify the required parameter 'categoryId' is set if (categoryId == null) throw new ApiException(400, "Missing required parameter 'categoryId' when calling CmsApiApi->CmsApiGetCategory"); var localVarPath = "/v1/cms/usedcategory"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (type != null) localVarQueryParams.Add("type", Configuration.ApiClient.ParameterToString(type)); // query parameter if (categoryId != null) localVarQueryParams.Add("categoryId", Configuration.ApiClient.ParameterToString(categoryId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCategory", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UsedCategoryViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(UsedCategoryViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of UsedCategoryViewModel public async System.Threading.Tasks.Task CmsApiGetCategoryAsync (string type, long? categoryId) { ApiResponse localVarResponse = await CmsApiGetCategoryAsyncWithHttpInfo(type, categoryId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (UsedCategoryViewModel) public async System.Threading.Tasks.Task> CmsApiGetCategoryAsyncWithHttpInfo (string type, long? categoryId) { // verify the required parameter 'type' is set if (type == null) throw new ApiException(400, "Missing required parameter 'type' when calling CmsApiApi->CmsApiGetCategory"); // verify the required parameter 'categoryId' is set if (categoryId == null) throw new ApiException(400, "Missing required parameter 'categoryId' when calling CmsApiApi->CmsApiGetCategory"); var localVarPath = "/v1/cms/usedcategory"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (type != null) localVarQueryParams.Add("type", Configuration.ApiClient.ParameterToString(type)); // query parameter if (categoryId != null) localVarQueryParams.Add("categoryId", Configuration.ApiClient.ParameterToString(categoryId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCategory", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UsedCategoryViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(UsedCategoryViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// CompanySystemAndCustomCategoriesViewModel public CompanySystemAndCustomCategoriesViewModel CmsApiGetCompanyAllUsedCategoriesCached (int? companyId) { ApiResponse localVarResponse = CmsApiGetCompanyAllUsedCategoriesCachedWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanySystemAndCustomCategoriesViewModel public ApiResponse< CompanySystemAndCustomCategoriesViewModel > CmsApiGetCompanyAllUsedCategoriesCachedWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyAllUsedCategoriesCached"); var localVarPath = "/v1/cms/allusedcategoriesofcompany"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyAllUsedCategoriesCached", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanySystemAndCustomCategoriesViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanySystemAndCustomCategoriesViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanySystemAndCustomCategoriesViewModel public async System.Threading.Tasks.Task CmsApiGetCompanyAllUsedCategoriesCachedAsync (int? companyId) { ApiResponse localVarResponse = await CmsApiGetCompanyAllUsedCategoriesCachedAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanySystemAndCustomCategoriesViewModel) public async System.Threading.Tasks.Task> CmsApiGetCompanyAllUsedCategoriesCachedAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyAllUsedCategoriesCached"); var localVarPath = "/v1/cms/allusedcategoriesofcompany"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyAllUsedCategoriesCached", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanySystemAndCustomCategoriesViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanySystemAndCustomCategoriesViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// CompanyDetailViewModel public CompanyDetailViewModel CmsApiGetCompanyDetail (int? companyId) { ApiResponse localVarResponse = CmsApiGetCompanyDetailWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyDetailViewModel public ApiResponse< CompanyDetailViewModel > CmsApiGetCompanyDetailWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyDetail"); var localVarPath = "/v1/cms/company"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyDetail", 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 /// /// Task of CompanyDetailViewModel public async System.Threading.Tasks.Task CmsApiGetCompanyDetailAsync (int? companyId) { ApiResponse localVarResponse = await CmsApiGetCompanyDetailAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyDetailViewModel) public async System.Threading.Tasks.Task> CmsApiGetCompanyDetailAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyDetail"); var localVarPath = "/v1/cms/company"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyDetail", 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<FriendlyLinkViewModel> public List CmsApiGetCompanyFriendlyLinksCached (int? companyId) { ApiResponse> localVarResponse = CmsApiGetCompanyFriendlyLinksCachedWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<FriendlyLinkViewModel> public ApiResponse< List > CmsApiGetCompanyFriendlyLinksCachedWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyFriendlyLinksCached"); var localVarPath = "/v1/cms/friendlylinks"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyFriendlyLinksCached", 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<FriendlyLinkViewModel> public async System.Threading.Tasks.Task> CmsApiGetCompanyFriendlyLinksCachedAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetCompanyFriendlyLinksCachedAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<FriendlyLinkViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetCompanyFriendlyLinksCachedAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyFriendlyLinksCached"); var localVarPath = "/v1/cms/friendlylinks"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyFriendlyLinksCached", 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<ProductSimpleViewModel> public List CmsApiGetCompanyMultiProductsCached (int? companyId, List productIds) { ApiResponse> localVarResponse = CmsApiGetCompanyMultiProductsCachedWithHttpInfo(companyId, productIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<ProductSimpleViewModel> public ApiResponse< List > CmsApiGetCompanyMultiProductsCachedWithHttpInfo (int? companyId, List productIds) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyMultiProductsCached"); // verify the required parameter 'productIds' is set if (productIds == null) throw new ApiException(400, "Missing required parameter 'productIds' when calling CmsApiApi->CmsApiGetCompanyMultiProductsCached"); var localVarPath = "/v1/cms/companymultiproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter localVarPostBody = Configuration.ApiClient.Serialize(productIds); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyMultiProductsCached", 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<ProductSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetCompanyMultiProductsCachedAsync (int? companyId, List productIds) { ApiResponse> localVarResponse = await CmsApiGetCompanyMultiProductsCachedAsyncWithHttpInfo(companyId, productIds); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<ProductSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetCompanyMultiProductsCachedAsyncWithHttpInfo (int? companyId, List productIds) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetCompanyMultiProductsCached"); // verify the required parameter 'productIds' is set if (productIds == null) throw new ApiException(400, "Missing required parameter 'productIds' when calling CmsApiApi->CmsApiGetCompanyMultiProductsCached"); var localVarPath = "/v1/cms/companymultiproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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 (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter localVarPostBody = Configuration.ApiClient.Serialize(productIds); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCompanyMultiProductsCached", 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 /// /// CustomPageViewModel public CustomPageViewModel CmsApiGetCustomPageAsync (long? customPageId) { ApiResponse localVarResponse = CmsApiGetCustomPageAsyncWithHttpInfo(customPageId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CustomPageViewModel public ApiResponse< CustomPageViewModel > CmsApiGetCustomPageAsyncWithHttpInfo (long? customPageId) { // verify the required parameter 'customPageId' is set if (customPageId == null) throw new ApiException(400, "Missing required parameter 'customPageId' when calling CmsApiApi->CmsApiGetCustomPageAsync"); var localVarPath = "/v1/cms/customPages"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (customPageId != null) localVarQueryParams.Add("customPageId", Configuration.ApiClient.ParameterToString(customPageId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCustomPageAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CustomPageViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CustomPageViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CustomPageViewModel public async System.Threading.Tasks.Task CmsApiGetCustomPageAsyncAsync (long? customPageId) { ApiResponse localVarResponse = await CmsApiGetCustomPageAsyncAsyncWithHttpInfo(customPageId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CustomPageViewModel) public async System.Threading.Tasks.Task> CmsApiGetCustomPageAsyncAsyncWithHttpInfo (long? customPageId) { // verify the required parameter 'customPageId' is set if (customPageId == null) throw new ApiException(400, "Missing required parameter 'customPageId' when calling CmsApiApi->CmsApiGetCustomPageAsync"); var localVarPath = "/v1/cms/customPages"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (customPageId != null) localVarQueryParams.Add("customPageId", Configuration.ApiClient.ParameterToString(customPageId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetCustomPageAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CustomPageViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CustomPageViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberViewModel public CompanyMemberViewModel CmsApiGetMyCompanyMember (int? authenticatedUserId) { ApiResponse localVarResponse = CmsApiGetMyCompanyMemberWithHttpInfo(authenticatedUserId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberViewModel public ApiResponse< CompanyMemberViewModel > CmsApiGetMyCompanyMemberWithHttpInfo (int? authenticatedUserId) { // verify the required parameter 'authenticatedUserId' is set if (authenticatedUserId == null) throw new ApiException(400, "Missing required parameter 'authenticatedUserId' when calling CmsApiApi->CmsApiGetMyCompanyMember"); var localVarPath = "/v1/cms/mycompanymember"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (authenticatedUserId != null) localVarQueryParams.Add("authenticatedUserId", Configuration.ApiClient.ParameterToString(authenticatedUserId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetMyCompanyMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberViewModel public async System.Threading.Tasks.Task CmsApiGetMyCompanyMemberAsync (int? authenticatedUserId) { ApiResponse localVarResponse = await CmsApiGetMyCompanyMemberAsyncWithHttpInfo(authenticatedUserId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberViewModel) public async System.Threading.Tasks.Task> CmsApiGetMyCompanyMemberAsyncWithHttpInfo (int? authenticatedUserId) { // verify the required parameter 'authenticatedUserId' is set if (authenticatedUserId == null) throw new ApiException(400, "Missing required parameter 'authenticatedUserId' when calling CmsApiApi->CmsApiGetMyCompanyMember"); var localVarPath = "/v1/cms/mycompanymember"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (authenticatedUserId != null) localVarQueryParams.Add("authenticatedUserId", Configuration.ApiClient.ParameterToString(authenticatedUserId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetMyCompanyMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// List<CompanyMemberViewModel> public List CmsApiGetMyCompanyMembers (int? companyId) { ApiResponse> localVarResponse = CmsApiGetMyCompanyMembersWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> public ApiResponse< List > CmsApiGetMyCompanyMembersWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetMyCompanyMembers"); var localVarPath = "/v1/cms/mycompanymembers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetMyCompanyMembers", 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<CompanyMemberViewModel> public async System.Threading.Tasks.Task> CmsApiGetMyCompanyMembersAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetMyCompanyMembersAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetMyCompanyMembersAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetMyCompanyMembers"); var localVarPath = "/v1/cms/mycompanymembers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetMyCompanyMembers", 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<NavigationViewModel> public List CmsApiGetNavigations (int? companyId) { ApiResponse> localVarResponse = CmsApiGetNavigationsWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<NavigationViewModel> public ApiResponse< List > CmsApiGetNavigationsWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetNavigations"); var localVarPath = "/v1/cms/navigations"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetNavigations", 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<NavigationViewModel> public async System.Threading.Tasks.Task> CmsApiGetNavigationsAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetNavigationsAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<NavigationViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetNavigationsAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetNavigations"); var localVarPath = "/v1/cms/navigations"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetNavigations", 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 /// /// /// ProductTitleViewModel public ProductTitleViewModel CmsApiGetNextProduct (long? productId, int? companyId) { ApiResponse localVarResponse = CmsApiGetNextProductWithHttpInfo(productId, companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ProductTitleViewModel public ApiResponse< ProductTitleViewModel > CmsApiGetNextProductWithHttpInfo (long? productId, int? companyId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetNextProduct"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetNextProduct"); var localVarPath = "/v1/cms/nextproduct"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetNextProduct", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductTitleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ProductTitleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ProductTitleViewModel public async System.Threading.Tasks.Task CmsApiGetNextProductAsync (long? productId, int? companyId) { ApiResponse localVarResponse = await CmsApiGetNextProductAsyncWithHttpInfo(productId, companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ProductTitleViewModel) public async System.Threading.Tasks.Task> CmsApiGetNextProductAsyncWithHttpInfo (long? productId, int? companyId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetNextProduct"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetNextProduct"); var localVarPath = "/v1/cms/nextproduct"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetNextProduct", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductTitleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ProductTitleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// ProductTitleViewModel public ProductTitleViewModel CmsApiGetPreProduct (long? productId, int? companyId) { ApiResponse localVarResponse = CmsApiGetPreProductWithHttpInfo(productId, companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ProductTitleViewModel public ApiResponse< ProductTitleViewModel > CmsApiGetPreProductWithHttpInfo (long? productId, int? companyId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetPreProduct"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPreProduct"); var localVarPath = "/v1/cms/preproduct"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPreProduct", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductTitleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ProductTitleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ProductTitleViewModel public async System.Threading.Tasks.Task CmsApiGetPreProductAsync (long? productId, int? companyId) { ApiResponse localVarResponse = await CmsApiGetPreProductAsyncWithHttpInfo(productId, companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ProductTitleViewModel) public async System.Threading.Tasks.Task> CmsApiGetPreProductAsyncWithHttpInfo (long? productId, int? companyId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetPreProduct"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPreProduct"); var localVarPath = "/v1/cms/preproduct"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPreProduct", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductTitleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ProductTitleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// ArticleTypeSimpleViewModel public ArticleTypeSimpleViewModel CmsApiGetPresetArticleType (int? companyId, string presetPage) { ApiResponse localVarResponse = CmsApiGetPresetArticleTypeWithHttpInfo(companyId, presetPage); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of ArticleTypeSimpleViewModel public ApiResponse< ArticleTypeSimpleViewModel > CmsApiGetPresetArticleTypeWithHttpInfo (int? companyId, string presetPage) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPresetArticleType"); // verify the required parameter 'presetPage' is set if (presetPage == null) throw new ApiException(400, "Missing required parameter 'presetPage' when calling CmsApiApi->CmsApiGetPresetArticleType"); var localVarPath = "/v1/cms/presetarticletype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (presetPage != null) localVarQueryParams.Add("presetPage", Configuration.ApiClient.ParameterToString(presetPage)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPresetArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleTypeSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ArticleTypeSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ArticleTypeSimpleViewModel public async System.Threading.Tasks.Task CmsApiGetPresetArticleTypeAsync (int? companyId, string presetPage) { ApiResponse localVarResponse = await CmsApiGetPresetArticleTypeAsyncWithHttpInfo(companyId, presetPage); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (ArticleTypeSimpleViewModel) public async System.Threading.Tasks.Task> CmsApiGetPresetArticleTypeAsyncWithHttpInfo (int? companyId, string presetPage) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPresetArticleType"); // verify the required parameter 'presetPage' is set if (presetPage == null) throw new ApiException(400, "Missing required parameter 'presetPage' when calling CmsApiApi->CmsApiGetPresetArticleType"); var localVarPath = "/v1/cms/presetarticletype"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (presetPage != null) localVarQueryParams.Add("presetPage", Configuration.ApiClient.ParameterToString(presetPage)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPresetArticleType", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ArticleTypeSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ArticleTypeSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultArticleViewModel public QueryResultArticleViewModel CmsApiGetPresetArticles (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = CmsApiGetPresetArticlesWithHttpInfo(companyId, presetPage, q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultArticleViewModel public ApiResponse< QueryResultArticleViewModel > CmsApiGetPresetArticlesWithHttpInfo (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPresetArticles"); // verify the required parameter 'presetPage' is set if (presetPage == null) throw new ApiException(400, "Missing required parameter 'presetPage' when calling CmsApiApi->CmsApiGetPresetArticles"); var localVarPath = "/v1/cms/presetarticles"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (presetPage != null) localVarQueryParams.Add("presetPage", Configuration.ApiClient.ParameterToString(presetPage)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPresetArticles", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultArticleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultArticleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultArticleViewModel public async System.Threading.Tasks.Task CmsApiGetPresetArticlesAsync (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = await CmsApiGetPresetArticlesAsyncWithHttpInfo(companyId, presetPage, q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// (optional, default to ) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultArticleViewModel) public async System.Threading.Tasks.Task> CmsApiGetPresetArticlesAsyncWithHttpInfo (int? companyId, string presetPage, string q = null, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetPresetArticles"); // verify the required parameter 'presetPage' is set if (presetPage == null) throw new ApiException(400, "Missing required parameter 'presetPage' when calling CmsApiApi->CmsApiGetPresetArticles"); var localVarPath = "/v1/cms/presetarticles"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (presetPage != null) localVarQueryParams.Add("presetPage", Configuration.ApiClient.ParameterToString(presetPage)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetPresetArticles", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultArticleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultArticleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// ProductDetailViewModel public ProductDetailViewModel CmsApiGetProductDetail (long? productId) { ApiResponse localVarResponse = CmsApiGetProductDetailWithHttpInfo(productId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of ProductDetailViewModel public ApiResponse< ProductDetailViewModel > CmsApiGetProductDetailWithHttpInfo (long? productId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetProductDetail"); var localVarPath = "/v1/cms/productdetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductDetailViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(ProductDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of ProductDetailViewModel public async System.Threading.Tasks.Task CmsApiGetProductDetailAsync (long? productId) { ApiResponse localVarResponse = await CmsApiGetProductDetailAsyncWithHttpInfo(productId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (ProductDetailViewModel) public async System.Threading.Tasks.Task> CmsApiGetProductDetailAsyncWithHttpInfo (long? productId) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetProductDetail"); var localVarPath = "/v1/cms/productdetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (ProductDetailViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(ProductDetailViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// List<ProductSimpleViewModel> public List CmsApiGetProductsByIds (IdsInputModel args) { ApiResponse> localVarResponse = CmsApiGetProductsByIdsWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ProductSimpleViewModel> public ApiResponse< List > CmsApiGetProductsByIdsWithHttpInfo (IdsInputModel args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling CmsApiApi->CmsApiGetProductsByIds"); var localVarPath = "/v1/cms/batchproductsasync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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(args); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsByIds", 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<ProductSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetProductsByIdsAsync (IdsInputModel args) { ApiResponse> localVarResponse = await CmsApiGetProductsByIdsAsyncWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ProductSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetProductsByIdsAsyncWithHttpInfo (IdsInputModel args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling CmsApiApi->CmsApiGetProductsByIds"); var localVarPath = "/v1/cms/batchproductsasync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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(args); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsByIds", 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<ProductSimpleViewModel> public List CmsApiGetProductsByProductIds (IdsInputModel args) { ApiResponse> localVarResponse = CmsApiGetProductsByProductIdsWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ProductSimpleViewModel> public ApiResponse< List > CmsApiGetProductsByProductIdsWithHttpInfo (IdsInputModel args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling CmsApiApi->CmsApiGetProductsByProductIds"); var localVarPath = "/v1/cms/batchproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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(args); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsByProductIds", 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<ProductSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetProductsByProductIdsAsync (IdsInputModel args) { ApiResponse> localVarResponse = await CmsApiGetProductsByProductIdsAsyncWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ProductSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetProductsByProductIdsAsyncWithHttpInfo (IdsInputModel args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling CmsApiApi->CmsApiGetProductsByProductIds"); var localVarPath = "/v1/cms/batchproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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(args); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsByProductIds", 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 ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultProductSimpleViewModel public QueryResultProductSimpleViewModel CmsApiGetProductsInCms (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = CmsApiGetProductsInCmsWithHttpInfo(companyId, q, categoryId, customCategoryId, orderBy, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultProductSimpleViewModel public ApiResponse< QueryResultProductSimpleViewModel > CmsApiGetProductsInCmsWithHttpInfo (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetProductsInCms"); var localVarPath = "/v1/cms/products"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (categoryId != null) localVarQueryParams.Add("categoryId", Configuration.ApiClient.ParameterToString(categoryId)); // query parameter if (customCategoryId != null) localVarQueryParams.Add("customCategoryId", Configuration.ApiClient.ParameterToString(customCategoryId)); // query parameter if (orderBy != null) localVarQueryParams.Add("orderBy", Configuration.ApiClient.ParameterToString(orderBy)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsInCms", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultProductSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultProductSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultProductSimpleViewModel public async System.Threading.Tasks.Task CmsApiGetProductsInCmsAsync (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = await CmsApiGetProductsInCmsAsyncWithHttpInfo(companyId, q, categoryId, customCategoryId, orderBy, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 2) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultProductSimpleViewModel) public async System.Threading.Tasks.Task> CmsApiGetProductsInCmsAsyncWithHttpInfo (int? companyId, string q = null, int? categoryId = null, int? customCategoryId = null, string orderBy = null, int? limit = null, int? offset = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetProductsInCms"); var localVarPath = "/v1/cms/products"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (categoryId != null) localVarQueryParams.Add("categoryId", Configuration.ApiClient.ParameterToString(categoryId)); // query parameter if (customCategoryId != null) localVarQueryParams.Add("customCategoryId", Configuration.ApiClient.ParameterToString(customCategoryId)); // query parameter if (orderBy != null) localVarQueryParams.Add("orderBy", Configuration.ApiClient.ParameterToString(orderBy)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetProductsInCms", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultProductSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultProductSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// List<ProductSimpleViewModel> public List CmsApiGetRelatedProducts (string title, int? companyId, long? productId, int? limit = null) { ApiResponse> localVarResponse = CmsApiGetRelatedProductsWithHttpInfo(title, companyId, productId, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// ApiResponse of List<ProductSimpleViewModel> public ApiResponse< List > CmsApiGetRelatedProductsWithHttpInfo (string title, int? companyId, long? productId, int? limit = null) { // verify the required parameter 'title' is set if (title == null) throw new ApiException(400, "Missing required parameter 'title' when calling CmsApiApi->CmsApiGetRelatedProducts"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetRelatedProducts"); // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetRelatedProducts"); var localVarPath = "/v1/cms/relatedproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (title != null) localVarQueryParams.Add("title", Configuration.ApiClient.ParameterToString(title)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetRelatedProducts", 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 4) /// Task of List<ProductSimpleViewModel> public async System.Threading.Tasks.Task> CmsApiGetRelatedProductsAsync (string title, int? companyId, long? productId, int? limit = null) { ApiResponse> localVarResponse = await CmsApiGetRelatedProductsAsyncWithHttpInfo(title, companyId, productId, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// (optional, default to 4) /// Task of ApiResponse (List<ProductSimpleViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetRelatedProductsAsyncWithHttpInfo (string title, int? companyId, long? productId, int? limit = null) { // verify the required parameter 'title' is set if (title == null) throw new ApiException(400, "Missing required parameter 'title' when calling CmsApiApi->CmsApiGetRelatedProducts"); // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetRelatedProducts"); // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling CmsApiApi->CmsApiGetRelatedProducts"); var localVarPath = "/v1/cms/relatedproducts"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (title != null) localVarQueryParams.Add("title", Configuration.ApiClient.ParameterToString(title)); // query parameter if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetRelatedProducts", 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<SystemCategoryPathViewModel> public List CmsApiGetUsedSystemCategoriesOfCompany (int? companyId) { ApiResponse> localVarResponse = CmsApiGetUsedSystemCategoriesOfCompanyWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<SystemCategoryPathViewModel> public ApiResponse< List > CmsApiGetUsedSystemCategoriesOfCompanyWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetUsedSystemCategoriesOfCompany"); var localVarPath = "/v1/cms/allusedsystemcategories"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetUsedSystemCategoriesOfCompany", 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<SystemCategoryPathViewModel> public async System.Threading.Tasks.Task> CmsApiGetUsedSystemCategoriesOfCompanyAsync (int? companyId) { ApiResponse> localVarResponse = await CmsApiGetUsedSystemCategoriesOfCompanyAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<SystemCategoryPathViewModel>) public async System.Threading.Tasks.Task>> CmsApiGetUsedSystemCategoriesOfCompanyAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiGetUsedSystemCategoriesOfCompany"); var localVarPath = "/v1/cms/allusedsystemcategories"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiGetUsedSystemCategoriesOfCompany", 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 /// /// BoolViewModel public BoolViewModel CmsApiIsShowMembersInShops (int? companyId) { ApiResponse localVarResponse = CmsApiIsShowMembersInShopsWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of BoolViewModel public ApiResponse< BoolViewModel > CmsApiIsShowMembersInShopsWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiIsShowMembersInShops"); var localVarPath = "/v1/cms/IsShowMembersInShops"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiIsShowMembersInShops", 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 CmsApiIsShowMembersInShopsAsync (int? companyId) { ApiResponse localVarResponse = await CmsApiIsShowMembersInShopsAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (BoolViewModel) public async System.Threading.Tasks.Task> CmsApiIsShowMembersInShopsAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiIsShowMembersInShops"); var localVarPath = "/v1/cms/IsShowMembersInShops"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiIsShowMembersInShops", 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 /// /// /// CmsSettingViewModel public CmsSettingViewModel CmsApiPreviewTemplateCmsSettingByCompanyId (int? companyId, string templateId) { ApiResponse localVarResponse = CmsApiPreviewTemplateCmsSettingByCompanyIdWithHttpInfo(companyId, templateId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CmsSettingViewModel public ApiResponse< CmsSettingViewModel > CmsApiPreviewTemplateCmsSettingByCompanyIdWithHttpInfo (int? companyId, string templateId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiPreviewTemplateCmsSettingByCompanyId"); // verify the required parameter 'templateId' is set if (templateId == null) throw new ApiException(400, "Missing required parameter 'templateId' when calling CmsApiApi->CmsApiPreviewTemplateCmsSettingByCompanyId"); var localVarPath = "/v1/cms/previewtemplatecmssettings"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (templateId != null) localVarQueryParams.Add("templateId", Configuration.ApiClient.ParameterToString(templateId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiPreviewTemplateCmsSettingByCompanyId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CmsSettingViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CmsSettingViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CmsSettingViewModel public async System.Threading.Tasks.Task CmsApiPreviewTemplateCmsSettingByCompanyIdAsync (int? companyId, string templateId) { ApiResponse localVarResponse = await CmsApiPreviewTemplateCmsSettingByCompanyIdAsyncWithHttpInfo(companyId, templateId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CmsSettingViewModel) public async System.Threading.Tasks.Task> CmsApiPreviewTemplateCmsSettingByCompanyIdAsyncWithHttpInfo (int? companyId, string templateId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiPreviewTemplateCmsSettingByCompanyId"); // verify the required parameter 'templateId' is set if (templateId == null) throw new ApiException(400, "Missing required parameter 'templateId' when calling CmsApiApi->CmsApiPreviewTemplateCmsSettingByCompanyId"); var localVarPath = "/v1/cms/previewtemplatecmssettings"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (templateId != null) localVarQueryParams.Add("templateId", Configuration.ApiClient.ParameterToString(templateId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiPreviewTemplateCmsSettingByCompanyId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CmsSettingViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CmsSettingViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// List<ArticleViewModel> public List CmsApiRelated (int? companyId, string title, int? limit) { ApiResponse> localVarResponse = CmsApiRelatedWithHttpInfo(companyId, title, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of List<ArticleViewModel> public ApiResponse< List > CmsApiRelatedWithHttpInfo (int? companyId, string title, int? limit) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiRelated"); // verify the required parameter 'title' is set if (title == null) throw new ApiException(400, "Missing required parameter 'title' when calling CmsApiApi->CmsApiRelated"); // verify the required parameter 'limit' is set if (limit == null) throw new ApiException(400, "Missing required parameter 'limit' when calling CmsApiApi->CmsApiRelated"); var localVarPath = "/v1/cms/relatedarticle"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (title != null) localVarQueryParams.Add("title", Configuration.ApiClient.ParameterToString(title)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiRelated", 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<ArticleViewModel> public async System.Threading.Tasks.Task> CmsApiRelatedAsync (int? companyId, string title, int? limit) { ApiResponse> localVarResponse = await CmsApiRelatedAsyncWithHttpInfo(companyId, title, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (List<ArticleViewModel>) public async System.Threading.Tasks.Task>> CmsApiRelatedAsyncWithHttpInfo (int? companyId, string title, int? limit) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiRelated"); // verify the required parameter 'title' is set if (title == null) throw new ApiException(400, "Missing required parameter 'title' when calling CmsApiApi->CmsApiRelated"); // verify the required parameter 'limit' is set if (limit == null) throw new ApiException(400, "Missing required parameter 'limit' when calling CmsApiApi->CmsApiRelated"); var localVarPath = "/v1/cms/relatedarticle"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (title != null) localVarQueryParams.Add("title", Configuration.ApiClient.ParameterToString(title)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiRelated", 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 ) /// CompanySystemAndCustomCategoriesViewModel public CompanySystemAndCustomCategoriesViewModel CmsApiSearchAllUsedCategoriesOfCompany (int? companyId, string q = null) { ApiResponse localVarResponse = CmsApiSearchAllUsedCategoriesOfCompanyWithHttpInfo(companyId, q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// ApiResponse of CompanySystemAndCustomCategoriesViewModel public ApiResponse< CompanySystemAndCustomCategoriesViewModel > CmsApiSearchAllUsedCategoriesOfCompanyWithHttpInfo (int? companyId, string q = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiSearchAllUsedCategoriesOfCompany"); var localVarPath = "/v1/cms/searchusedcategoriesofcompany"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiSearchAllUsedCategoriesOfCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanySystemAndCustomCategoriesViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanySystemAndCustomCategoriesViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// Task of CompanySystemAndCustomCategoriesViewModel public async System.Threading.Tasks.Task CmsApiSearchAllUsedCategoriesOfCompanyAsync (int? companyId, string q = null) { ApiResponse localVarResponse = await CmsApiSearchAllUsedCategoriesOfCompanyAsyncWithHttpInfo(companyId, q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to ) /// Task of ApiResponse (CompanySystemAndCustomCategoriesViewModel) public async System.Threading.Tasks.Task> CmsApiSearchAllUsedCategoriesOfCompanyAsyncWithHttpInfo (int? companyId, string q = null) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CmsApiApi->CmsApiSearchAllUsedCategoriesOfCompany"); var localVarPath = "/v1/cms/searchusedcategoriesofcompany"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (companyId != null) localVarQueryParams.Add("companyId", Configuration.ApiClient.ParameterToString(companyId)); // query parameter if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CmsApiSearchAllUsedCategoriesOfCompany", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanySystemAndCustomCategoriesViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanySystemAndCustomCategoriesViewModel))); } } }