/*
* 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