/*
* 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 ITopicPostApiApi : IApiAccessor
{
#region Synchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// List<StringViewModel>
List TopicPostApiAutoCompleteTopicPosts (string q, int? topicTypeId = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// ApiResponse of List<StringViewModel>
ApiResponse> TopicPostApiAutoCompleteTopicPostsWithHttpInfo (string q, int? topicTypeId = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// CreatedViewModel
CreatedViewModel TopicPostApiCreate (TopicPostInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreatedViewModel
ApiResponse TopicPostApiCreateWithHttpInfo (TopicPostInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void TopicPostApiDelete (List topicPostIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse TopicPostApiDeleteWithHttpInfo (List topicPostIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// List<TopicPostPromotionViewModel>
List TopicPostApiGetHotTopicPosts (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// ApiResponse of List<TopicPostPromotionViewModel>
ApiResponse> TopicPostApiGetHotTopicPostsWithHttpInfo (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// List<TopicPostPromotionViewModel>
List TopicPostApiGetLatestUserTopicPost (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// ApiResponse of List<TopicPostPromotionViewModel>
ApiResponse> TopicPostApiGetLatestUserTopicPostWithHttpInfo (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// NumberViewModel
NumberViewModel TopicPostApiGetMyTopicPostsCount ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of NumberViewModel
ApiResponse TopicPostApiGetMyTopicPostsCountWithHttpInfo ();
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// CollectionItemIdsViewModel
CollectionItemIdsViewModel TopicPostApiGetTopicPostAreCollected (List topicPosts);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of CollectionItemIdsViewModel
ApiResponse TopicPostApiGetTopicPostAreCollectedWithHttpInfo (List topicPosts);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// TopicPostViewModel
TopicPostViewModel TopicPostApiGetTopicPostDetail (long? id);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// ApiResponse of TopicPostViewModel
ApiResponse TopicPostApiGetTopicPostDetailWithHttpInfo (long? id);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// List<TopicPostSimpleViewModel>
List TopicPostApiGetTopicPostRelated (long? id, string title);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// ApiResponse of List<TopicPostSimpleViewModel>
ApiResponse> TopicPostApiGetTopicPostRelatedWithHttpInfo (long? id, string title);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// QueryResultTopicPostViewModel
QueryResultTopicPostViewModel TopicPostApiGetTopicPostsOfOtherUser (int? userId, int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// ApiResponse of QueryResultTopicPostViewModel
ApiResponse TopicPostApiGetTopicPostsOfOtherUserWithHttpInfo (int? userId, int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// QueryResultTopicPostViewModel
QueryResultTopicPostViewModel TopicPostApiGetTopicPostsOfUser (int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// ApiResponse of QueryResultTopicPostViewModel
ApiResponse TopicPostApiGetTopicPostsOfUserWithHttpInfo (int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
/// (optional, default to )
/// List<StringViewModel>
List TopicPostApiHotSearchWords (string hotSearchWordType, int? size, string q = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
/// (optional, default to )
/// ApiResponse of List<StringViewModel>
ApiResponse> TopicPostApiHotSearchWordsWithHttpInfo (string hotSearchWordType, int? size, string q = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// QueryResultTopicPostViewModel
QueryResultTopicPostViewModel TopicPostApiMyBusinessOpportunities (string q, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of QueryResultTopicPostViewModel
ApiResponse TopicPostApiMyBusinessOpportunitiesWithHttpInfo (string q, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// 搜索范围,单位:米,默认值100公里 (optional, default to 100000.0)
/// List<TopicPostViewModel>
List TopicPostApiNearBusinessOpportunities (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null, double? distanceRangeValue = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// 搜索范围,单位:米,默认值100公里 (optional, default to 100000.0)
/// ApiResponse of List<TopicPostViewModel>
ApiResponse> TopicPostApiNearBusinessOpportunitiesWithHttpInfo (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null, double? distanceRangeValue = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// CityNearBusinessNum
CityNearBusinessNum TopicPostApiNearBusinessOpportunitiesCount ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of CityNearBusinessNum
ApiResponse TopicPostApiNearBusinessOpportunitiesCountWithHttpInfo ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 经度 (optional)
/// 维度 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// QueryResultTopicPostViewModel
QueryResultTopicPostViewModel TopicPostApiNearby (double? longitude = null, double? latitude = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 经度 (optional)
/// 维度 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// ApiResponse of QueryResultTopicPostViewModel
ApiResponse TopicPostApiNearbyWithHttpInfo (double? longitude = null, double? latitude = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// QueryResultTopicPostViewModel
QueryResultTopicPostViewModel TopicPostApiRecommendedTopicPosts (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of QueryResultTopicPostViewModel
ApiResponse TopicPostApiRecommendedTopicPostsWithHttpInfo (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 检索条件 (optional, default to )
/// 是否app用户 (optional, default to true)
/// 区域 (optional)
/// 行业[公司行业] (optional)
/// 分类 (optional)
/// 检索时间规则 (optional)
/// 维度 (optional)
/// 经度 (optional)
/// 展示条数 (optional, default to 10)
/// 起始 (optional, default to 0)
/// List<TopicPostViewModel>
List TopicPostApiSearchTopicPosts (string q = null, bool? isMobileUser = null, List regionIds = null, int? industryId = null, int? topicTypeId = null, string timeRule = null, double? latitude = null, double? longitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 检索条件 (optional, default to )
/// 是否app用户 (optional, default to true)
/// 区域 (optional)
/// 行业[公司行业] (optional)
/// 分类 (optional)
/// 检索时间规则 (optional)
/// 维度 (optional)
/// 经度 (optional)
/// 展示条数 (optional, default to 10)
/// 起始 (optional, default to 0)
/// ApiResponse of List<TopicPostViewModel>
ApiResponse> TopicPostApiSearchTopicPostsWithHttpInfo (string q = null, bool? isMobileUser = null, List regionIds = null, int? industryId = null, int? topicTypeId = null, string timeRule = null, double? latitude = null, double? longitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
///
///
void TopicPostApiUpdateTopicPost (long? id, TopicPostInputModel topicPostInputModel);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
///
/// ApiResponse of Object(void)
ApiResponse TopicPostApiUpdateTopicPostWithHttpInfo (long? id, TopicPostInputModel topicPostInputModel);
#endregion Synchronous Operations
#region Asynchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// Task of List<StringViewModel>
System.Threading.Tasks.Task> TopicPostApiAutoCompleteTopicPostsAsync (string q, int? topicTypeId = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// Task of ApiResponse (List<StringViewModel>)
System.Threading.Tasks.Task>> TopicPostApiAutoCompleteTopicPostsAsyncWithHttpInfo (string q, int? topicTypeId = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of CreatedViewModel
System.Threading.Tasks.Task TopicPostApiCreateAsync (TopicPostInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreatedViewModel)
System.Threading.Tasks.Task> TopicPostApiCreateAsyncWithHttpInfo (TopicPostInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task TopicPostApiDeleteAsync (List topicPostIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> TopicPostApiDeleteAsyncWithHttpInfo (List topicPostIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of List<TopicPostPromotionViewModel>
System.Threading.Tasks.Task> TopicPostApiGetHotTopicPostsAsync (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of ApiResponse (List<TopicPostPromotionViewModel>)
System.Threading.Tasks.Task>> TopicPostApiGetHotTopicPostsAsyncWithHttpInfo (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of List<TopicPostPromotionViewModel>
System.Threading.Tasks.Task> TopicPostApiGetLatestUserTopicPostAsync (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of ApiResponse (List<TopicPostPromotionViewModel>)
System.Threading.Tasks.Task>> TopicPostApiGetLatestUserTopicPostAsyncWithHttpInfo (int? top = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of NumberViewModel
System.Threading.Tasks.Task TopicPostApiGetMyTopicPostsCountAsync ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (NumberViewModel)
System.Threading.Tasks.Task> TopicPostApiGetMyTopicPostsCountAsyncWithHttpInfo ();
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of CollectionItemIdsViewModel
System.Threading.Tasks.Task TopicPostApiGetTopicPostAreCollectedAsync (List topicPosts);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CollectionItemIdsViewModel)
System.Threading.Tasks.Task> TopicPostApiGetTopicPostAreCollectedAsyncWithHttpInfo (List topicPosts);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// Task of TopicPostViewModel
System.Threading.Tasks.Task TopicPostApiGetTopicPostDetailAsync (long? id);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// Task of ApiResponse (TopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiGetTopicPostDetailAsyncWithHttpInfo (long? id);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// Task of List<TopicPostSimpleViewModel>
System.Threading.Tasks.Task> TopicPostApiGetTopicPostRelatedAsync (long? id, string title);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// Task of ApiResponse (List<TopicPostSimpleViewModel>)
System.Threading.Tasks.Task>> TopicPostApiGetTopicPostRelatedAsyncWithHttpInfo (long? id, string title);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of QueryResultTopicPostViewModel
System.Threading.Tasks.Task TopicPostApiGetTopicPostsOfOtherUserAsync (int? userId, int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of ApiResponse (QueryResultTopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiGetTopicPostsOfOtherUserAsyncWithHttpInfo (int? userId, int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of QueryResultTopicPostViewModel
System.Threading.Tasks.Task TopicPostApiGetTopicPostsOfUserAsync (int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 主题类别 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of ApiResponse (QueryResultTopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiGetTopicPostsOfUserAsyncWithHttpInfo (int? topicTypeId = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
/// (optional, default to )
/// Task of List<StringViewModel>
System.Threading.Tasks.Task> TopicPostApiHotSearchWordsAsync (string hotSearchWordType, int? size, string q = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
/// (optional, default to )
/// Task of ApiResponse (List<StringViewModel>)
System.Threading.Tasks.Task>> TopicPostApiHotSearchWordsAsyncWithHttpInfo (string hotSearchWordType, int? size, string q = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of QueryResultTopicPostViewModel
System.Threading.Tasks.Task TopicPostApiMyBusinessOpportunitiesAsync (string q, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (QueryResultTopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiMyBusinessOpportunitiesAsyncWithHttpInfo (string q, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// 搜索范围,单位:米,默认值100公里 (optional, default to 100000.0)
/// Task of List<TopicPostViewModel>
System.Threading.Tasks.Task> TopicPostApiNearBusinessOpportunitiesAsync (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null, double? distanceRangeValue = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// 搜索范围,单位:米,默认值100公里 (optional, default to 100000.0)
/// Task of ApiResponse (List<TopicPostViewModel>)
System.Threading.Tasks.Task>> TopicPostApiNearBusinessOpportunitiesAsyncWithHttpInfo (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null, double? distanceRangeValue = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of CityNearBusinessNum
System.Threading.Tasks.Task TopicPostApiNearBusinessOpportunitiesCountAsync ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (CityNearBusinessNum)
System.Threading.Tasks.Task> TopicPostApiNearBusinessOpportunitiesCountAsyncWithHttpInfo ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 经度 (optional)
/// 维度 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of QueryResultTopicPostViewModel
System.Threading.Tasks.Task TopicPostApiNearbyAsync (double? longitude = null, double? latitude = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 经度 (optional)
/// 维度 (optional)
/// 检索条件 (optional, default to )
/// 取条数 (optional, default to 10)
/// 起始位置 (optional, default to 0)
/// Task of ApiResponse (QueryResultTopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiNearbyAsyncWithHttpInfo (double? longitude = null, double? latitude = null, string q = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of QueryResultTopicPostViewModel
System.Threading.Tasks.Task TopicPostApiRecommendedTopicPostsAsync (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (QueryResultTopicPostViewModel)
System.Threading.Tasks.Task> TopicPostApiRecommendedTopicPostsAsyncWithHttpInfo (double? longitude = null, double? latitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 检索条件 (optional, default to )
/// 是否app用户 (optional, default to true)
/// 区域 (optional)
/// 行业[公司行业] (optional)
/// 分类 (optional)
/// 检索时间规则 (optional)
/// 维度 (optional)
/// 经度 (optional)
/// 展示条数 (optional, default to 10)
/// 起始 (optional, default to 0)
/// Task of List<TopicPostViewModel>
System.Threading.Tasks.Task> TopicPostApiSearchTopicPostsAsync (string q = null, bool? isMobileUser = null, List regionIds = null, int? industryId = null, int? topicTypeId = null, string timeRule = null, double? latitude = null, double? longitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 检索条件 (optional, default to )
/// 是否app用户 (optional, default to true)
/// 区域 (optional)
/// 行业[公司行业] (optional)
/// 分类 (optional)
/// 检索时间规则 (optional)
/// 维度 (optional)
/// 经度 (optional)
/// 展示条数 (optional, default to 10)
/// 起始 (optional, default to 0)
/// Task of ApiResponse (List<TopicPostViewModel>)
System.Threading.Tasks.Task>> TopicPostApiSearchTopicPostsAsyncWithHttpInfo (string q = null, bool? isMobileUser = null, List regionIds = null, int? industryId = null, int? topicTypeId = null, string timeRule = null, double? latitude = null, double? longitude = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
///
/// Task of void
System.Threading.Tasks.Task TopicPostApiUpdateTopicPostAsync (long? id, TopicPostInputModel topicPostInputModel);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
///
/// Task of ApiResponse
System.Threading.Tasks.Task> TopicPostApiUpdateTopicPostAsyncWithHttpInfo (long? id, TopicPostInputModel topicPostInputModel);
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class TopicPostApiApi : ITopicPostApiApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public TopicPostApiApi(Configuration configuration)
{
this.Configuration = configuration;
ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory;
// ensure API client has configuration ready
if (Configuration.ApiClient.Configuration == null)
{
this.Configuration.ApiClient.Configuration = this.Configuration;
}
}
///
/// Gets or sets the configuration object
///
/// An instance of the Configuration
public Configuration Configuration {get; set;}
///
/// Provides a factory method hook for the creation of exceptions.
///
public IO.Swagger.Client.ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// List<StringViewModel>
public List TopicPostApiAutoCompleteTopicPosts (string q, int? topicTypeId = null)
{
ApiResponse> localVarResponse = TopicPostApiAutoCompleteTopicPostsWithHttpInfo(q, topicTypeId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// ApiResponse of List<StringViewModel>
public ApiResponse< List > TopicPostApiAutoCompleteTopicPostsWithHttpInfo (string q, int? topicTypeId = null)
{
// verify the required parameter 'q' is set
if (q == null)
throw new ApiException(400, "Missing required parameter 'q' when calling TopicPostApiApi->TopicPostApiAutoCompleteTopicPosts");
string localVarPath = "/v1/topicposts/_autoComplete";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter
if (topicTypeId != null) localVarQueryParams.Add("topicTypeId", Configuration.ApiClient.ParameterToString(topicTypeId)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiAutoCompleteTopicPosts", 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)
/// Task of List<StringViewModel>
public async System.Threading.Tasks.Task> TopicPostApiAutoCompleteTopicPostsAsync (string q, int? topicTypeId = null)
{
ApiResponse> localVarResponse = await TopicPostApiAutoCompleteTopicPostsAsyncWithHttpInfo(q, topicTypeId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// (optional)
/// Task of ApiResponse (List<StringViewModel>)
public async System.Threading.Tasks.Task>> TopicPostApiAutoCompleteTopicPostsAsyncWithHttpInfo (string q, int? topicTypeId = null)
{
// verify the required parameter 'q' is set
if (q == null)
throw new ApiException(400, "Missing required parameter 'q' when calling TopicPostApiApi->TopicPostApiAutoCompleteTopicPosts");
string localVarPath = "/v1/topicposts/_autoComplete";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter
if (topicTypeId != null) localVarQueryParams.Add("topicTypeId", Configuration.ApiClient.ParameterToString(topicTypeId)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiAutoCompleteTopicPosts", 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
///
/// CreatedViewModel
public CreatedViewModel TopicPostApiCreate (TopicPostInputModel model)
{
ApiResponse localVarResponse = TopicPostApiCreateWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of CreatedViewModel
public ApiResponse< CreatedViewModel > TopicPostApiCreateWithHttpInfo (TopicPostInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling TopicPostApiApi->TopicPostApiCreate");
string localVarPath = "/v1/topicposts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiCreate", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CreatedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CreatedViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of CreatedViewModel
public async System.Threading.Tasks.Task TopicPostApiCreateAsync (TopicPostInputModel model)
{
ApiResponse localVarResponse = await TopicPostApiCreateAsyncWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CreatedViewModel)
public async System.Threading.Tasks.Task> TopicPostApiCreateAsyncWithHttpInfo (TopicPostInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling TopicPostApiApi->TopicPostApiCreate");
string localVarPath = "/v1/topicposts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiCreate", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CreatedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CreatedViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
///
public void TopicPostApiDelete (List topicPostIds)
{
TopicPostApiDeleteWithHttpInfo(topicPostIds);
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
public ApiResponse TopicPostApiDeleteWithHttpInfo (List topicPostIds)
{
// verify the required parameter 'topicPostIds' is set
if (topicPostIds == null)
throw new ApiException(400, "Missing required parameter 'topicPostIds' when calling TopicPostApiApi->TopicPostApiDelete");
string localVarPath = "/v1/topicposts/_delete";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(topicPostIds); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiDelete", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
null);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
public async System.Threading.Tasks.Task TopicPostApiDeleteAsync (List topicPostIds)
{
await TopicPostApiDeleteAsyncWithHttpInfo(topicPostIds);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
public async System.Threading.Tasks.Task> TopicPostApiDeleteAsyncWithHttpInfo (List topicPostIds)
{
// verify the required parameter 'topicPostIds' is set
if (topicPostIds == null)
throw new ApiException(400, "Missing required parameter 'topicPostIds' when calling TopicPostApiApi->TopicPostApiDelete");
string localVarPath = "/v1/topicposts/_delete";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(topicPostIds); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiDelete", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
null);
}
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// List<TopicPostPromotionViewModel>
public List TopicPostApiGetHotTopicPosts (int? top = null)
{
ApiResponse> localVarResponse = TopicPostApiGetHotTopicPostsWithHttpInfo(top);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// ApiResponse of List<TopicPostPromotionViewModel>
public ApiResponse< List > TopicPostApiGetHotTopicPostsWithHttpInfo (int? top = null)
{
string localVarPath = "/v1/topicposts/hotTopicPosts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetHotTopicPosts", 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 6)
/// Task of List<TopicPostPromotionViewModel>
public async System.Threading.Tasks.Task> TopicPostApiGetHotTopicPostsAsync (int? top = null)
{
ApiResponse> localVarResponse = await TopicPostApiGetHotTopicPostsAsyncWithHttpInfo(top);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of ApiResponse (List<TopicPostPromotionViewModel>)
public async System.Threading.Tasks.Task>> TopicPostApiGetHotTopicPostsAsyncWithHttpInfo (int? top = null)
{
string localVarPath = "/v1/topicposts/hotTopicPosts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetHotTopicPosts", 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 6)
/// List<TopicPostPromotionViewModel>
public List TopicPostApiGetLatestUserTopicPost (int? top = null)
{
ApiResponse> localVarResponse = TopicPostApiGetLatestUserTopicPostWithHttpInfo(top);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// ApiResponse of List<TopicPostPromotionViewModel>
public ApiResponse< List > TopicPostApiGetLatestUserTopicPostWithHttpInfo (int? top = null)
{
string localVarPath = "/v1/topicposts/latestTopicPosts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetLatestUserTopicPost", 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 6)
/// Task of List<TopicPostPromotionViewModel>
public async System.Threading.Tasks.Task> TopicPostApiGetLatestUserTopicPostAsync (int? top = null)
{
ApiResponse> localVarResponse = await TopicPostApiGetLatestUserTopicPostAsyncWithHttpInfo(top);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 6)
/// Task of ApiResponse (List<TopicPostPromotionViewModel>)
public async System.Threading.Tasks.Task>> TopicPostApiGetLatestUserTopicPostAsyncWithHttpInfo (int? top = null)
{
string localVarPath = "/v1/topicposts/latestTopicPosts";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (top != null) localVarQueryParams.Add("top", Configuration.ApiClient.ParameterToString(top)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetLatestUserTopicPost", 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
/// NumberViewModel
public NumberViewModel TopicPostApiGetMyTopicPostsCount ()
{
ApiResponse localVarResponse = TopicPostApiGetMyTopicPostsCountWithHttpInfo();
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of NumberViewModel
public ApiResponse< NumberViewModel > TopicPostApiGetMyTopicPostsCountWithHttpInfo ()
{
string localVarPath = "/v1/mytopicpostscount";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetMyTopicPostsCount", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// Task of NumberViewModel
public async System.Threading.Tasks.Task TopicPostApiGetMyTopicPostsCountAsync ()
{
ApiResponse localVarResponse = await TopicPostApiGetMyTopicPostsCountAsyncWithHttpInfo();
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (NumberViewModel)
public async System.Threading.Tasks.Task> TopicPostApiGetMyTopicPostsCountAsyncWithHttpInfo ()
{
string localVarPath = "/v1/mytopicpostscount";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetMyTopicPostsCount", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// CollectionItemIdsViewModel
public CollectionItemIdsViewModel TopicPostApiGetTopicPostAreCollected (List topicPosts)
{
ApiResponse localVarResponse = TopicPostApiGetTopicPostAreCollectedWithHttpInfo(topicPosts);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of CollectionItemIdsViewModel
public ApiResponse< CollectionItemIdsViewModel > TopicPostApiGetTopicPostAreCollectedWithHttpInfo (List topicPosts)
{
// verify the required parameter 'topicPosts' is set
if (topicPosts == null)
throw new ApiException(400, "Missing required parameter 'topicPosts' when calling TopicPostApiApi->TopicPostApiGetTopicPostAreCollected");
string localVarPath = "/v1/topicposts/_arecollected";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(topicPosts); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetTopicPostAreCollected", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CollectionItemIdsViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CollectionItemIdsViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of CollectionItemIdsViewModel
public async System.Threading.Tasks.Task TopicPostApiGetTopicPostAreCollectedAsync (List topicPosts)
{
ApiResponse localVarResponse = await TopicPostApiGetTopicPostAreCollectedAsyncWithHttpInfo(topicPosts);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (CollectionItemIdsViewModel)
public async System.Threading.Tasks.Task> TopicPostApiGetTopicPostAreCollectedAsyncWithHttpInfo (List topicPosts)
{
// verify the required parameter 'topicPosts' is set
if (topicPosts == null)
throw new ApiException(400, "Missing required parameter 'topicPosts' when calling TopicPostApiApi->TopicPostApiGetTopicPostAreCollected");
string localVarPath = "/v1/topicposts/_arecollected";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
localVarPostBody = Configuration.ApiClient.Serialize(topicPosts); // http body (model) parameter
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetTopicPostAreCollected", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CollectionItemIdsViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CollectionItemIdsViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// TopicPostViewModel
public TopicPostViewModel TopicPostApiGetTopicPostDetail (long? id)
{
ApiResponse localVarResponse = TopicPostApiGetTopicPostDetailWithHttpInfo(id);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// ApiResponse of TopicPostViewModel
public ApiResponse< TopicPostViewModel > TopicPostApiGetTopicPostDetailWithHttpInfo (long? id)
{
// verify the required parameter 'id' is set
if (id == null)
throw new ApiException(400, "Missing required parameter 'id' when calling TopicPostApiApi->TopicPostApiGetTopicPostDetail");
string localVarPath = "/v1/topicposts/{id}";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetTopicPostDetail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(TopicPostViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(TopicPostViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// Task of TopicPostViewModel
public async System.Threading.Tasks.Task TopicPostApiGetTopicPostDetailAsync (long? id)
{
ApiResponse localVarResponse = await TopicPostApiGetTopicPostDetailAsyncWithHttpInfo(id);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// Task of ApiResponse (TopicPostViewModel)
public async System.Threading.Tasks.Task> TopicPostApiGetTopicPostDetailAsyncWithHttpInfo (long? id)
{
// verify the required parameter 'id' is set
if (id == null)
throw new ApiException(400, "Missing required parameter 'id' when calling TopicPostApiApi->TopicPostApiGetTopicPostDetail");
string localVarPath = "/v1/topicposts/{id}";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// make the HTTP request
HttpResponseMessage localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetTopicPostDetail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(TopicPostViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(TopicPostViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// List<TopicPostSimpleViewModel>
public List TopicPostApiGetTopicPostRelated (long? id, string title)
{
ApiResponse> localVarResponse = TopicPostApiGetTopicPostRelatedWithHttpInfo(id, title);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 帖子编号
/// 帖子标题
/// ApiResponse of List<TopicPostSimpleViewModel>
public ApiResponse< List > TopicPostApiGetTopicPostRelatedWithHttpInfo (long? id, string title)
{
// verify the required parameter 'id' is set
if (id == null)
throw new ApiException(400, "Missing required parameter 'id' when calling TopicPostApiApi->TopicPostApiGetTopicPostRelated");
// verify the required parameter 'title' is set
if (title == null)
throw new ApiException(400, "Missing required parameter 'title' when calling TopicPostApiApi->TopicPostApiGetTopicPostRelated");
string localVarPath = "/v1/topicposts/{id}/related";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary localVarFormParams = new Dictionary();
string localVarPostBody = null;
// to determine the Content-Type header
string[] localVarHttpContentTypes = new string[] {
};
string localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
string[] localVarHttpHeaderAccepts = new string[] {
"application/vnd.fht360.enumAsString+json",
"application/vnd.fht360.preserveCircularReference+json",
"application/json",
"text/json",
"application/xml",
"text/xml"
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (title != null) localVarQueryParams.Add("title", Configuration.ApiClient.ParameterToString(title)); // query parameter
// make the HTTP request
HttpResponseMessage localVarResponse = Configuration.ApiClient.CallApi(localVarPath,
"GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("TopicPostApiGetTopicPostRelated", 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)));
}
///