/* * 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 IReportApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void ReportApiBatchReportProductAsync (ApiProductsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse ReportApiBatchReportProductAsyncWithHttpInfo (ApiProductsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<ReportReasonViewModel> List ReportApiGetReportReasons (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<ReportReasonViewModel> ApiResponse> ReportApiGetReportReasonsWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void ReportApiReportCompanyAsync (int? companyId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse ReportApiReportCompanyAsyncWithHttpInfo (int? companyId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void ReportApiReportGroupChatAsync (long? groupChatId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse ReportApiReportGroupChatAsyncWithHttpInfo (long? groupChatId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void ReportApiReportMeetupAsync (long? meetupId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse ReportApiReportMeetupAsyncWithHttpInfo (long? meetupId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void ReportApiReportProductAsync (long? productId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse ReportApiReportProductAsyncWithHttpInfo (long? productId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void ReportApiReportTopicPostAsync (ApiTopicPostsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse ReportApiReportTopicPostAsyncWithHttpInfo (ApiTopicPostsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void ReportApiReportUserAsync (int? userId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse ReportApiReportUserAsyncWithHttpInfo (int? userId, ApiReportOfUserOrChatInputModel model); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task ReportApiBatchReportProductAsyncAsync (ApiProductsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiBatchReportProductAsyncAsyncWithHttpInfo (ApiProductsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<ReportReasonViewModel> System.Threading.Tasks.Task> ReportApiGetReportReasonsAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<ReportReasonViewModel>) System.Threading.Tasks.Task>> ReportApiGetReportReasonsAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task ReportApiReportCompanyAsyncAsync (int? companyId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportCompanyAsyncAsyncWithHttpInfo (int? companyId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task ReportApiReportGroupChatAsyncAsync (long? groupChatId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportGroupChatAsyncAsyncWithHttpInfo (long? groupChatId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task ReportApiReportMeetupAsyncAsync (long? meetupId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportMeetupAsyncAsyncWithHttpInfo (long? meetupId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task ReportApiReportProductAsyncAsync (long? productId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportProductAsyncAsyncWithHttpInfo (long? productId, ApiReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task ReportApiReportTopicPostAsyncAsync (ApiTopicPostsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportTopicPostAsyncAsyncWithHttpInfo (ApiTopicPostsReportInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task ReportApiReportUserAsyncAsync (int? userId, ApiReportOfUserOrChatInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> ReportApiReportUserAsyncAsyncWithHttpInfo (int? userId, ApiReportOfUserOrChatInputModel model); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class ReportApiApi : IReportApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public ReportApiApi(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 /// /// public void ReportApiBatchReportProductAsync (ApiProductsReportInputModel model) { ReportApiBatchReportProductAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse ReportApiBatchReportProductAsyncWithHttpInfo (ApiProductsReportInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiBatchReportProductAsync"); var localVarPath = "/v1/products/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiBatchReportProductAsync", 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 ReportApiBatchReportProductAsyncAsync (ApiProductsReportInputModel model) { await ReportApiBatchReportProductAsyncAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiBatchReportProductAsyncAsyncWithHttpInfo (ApiProductsReportInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiBatchReportProductAsync"); var localVarPath = "/v1/products/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiBatchReportProductAsync", 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 /// List<ReportReasonViewModel> public List ReportApiGetReportReasons () { ApiResponse> localVarResponse = ReportApiGetReportReasonsWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<ReportReasonViewModel> public ApiResponse< List > ReportApiGetReportReasonsWithHttpInfo () { var localVarPath = "/v1/reportreasons"; 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); // 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("ReportApiGetReportReasons", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// Task of List<ReportReasonViewModel> public async System.Threading.Tasks.Task> ReportApiGetReportReasonsAsync () { ApiResponse> localVarResponse = await ReportApiGetReportReasonsAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<ReportReasonViewModel>) public async System.Threading.Tasks.Task>> ReportApiGetReportReasonsAsyncWithHttpInfo () { var localVarPath = "/v1/reportreasons"; 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); // 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("ReportApiGetReportReasons", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// /// public void ReportApiReportCompanyAsync (int? companyId, ApiReportInputModel model) { ReportApiReportCompanyAsyncWithHttpInfo(companyId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportCompanyAsyncWithHttpInfo (int? companyId, ApiReportInputModel model) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling ReportApiApi->ReportApiReportCompanyAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportCompanyAsync"); var localVarPath = "/v1/companies/{companyId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportCompanyAsync", 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 ReportApiReportCompanyAsyncAsync (int? companyId, ApiReportInputModel model) { await ReportApiReportCompanyAsyncAsyncWithHttpInfo(companyId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportCompanyAsyncAsyncWithHttpInfo (int? companyId, ApiReportInputModel model) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling ReportApiApi->ReportApiReportCompanyAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportCompanyAsync"); var localVarPath = "/v1/companies/{companyId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportCompanyAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// /// public void ReportApiReportGroupChatAsync (long? groupChatId, ApiReportOfUserOrChatInputModel model) { ReportApiReportGroupChatAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportGroupChatAsyncWithHttpInfo (long? groupChatId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling ReportApiApi->ReportApiReportGroupChatAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportGroupChatAsync"); var localVarPath = "/v1/groupchats/{groupChatId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportGroupChatAsync", 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 ReportApiReportGroupChatAsyncAsync (long? groupChatId, ApiReportOfUserOrChatInputModel model) { await ReportApiReportGroupChatAsyncAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportGroupChatAsyncAsyncWithHttpInfo (long? groupChatId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling ReportApiApi->ReportApiReportGroupChatAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportGroupChatAsync"); var localVarPath = "/v1/groupchats/{groupChatId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportGroupChatAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// /// public void ReportApiReportMeetupAsync (long? meetupId, ApiReportOfUserOrChatInputModel model) { ReportApiReportMeetupAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportMeetupAsyncWithHttpInfo (long? meetupId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling ReportApiApi->ReportApiReportMeetupAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportMeetupAsync"); var localVarPath = "/v1/meetups/{meetupId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportMeetupAsync", 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 ReportApiReportMeetupAsyncAsync (long? meetupId, ApiReportOfUserOrChatInputModel model) { await ReportApiReportMeetupAsyncAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportMeetupAsyncAsyncWithHttpInfo (long? meetupId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling ReportApiApi->ReportApiReportMeetupAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportMeetupAsync"); var localVarPath = "/v1/meetups/{meetupId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportMeetupAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// /// public void ReportApiReportProductAsync (long? productId, ApiReportInputModel model) { ReportApiReportProductAsyncWithHttpInfo(productId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportProductAsyncWithHttpInfo (long? productId, ApiReportInputModel model) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling ReportApiApi->ReportApiReportProductAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportProductAsync"); var localVarPath = "/v1/products/{productId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportProductAsync", 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 ReportApiReportProductAsyncAsync (long? productId, ApiReportInputModel model) { await ReportApiReportProductAsyncAsyncWithHttpInfo(productId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportProductAsyncAsyncWithHttpInfo (long? productId, ApiReportInputModel model) { // verify the required parameter 'productId' is set if (productId == null) throw new ApiException(400, "Missing required parameter 'productId' when calling ReportApiApi->ReportApiReportProductAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportProductAsync"); var localVarPath = "/v1/products/{productId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportProductAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// public void ReportApiReportTopicPostAsync (ApiTopicPostsReportInputModel model) { ReportApiReportTopicPostAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportTopicPostAsyncWithHttpInfo (ApiTopicPostsReportInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportTopicPostAsync"); var localVarPath = "/v1/topicposts/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportTopicPostAsync", 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 ReportApiReportTopicPostAsyncAsync (ApiTopicPostsReportInputModel model) { await ReportApiReportTopicPostAsyncAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportTopicPostAsyncAsyncWithHttpInfo (ApiTopicPostsReportInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportTopicPostAsync"); var localVarPath = "/v1/topicposts/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportTopicPostAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// /// public void ReportApiReportUserAsync (int? userId, ApiReportOfUserOrChatInputModel model) { ReportApiReportUserAsyncWithHttpInfo(userId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse ReportApiReportUserAsyncWithHttpInfo (int? userId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling ReportApiApi->ReportApiReportUserAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportUserAsync"); var localVarPath = "/v1/users/{userId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportUserAsync", 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 ReportApiReportUserAsyncAsync (int? userId, ApiReportOfUserOrChatInputModel model) { await ReportApiReportUserAsyncAsyncWithHttpInfo(userId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> ReportApiReportUserAsyncAsyncWithHttpInfo (int? userId, ApiReportOfUserOrChatInputModel model) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling ReportApiApi->ReportApiReportUserAsync"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling ReportApiApi->ReportApiReportUserAsync"); var localVarPath = "/v1/users/{userId}/_report"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("ReportApiReportUserAsync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } } }