/*
* 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 IUserApiApi : IApiAccessor
{
#region Synchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// QrCodeViewModel
QrCodeViewModel UserApiAnalyzeQrCode(string qrcodetext);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of QrCodeViewModel
ApiResponse UserApiAnalyzeQrCodeWithHttpInfo(string qrcodetext);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void UserApiCancelAsMobileUser(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse UserApiCancelAsMobileUserWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
///
void UserApiChangeRemark(int? userId, PersonalUserSettingRemarkInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
/// ApiResponse of Object(void)
ApiResponse UserApiChangeRemarkWithHttpInfo(int? userId, PersonalUserSettingRemarkInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// EligibilityViewModel
EligibilityViewModel UserApiCheckEligilibity(string eligibilityType);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of EligibilityViewModel
ApiResponse UserApiCheckEligilibityWithHttpInfo(string eligibilityType);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// string
string UserApiCheckRealNameStatus(string realName);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of string
ApiResponse UserApiCheckRealNameStatusWithHttpInfo(string realName);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
///
void UserApiDisableBlock(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
ApiResponse UserApiDisableBlockWithHttpInfo(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
void UserApiDisableNoDisturb();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of Object(void)
ApiResponse UserApiDisableNoDisturbWithHttpInfo();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
///
void UserApiEnableBlock(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
ApiResponse UserApiEnableBlockWithHttpInfo(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
///
void UserApiEnableNoDisturb(ChangeNoDisturbEnabledInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
ApiResponse UserApiEnableNoDisturbWithHttpInfo(ChangeNoDisturbEnabledInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// CursorPaginationResultBlockedUserViewModel
CursorPaginationResultBlockedUserViewModel UserApiGetBlockedUsers(long? cursor = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// ApiResponse of CursorPaginationResultBlockedUserViewModel
ApiResponse UserApiGetBlockedUsersWithHttpInfo(long? cursor = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// List<SearchUserViewModel>
List UserApiGetRecommendedFriends(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of List<SearchUserViewModel>
ApiResponse> UserApiGetRecommendedFriendsWithHttpInfo(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// UserDetailedViewModel
UserDetailedViewModel UserApiGetUser(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of UserDetailedViewModel
ApiResponse UserApiGetUserWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// List<UserSyncViewModel>
List UserApiGetUser2UserSyncs();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of List<UserSyncViewModel>
ApiResponse> UserApiGetUser2UserSyncsWithHttpInfo();
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// PersonalUserSettingIncludeGroupInfoViewModel
PersonalUserSettingIncludeGroupInfoViewModel UserApiGetUserSetting(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalUserSettingIncludeGroupInfoViewModel
ApiResponse UserApiGetUserSettingWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// UserSyncViewModel
UserSyncViewModel UserApiGetUserSync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of UserSyncViewModel
ApiResponse UserApiGetUserSyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// List<UserSyncViewModel>
List UserApiGetUserSyncs(List args);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of List<UserSyncViewModel>
ApiResponse> UserApiGetUserSyncsWithHttpInfo(List args);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// List<IndustryUserViewModel>
List UserApiIndustryUsers(int? regionId = null, string gender = 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 List<IndustryUserViewModel>
ApiResponse> UserApiIndustryUsersWithHttpInfo(int? regionId = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// BoolViewModel
BoolViewModel UserApiIsMobileVisibled(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of BoolViewModel
ApiResponse UserApiIsMobileVisibledWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// QueryResultSearchUserViewModel
QueryResultSearchUserViewModel UserApiListUsers(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of QueryResultSearchUserViewModel
ApiResponse UserApiListUsersWithHttpInfo(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void UserApiMarkAsMobileUser(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse UserApiMarkAsMobileUserWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// List<NearbyUserViewModel>
List UserApiNearbyUsers(double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of List<NearbyUserViewModel>
ApiResponse> UserApiNearbyUsersWithHttpInfo(double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 搜索词
/// (optional, default to 10)
/// (optional, default to 0)
/// List<SearchUserViewModel>
List UserApiSearchUsers(string q, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 搜索词
/// (optional, default to 10)
/// (optional, default to 0)
/// ApiResponse of List<SearchUserViewModel>
ApiResponse> UserApiSearchUsersWithHttpInfo(string q, int? limit = null, int? offset = null);
#endregion Synchronous Operations
#region Asynchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of QrCodeViewModel
System.Threading.Tasks.Task UserApiAnalyzeQrCodeAsync(string qrcodetext);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (QrCodeViewModel)
System.Threading.Tasks.Task> UserApiAnalyzeQrCodeAsyncWithHttpInfo(string qrcodetext);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task UserApiCancelAsMobileUserAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiCancelAsMobileUserAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
/// Task of void
System.Threading.Tasks.Task UserApiChangeRemarkAsync(int? userId, PersonalUserSettingRemarkInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiChangeRemarkAsyncWithHttpInfo(int? userId, PersonalUserSettingRemarkInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of EligibilityViewModel
System.Threading.Tasks.Task UserApiCheckEligilibityAsync(string eligibilityType);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (EligibilityViewModel)
System.Threading.Tasks.Task> UserApiCheckEligilibityAsyncWithHttpInfo(string eligibilityType);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of string
System.Threading.Tasks.Task UserApiCheckRealNameStatusAsync(string realName);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (string)
System.Threading.Tasks.Task> UserApiCheckRealNameStatusAsyncWithHttpInfo(string realName);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of void
System.Threading.Tasks.Task UserApiDisableBlockAsync(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiDisableBlockAsyncWithHttpInfo(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of void
System.Threading.Tasks.Task UserApiDisableNoDisturbAsync();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiDisableNoDisturbAsyncWithHttpInfo();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of void
System.Threading.Tasks.Task UserApiEnableBlockAsync(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiEnableBlockAsyncWithHttpInfo(List userIds);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of void
System.Threading.Tasks.Task UserApiEnableNoDisturbAsync(ChangeNoDisturbEnabledInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiEnableNoDisturbAsyncWithHttpInfo(ChangeNoDisturbEnabledInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// Task of CursorPaginationResultBlockedUserViewModel
System.Threading.Tasks.Task UserApiGetBlockedUsersAsync(long? cursor = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// Task of ApiResponse (CursorPaginationResultBlockedUserViewModel)
System.Threading.Tasks.Task> UserApiGetBlockedUsersAsyncWithHttpInfo(long? cursor = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of List<SearchUserViewModel>
System.Threading.Tasks.Task> UserApiGetRecommendedFriendsAsync(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (List<SearchUserViewModel>)
System.Threading.Tasks.Task>> UserApiGetRecommendedFriendsAsyncWithHttpInfo(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of UserDetailedViewModel
System.Threading.Tasks.Task UserApiGetUserAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (UserDetailedViewModel)
System.Threading.Tasks.Task> UserApiGetUserAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of List<UserSyncViewModel>
System.Threading.Tasks.Task> UserApiGetUser2UserSyncsAsync();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (List<UserSyncViewModel>)
System.Threading.Tasks.Task>> UserApiGetUser2UserSyncsAsyncWithHttpInfo();
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalUserSettingIncludeGroupInfoViewModel
System.Threading.Tasks.Task UserApiGetUserSettingAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalUserSettingIncludeGroupInfoViewModel)
System.Threading.Tasks.Task> UserApiGetUserSettingAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of UserSyncViewModel
System.Threading.Tasks.Task UserApiGetUserSyncAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (UserSyncViewModel)
System.Threading.Tasks.Task> UserApiGetUserSyncAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of List<UserSyncViewModel>
System.Threading.Tasks.Task> UserApiGetUserSyncsAsync(List args);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (List<UserSyncViewModel>)
System.Threading.Tasks.Task>> UserApiGetUserSyncsAsyncWithHttpInfo(List args);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of List<IndustryUserViewModel>
System.Threading.Tasks.Task> UserApiIndustryUsersAsync(int? regionId = null, string gender = 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 (List<IndustryUserViewModel>)
System.Threading.Tasks.Task>> UserApiIndustryUsersAsyncWithHttpInfo(int? regionId = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of BoolViewModel
System.Threading.Tasks.Task UserApiIsMobileVisibledAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (BoolViewModel)
System.Threading.Tasks.Task> UserApiIsMobileVisibledAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of QueryResultSearchUserViewModel
System.Threading.Tasks.Task UserApiListUsersAsync(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (QueryResultSearchUserViewModel)
System.Threading.Tasks.Task> UserApiListUsersAsyncWithHttpInfo(int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task UserApiMarkAsMobileUserAsync(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> UserApiMarkAsMobileUserAsyncWithHttpInfo(int? userId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of List<NearbyUserViewModel>
System.Threading.Tasks.Task> UserApiNearbyUsersAsync(double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// (optional)
/// (optional)
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (List<NearbyUserViewModel>)
System.Threading.Tasks.Task>> UserApiNearbyUsersAsyncWithHttpInfo(double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 搜索词
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of List<SearchUserViewModel>
System.Threading.Tasks.Task> UserApiSearchUsersAsync(string q, int? limit = null, int? offset = null);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 搜索词
/// (optional, default to 10)
/// (optional, default to 0)
/// Task of ApiResponse (List<SearchUserViewModel>)
System.Threading.Tasks.Task>> UserApiSearchUsersAsyncWithHttpInfo(string q, int? limit = null, int? offset = null);
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class UserApiApi : IUserApiApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public UserApiApi(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
///
/// QrCodeViewModel
public QrCodeViewModel UserApiAnalyzeQrCode(string qrcodetext)
{
ApiResponse localVarResponse = UserApiAnalyzeQrCodeWithHttpInfo(qrcodetext);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of QrCodeViewModel
public ApiResponse UserApiAnalyzeQrCodeWithHttpInfo(string qrcodetext)
{
// verify the required parameter 'qrcodetext' is set
if (qrcodetext == null)
throw new ApiException(400, "Missing required parameter 'qrcodetext' when calling UserApiApi->UserApiAnalyzeQrCode");
string localVarPath = "/v1/qrcode/_analyze";
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 (qrcodetext != null) localVarQueryParams.Add("qrcodetext", Configuration.ApiClient.ParameterToString(qrcodetext)); // 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("UserApiAnalyzeQrCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(QrCodeViewModel)Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QrCodeViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of QrCodeViewModel
public async System.Threading.Tasks.Task UserApiAnalyzeQrCodeAsync(string qrcodetext)
{
ApiResponse localVarResponse = await UserApiAnalyzeQrCodeAsyncWithHttpInfo(qrcodetext);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (QrCodeViewModel)
public async System.Threading.Tasks.Task> UserApiAnalyzeQrCodeAsyncWithHttpInfo(string qrcodetext)
{
// verify the required parameter 'qrcodetext' is set
if (qrcodetext == null)
throw new ApiException(400, "Missing required parameter 'qrcodetext' when calling UserApiApi->UserApiAnalyzeQrCode");
string localVarPath = "/v1/qrcode/_analyze";
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 (qrcodetext != null) localVarQueryParams.Add("qrcodetext", Configuration.ApiClient.ParameterToString(qrcodetext)); // 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("UserApiAnalyzeQrCode", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(QrCodeViewModel)Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QrCodeViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
///
public void UserApiCancelAsMobileUser(int? userId)
{
UserApiCancelAsMobileUserWithHttpInfo(userId);
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
public ApiResponse UserApiCancelAsMobileUserWithHttpInfo(int? userId)
{
// verify the required parameter 'userId' is set
if (userId == null)
throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiCancelAsMobileUser");
string localVarPath = "/v1/_cancelasmobileuser";
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[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query 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("UserApiCancelAsMobileUser", 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 UserApiCancelAsMobileUserAsync(int? userId)
{
await UserApiCancelAsMobileUserAsyncWithHttpInfo(userId);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiCancelAsMobileUserAsyncWithHttpInfo(int? userId)
{
// verify the required parameter 'userId' is set
if (userId == null)
throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiCancelAsMobileUser");
string localVarPath = "/v1/_cancelasmobileuser";
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[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query 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("UserApiCancelAsMobileUser", 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 UserApiChangeRemark(int? userId, PersonalUserSettingRemarkInputModel model)
{
UserApiChangeRemarkWithHttpInfo(userId, model);
}
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
/// ApiResponse of Object(void)
public ApiResponse UserApiChangeRemarkWithHttpInfo(int? userId, PersonalUserSettingRemarkInputModel model)
{
// verify the required parameter 'userId' is set
if (userId == null)
throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiChangeRemark");
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling UserApiApi->UserApiChangeRemark");
string localVarPath = "/v1/users/{userId}/remark";
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(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("UserApiChangeRemark", 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 UserApiChangeRemarkAsync(int? userId, PersonalUserSettingRemarkInputModel model)
{
await UserApiChangeRemarkAsyncWithHttpInfo(userId, model);
}
///
///
///
/// Thrown when fails to make API call
/// 用户编号
/// 用户对象
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiChangeRemarkAsyncWithHttpInfo(int? userId, PersonalUserSettingRemarkInputModel model)
{
// verify the required parameter 'userId' is set
if (userId == null)
throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiChangeRemark");
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling UserApiApi->UserApiChangeRemark");
string localVarPath = "/v1/users/{userId}/remark";
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(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("UserApiChangeRemark", 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
///
/// EligibilityViewModel
public EligibilityViewModel UserApiCheckEligilibity(string eligibilityType)
{
ApiResponse localVarResponse = UserApiCheckEligilibityWithHttpInfo(eligibilityType);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of EligibilityViewModel
public ApiResponse UserApiCheckEligilibityWithHttpInfo(string eligibilityType)
{
// verify the required parameter 'eligibilityType' is set
if (eligibilityType == null)
throw new ApiException(400, "Missing required parameter 'eligibilityType' when calling UserApiApi->UserApiCheckEligilibity");
string localVarPath = "/v1/users/_checkEligilibity";
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 (eligibilityType != null) localVarQueryParams.Add("eligibilityType", Configuration.ApiClient.ParameterToString(eligibilityType)); // 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("UserApiCheckEligilibity", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(EligibilityViewModel)Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(EligibilityViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of EligibilityViewModel
public async System.Threading.Tasks.Task UserApiCheckEligilibityAsync(string eligibilityType)
{
ApiResponse localVarResponse = await UserApiCheckEligilibityAsyncWithHttpInfo(eligibilityType);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (EligibilityViewModel)
public async System.Threading.Tasks.Task> UserApiCheckEligilibityAsyncWithHttpInfo(string eligibilityType)
{
// verify the required parameter 'eligibilityType' is set
if (eligibilityType == null)
throw new ApiException(400, "Missing required parameter 'eligibilityType' when calling UserApiApi->UserApiCheckEligilibity");
string localVarPath = "/v1/users/_checkEligilibity";
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 (eligibilityType != null) localVarQueryParams.Add("eligibilityType", Configuration.ApiClient.ParameterToString(eligibilityType)); // 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("UserApiCheckEligilibity", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(EligibilityViewModel)Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(EligibilityViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// string
public string UserApiCheckRealNameStatus(string realName)
{
ApiResponse localVarResponse = UserApiCheckRealNameStatusWithHttpInfo(realName);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of string
public ApiResponse UserApiCheckRealNameStatusWithHttpInfo(string realName)
{
// verify the required parameter 'realName' is set
if (realName == null)
throw new ApiException(400, "Missing required parameter 'realName' when calling UserApiApi->UserApiCheckRealNameStatus");
string localVarPath = "/v1/realnamestatus";
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 (realName != null) localVarQueryParams.Add("realName", Configuration.ApiClient.ParameterToString(realName)); // 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("UserApiCheckRealNameStatus", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(string)Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(string)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of string
public async System.Threading.Tasks.Task UserApiCheckRealNameStatusAsync(string realName)
{
ApiResponse localVarResponse = await UserApiCheckRealNameStatusAsyncWithHttpInfo(realName);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (string)
public async System.Threading.Tasks.Task> UserApiCheckRealNameStatusAsyncWithHttpInfo(string realName)
{
// verify the required parameter 'realName' is set
if (realName == null)
throw new ApiException(400, "Missing required parameter 'realName' when calling UserApiApi->UserApiCheckRealNameStatus");
string localVarPath = "/v1/realnamestatus";
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 (realName != null) localVarQueryParams.Add("realName", Configuration.ApiClient.ParameterToString(realName)); // 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("UserApiCheckRealNameStatus", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(string)Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(string)));
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
///
public void UserApiDisableBlock(List userIds)
{
UserApiDisableBlockWithHttpInfo(userIds);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
public ApiResponse UserApiDisableBlockWithHttpInfo(List userIds)
{
// verify the required parameter 'userIds' is set
if (userIds == null)
throw new ApiException(400, "Missing required parameter 'userIds' when calling UserApiApi->UserApiDisableBlock");
string localVarPath = "/v1/users/_disableBlock";
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(userIds); // 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("UserApiDisableBlock", 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 UserApiDisableBlockAsync(List userIds)
{
await UserApiDisableBlockAsyncWithHttpInfo(userIds);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiDisableBlockAsyncWithHttpInfo(List userIds)
{
// verify the required parameter 'userIds' is set
if (userIds == null)
throw new ApiException(400, "Missing required parameter 'userIds' when calling UserApiApi->UserApiDisableBlock");
string localVarPath = "/v1/users/_disableBlock";
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(userIds); // 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("UserApiDisableBlock", 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 UserApiDisableNoDisturb()
{
UserApiDisableNoDisturbWithHttpInfo();
}
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of Object(void)
public ApiResponse UserApiDisableNoDisturbWithHttpInfo()
{
string localVarPath = "/v1/users/_disableNoDisturb";
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[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// 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("UserApiDisableNoDisturb", 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 UserApiDisableNoDisturbAsync()
{
await UserApiDisableNoDisturbAsyncWithHttpInfo();
}
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiDisableNoDisturbAsyncWithHttpInfo()
{
string localVarPath = "/v1/users/_disableNoDisturb";
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[] {
};
string localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
// 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("UserApiDisableNoDisturb", 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 UserApiEnableBlock(List userIds)
{
UserApiEnableBlockWithHttpInfo(userIds);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
public ApiResponse UserApiEnableBlockWithHttpInfo(List userIds)
{
// verify the required parameter 'userIds' is set
if (userIds == null)
throw new ApiException(400, "Missing required parameter 'userIds' when calling UserApiApi->UserApiEnableBlock");
string localVarPath = "/v1/users/_enableBlock";
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(userIds); // 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("UserApiEnableBlock", 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 UserApiEnableBlockAsync(List userIds)
{
await UserApiEnableBlockAsyncWithHttpInfo(userIds);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiEnableBlockAsyncWithHttpInfo(List userIds)
{
// verify the required parameter 'userIds' is set
if (userIds == null)
throw new ApiException(400, "Missing required parameter 'userIds' when calling UserApiApi->UserApiEnableBlock");
string localVarPath = "/v1/users/_enableBlock";
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(userIds); // 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("UserApiEnableBlock", 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 UserApiEnableNoDisturb(ChangeNoDisturbEnabledInputModel model)
{
UserApiEnableNoDisturbWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// ApiResponse of Object(void)
public ApiResponse UserApiEnableNoDisturbWithHttpInfo(ChangeNoDisturbEnabledInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling UserApiApi->UserApiEnableNoDisturb");
string localVarPath = "/v1/users/_enableNoDisturb";
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(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("UserApiEnableNoDisturb", 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 UserApiEnableNoDisturbAsync(ChangeNoDisturbEnabledInputModel model)
{
await UserApiEnableNoDisturbAsyncWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
/// 用户对象
/// Task of ApiResponse
public async System.Threading.Tasks.Task> UserApiEnableNoDisturbAsyncWithHttpInfo(ChangeNoDisturbEnabledInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling UserApiApi->UserApiEnableNoDisturb");
string localVarPath = "/v1/users/_enableNoDisturb";
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(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("UserApiEnableNoDisturb", 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)
/// CursorPaginationResultBlockedUserViewModel
public CursorPaginationResultBlockedUserViewModel UserApiGetBlockedUsers(long? cursor = null)
{
ApiResponse localVarResponse = UserApiGetBlockedUsersWithHttpInfo(cursor);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// ApiResponse of CursorPaginationResultBlockedUserViewModel
public ApiResponse UserApiGetBlockedUsersWithHttpInfo(long? cursor = null)
{
string localVarPath = "/v1/blockedUsers";
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 (cursor != null) localVarQueryParams.Add("cursor", Configuration.ApiClient.ParameterToString(cursor)); // 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("UserApiGetBlockedUsers", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CursorPaginationResultBlockedUserViewModel)Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultBlockedUserViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// Task of CursorPaginationResultBlockedUserViewModel
public async System.Threading.Tasks.Task UserApiGetBlockedUsersAsync(long? cursor = null)
{
ApiResponse localVarResponse = await UserApiGetBlockedUsersAsyncWithHttpInfo(cursor);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// (optional)
/// Task of ApiResponse (CursorPaginationResultBlockedUserViewModel)
public async System.Threading.Tasks.Task> UserApiGetBlockedUsersAsyncWithHttpInfo(long? cursor = null)
{
string localVarPath = "/v1/blockedUsers";
Dictionary localVarQueryParams = new Dictionary();
Dictionary localVarHeaderParams = new Dictionary(Configuration.DefaultHeader);
Dictionary