/* * 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 IStatisticsApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// List<ProductExposureItemViewModel> List StatisticsApiMobileProductImpressionDetail (long? productId, int? totalLines, string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// ApiResponse of List<ProductExposureItemViewModel> ApiResponse> StatisticsApiMobileProductImpressionDetailWithHttpInfo (long? productId, int? totalLines, string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// List<ProductExposureDetailViewModel> List StatisticsApiMobileProductImpressionStat (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductExposureDetailViewModel> ApiResponse> StatisticsApiMobileProductImpressionStatWithHttpInfo (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// List<ProductVisitDetailViewModel> List StatisticsApiMobileProductVisitDetail (long? productId, string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductVisitDetailViewModel> ApiResponse> StatisticsApiMobileProductVisitDetailWithHttpInfo (long? productId, string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// List<StatCityVisitViewModel> List StatisticsApiMobileProductVisitStatisticByCity (string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// ApiResponse of List<StatCityVisitViewModel> ApiResponse> StatisticsApiMobileProductVisitStatisticByCityWithHttpInfo (string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// List<ProductVisitStatisticsViewModel> List StatisticsApiMobileProductVisitStatistics (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductVisitStatisticsViewModel> ApiResponse> StatisticsApiMobileProductVisitStatisticsWithHttpInfo (string timeRange = null, int? limit = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// Task of List<ProductExposureItemViewModel> System.Threading.Tasks.Task> StatisticsApiMobileProductImpressionDetailAsync (long? productId, int? totalLines, string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// Task of ApiResponse (List<ProductExposureItemViewModel>) System.Threading.Tasks.Task>> StatisticsApiMobileProductImpressionDetailAsyncWithHttpInfo (long? productId, int? totalLines, string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of List<ProductExposureDetailViewModel> System.Threading.Tasks.Task> StatisticsApiMobileProductImpressionStatAsync (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductExposureDetailViewModel>) System.Threading.Tasks.Task>> StatisticsApiMobileProductImpressionStatAsyncWithHttpInfo (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// Task of List<ProductVisitDetailViewModel> System.Threading.Tasks.Task> StatisticsApiMobileProductVisitDetailAsync (long? productId, string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductVisitDetailViewModel>) System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitDetailAsyncWithHttpInfo (long? productId, string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// Task of List<StatCityVisitViewModel> System.Threading.Tasks.Task> StatisticsApiMobileProductVisitStatisticByCityAsync (string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// Task of ApiResponse (List<StatCityVisitViewModel>) System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitStatisticByCityAsyncWithHttpInfo (string timeRange = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of List<ProductVisitStatisticsViewModel> System.Threading.Tasks.Task> StatisticsApiMobileProductVisitStatisticsAsync (string timeRange = null, int? limit = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductVisitStatisticsViewModel>) System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitStatisticsAsyncWithHttpInfo (string timeRange = null, int? limit = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class StatisticsApiApi : IStatisticsApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public StatisticsApiApi(Configuration configuration) { this.Configuration = configuration; ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory; // ensure API client has configuration ready if (Configuration.ApiClient.Configuration == null) { this.Configuration.ApiClient.Configuration = this.Configuration; } } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// public IO.Swagger.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// List<ProductExposureItemViewModel> public List StatisticsApiMobileProductImpressionDetail (long? productId, int? totalLines, string timeRange = null) { ApiResponse> localVarResponse = StatisticsApiMobileProductImpressionDetailWithHttpInfo(productId, totalLines, timeRange); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// ApiResponse of List<ProductExposureItemViewModel> public ApiResponse< List > StatisticsApiMobileProductImpressionDetailWithHttpInfo (long? productId, int? totalLines, string timeRange = null) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling StatisticsApiApi->StatisticsApiMobileProductImpressionDetail"); // verify the required parameter 'totalLines' is set if (totalLines == null) throw new ApiException(400, "Missing required parameter 'totalLines' when calling StatisticsApiApi->StatisticsApiMobileProductImpressionDetail"); var localVarPath = "/v1/mobileproductimpressiondetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (totalLines != null) localVarQueryParams.Add("totalLines", Configuration.ApiClient.ParameterToString(totalLines)); // query parameter if (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // 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("StatisticsApiMobileProductImpressionDetail", 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 0) /// Task of List<ProductExposureItemViewModel> public async System.Threading.Tasks.Task> StatisticsApiMobileProductImpressionDetailAsync (long? productId, int? totalLines, string timeRange = null) { ApiResponse> localVarResponse = await StatisticsApiMobileProductImpressionDetailAsyncWithHttpInfo(productId, totalLines, timeRange); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// 曝光总数 /// 时间段 (optional, default to 0) /// Task of ApiResponse (List<ProductExposureItemViewModel>) public async System.Threading.Tasks.Task>> StatisticsApiMobileProductImpressionDetailAsyncWithHttpInfo (long? productId, int? totalLines, string timeRange = null) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling StatisticsApiApi->StatisticsApiMobileProductImpressionDetail"); // verify the required parameter 'totalLines' is set if (totalLines == null) throw new ApiException(400, "Missing required parameter 'totalLines' when calling StatisticsApiApi->StatisticsApiMobileProductImpressionDetail"); var localVarPath = "/v1/mobileproductimpressiondetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (totalLines != null) localVarQueryParams.Add("totalLines", Configuration.ApiClient.ParameterToString(totalLines)); // query parameter if (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // 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("StatisticsApiMobileProductImpressionDetail", 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 0) /// (optional, default to 1000) /// List<ProductExposureDetailViewModel> public List StatisticsApiMobileProductImpressionStat (string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = StatisticsApiMobileProductImpressionStatWithHttpInfo(timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductExposureDetailViewModel> public ApiResponse< List > StatisticsApiMobileProductImpressionStatWithHttpInfo (string timeRange = null, int? limit = null) { var localVarPath = "/v1/mobileproductimpressionstat"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductImpressionStat", 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 0) /// (optional, default to 1000) /// Task of List<ProductExposureDetailViewModel> public async System.Threading.Tasks.Task> StatisticsApiMobileProductImpressionStatAsync (string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = await StatisticsApiMobileProductImpressionStatAsyncWithHttpInfo(timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductExposureDetailViewModel>) public async System.Threading.Tasks.Task>> StatisticsApiMobileProductImpressionStatAsyncWithHttpInfo (string timeRange = null, int? limit = null) { var localVarPath = "/v1/mobileproductimpressionstat"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductImpressionStat", 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 0) /// (optional, default to 1000) /// List<ProductVisitDetailViewModel> public List StatisticsApiMobileProductVisitDetail (long? productId, string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = StatisticsApiMobileProductVisitDetailWithHttpInfo(productId, timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductVisitDetailViewModel> public ApiResponse< List > StatisticsApiMobileProductVisitDetailWithHttpInfo (long? productId, string timeRange = null, int? limit = null) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling StatisticsApiApi->StatisticsApiMobileProductVisitDetail"); var localVarPath = "/v1/mobileproductvisitdetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductVisitDetail", 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 0) /// (optional, default to 1000) /// Task of List<ProductVisitDetailViewModel> public async System.Threading.Tasks.Task> StatisticsApiMobileProductVisitDetailAsync (long? productId, string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = await StatisticsApiMobileProductVisitDetailAsyncWithHttpInfo(productId, timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductVisitDetailViewModel>) public async System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitDetailAsyncWithHttpInfo (long? productId, string timeRange = null, int? limit = null) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling StatisticsApiApi->StatisticsApiMobileProductVisitDetail"); var localVarPath = "/v1/mobileproductvisitdetail"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (productId != null) localVarQueryParams.Add("productId", Configuration.ApiClient.ParameterToString(productId)); // query parameter if (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductVisitDetail", 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 0) /// List<StatCityVisitViewModel> public List StatisticsApiMobileProductVisitStatisticByCity (string timeRange = null) { ApiResponse> localVarResponse = StatisticsApiMobileProductVisitStatisticByCityWithHttpInfo(timeRange); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// ApiResponse of List<StatCityVisitViewModel> public ApiResponse< List > StatisticsApiMobileProductVisitStatisticByCityWithHttpInfo (string timeRange = null) { var localVarPath = "/v1/mobileproductvisitstatisticbycity"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // 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("StatisticsApiMobileProductVisitStatisticByCity", 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 0) /// Task of List<StatCityVisitViewModel> public async System.Threading.Tasks.Task> StatisticsApiMobileProductVisitStatisticByCityAsync (string timeRange = null) { ApiResponse> localVarResponse = await StatisticsApiMobileProductVisitStatisticByCityAsyncWithHttpInfo(timeRange); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// Task of ApiResponse (List<StatCityVisitViewModel>) public async System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitStatisticByCityAsyncWithHttpInfo (string timeRange = null) { var localVarPath = "/v1/mobileproductvisitstatisticbycity"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // 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("StatisticsApiMobileProductVisitStatisticByCity", 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 0) /// (optional, default to 1000) /// List<ProductVisitStatisticsViewModel> public List StatisticsApiMobileProductVisitStatistics (string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = StatisticsApiMobileProductVisitStatisticsWithHttpInfo(timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// ApiResponse of List<ProductVisitStatisticsViewModel> public ApiResponse< List > StatisticsApiMobileProductVisitStatisticsWithHttpInfo (string timeRange = null, int? limit = null) { var localVarPath = "/v1/mobileproductvisitstatistics"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductVisitStatistics", 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 0) /// (optional, default to 1000) /// Task of List<ProductVisitStatisticsViewModel> public async System.Threading.Tasks.Task> StatisticsApiMobileProductVisitStatisticsAsync (string timeRange = null, int? limit = null) { ApiResponse> localVarResponse = await StatisticsApiMobileProductVisitStatisticsAsyncWithHttpInfo(timeRange, limit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 0) /// (optional, default to 1000) /// Task of ApiResponse (List<ProductVisitStatisticsViewModel>) public async System.Threading.Tasks.Task>> StatisticsApiMobileProductVisitStatisticsAsyncWithHttpInfo (string timeRange = null, int? limit = null) { var localVarPath = "/v1/mobileproductvisitstatistics"; 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 (timeRange != null) localVarQueryParams.Add("timeRange", Configuration.ApiClient.ParameterToString(timeRange)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("StatisticsApiMobileProductVisitStatistics", 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))); } } }