/* * 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 /// /// /// CursorPaginationResultBlockedUserViewModel CursorPaginationResultBlockedUserViewModel UserApiGetBlockedUsers (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultBlockedUserViewModel ApiResponse UserApiGetBlockedUsersWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// 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 /// /// /// Task of CursorPaginationResultBlockedUserViewModel System.Threading.Tasks.Task UserApiGetBlockedUsersAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultBlockedUserViewModel) System.Threading.Tasks.Task> UserApiGetBlockedUsersAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// 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< QrCodeViewModel > 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"); var localVarPath = "/v1/qrcode/_analyze"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (qrcodetext != null) localVarQueryParams.Add("qrcodetext", Configuration.ApiClient.ParameterToString(qrcodetext)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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"); var localVarPath = "/v1/qrcode/_analyze"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (qrcodetext != null) localVarQueryParams.Add("qrcodetext", Configuration.ApiClient.ParameterToString(qrcodetext)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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"); var localVarPath = "/v1/_cancelasmobileuser"; 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[] { }; 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 var 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"); var localVarPath = "/v1/_cancelasmobileuser"; 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[] { }; 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 var 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"); var localVarPath = "/v1/users/{userId}/remark"; 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("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"); var localVarPath = "/v1/users/{userId}/remark"; 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("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< EligibilityViewModel > 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"); var localVarPath = "/v1/users/_checkEligilibity"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (eligibilityType != null) localVarQueryParams.Add("eligibilityType", Configuration.ApiClient.ParameterToString(eligibilityType)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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"); var localVarPath = "/v1/users/_checkEligilibity"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (eligibilityType != null) localVarQueryParams.Add("eligibilityType", Configuration.ApiClient.ParameterToString(eligibilityType)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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< string > 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"); var localVarPath = "/v1/realnamestatus"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (realName != null) localVarQueryParams.Add("realName", Configuration.ApiClient.ParameterToString(realName)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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"); var localVarPath = "/v1/realnamestatus"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (realName != null) localVarQueryParams.Add("realName", Configuration.ApiClient.ParameterToString(realName)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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"); var localVarPath = "/v1/users/_disableBlock"; 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(userIds); // 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("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"); var localVarPath = "/v1/users/_disableBlock"; 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(userIds); // 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("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 () { var localVarPath = "/v1/users/_disableNoDisturb"; 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[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // 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("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 () { var localVarPath = "/v1/users/_disableNoDisturb"; 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[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // 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("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"); var localVarPath = "/v1/users/_enableBlock"; 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(userIds); // 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("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"); var localVarPath = "/v1/users/_enableBlock"; 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(userIds); // 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("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"); var localVarPath = "/v1/users/_enableNoDisturb"; 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("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"); var localVarPath = "/v1/users/_enableNoDisturb"; 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("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 /// /// /// CursorPaginationResultBlockedUserViewModel public CursorPaginationResultBlockedUserViewModel UserApiGetBlockedUsers (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = UserApiGetBlockedUsersWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultBlockedUserViewModel public ApiResponse< CursorPaginationResultBlockedUserViewModel > UserApiGetBlockedUsersWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling UserApiApi->UserApiGetBlockedUsers"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling UserApiApi->UserApiGetBlockedUsers"); var localVarPath = "/v1/blockedUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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 /// /// /// Task of CursorPaginationResultBlockedUserViewModel public async System.Threading.Tasks.Task UserApiGetBlockedUsersAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await UserApiGetBlockedUsersAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultBlockedUserViewModel) public async System.Threading.Tasks.Task> UserApiGetBlockedUsersAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling UserApiApi->UserApiGetBlockedUsers"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling UserApiApi->UserApiGetBlockedUsers"); var localVarPath = "/v1/blockedUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("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(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultBlockedUserViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// List<SearchUserViewModel> public List UserApiGetRecommendedFriends (int? limit = null, int? offset = null) { ApiResponse> localVarResponse = UserApiGetRecommendedFriendsWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<SearchUserViewModel> public ApiResponse< List > UserApiGetRecommendedFriendsWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/recommendedFriends"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiGetRecommendedFriends", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of List<SearchUserViewModel> public async System.Threading.Tasks.Task> UserApiGetRecommendedFriendsAsync (int? limit = null, int? offset = null) { ApiResponse> localVarResponse = await UserApiGetRecommendedFriendsAsyncWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<SearchUserViewModel>) public async System.Threading.Tasks.Task>> UserApiGetRecommendedFriendsAsyncWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/recommendedFriends"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiGetRecommendedFriends", 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 /// /// UserDetailedViewModel public UserDetailedViewModel UserApiGetUser (int? userId) { ApiResponse localVarResponse = UserApiGetUserWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of UserDetailedViewModel public ApiResponse< UserDetailedViewModel > UserApiGetUserWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUser"); var localVarPath = "/v1/users/{userId}"; 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("UserApiGetUser", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UserDetailedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(UserDetailedViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of UserDetailedViewModel public async System.Threading.Tasks.Task UserApiGetUserAsync (int? userId) { ApiResponse localVarResponse = await UserApiGetUserAsyncWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (UserDetailedViewModel) public async System.Threading.Tasks.Task> UserApiGetUserAsyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUser"); var localVarPath = "/v1/users/{userId}"; 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("UserApiGetUser", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UserDetailedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(UserDetailedViewModel))); } /// /// /// /// Thrown when fails to make API call /// List<UserSyncViewModel> public List UserApiGetUser2UserSyncs () { ApiResponse> localVarResponse = UserApiGetUser2UserSyncsWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<UserSyncViewModel> public ApiResponse< List > UserApiGetUser2UserSyncsWithHttpInfo () { var localVarPath = "/v1/user2user_sync"; 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("UserApiGetUser2UserSyncs", 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<UserSyncViewModel> public async System.Threading.Tasks.Task> UserApiGetUser2UserSyncsAsync () { ApiResponse> localVarResponse = await UserApiGetUser2UserSyncsAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<UserSyncViewModel>) public async System.Threading.Tasks.Task>> UserApiGetUser2UserSyncsAsyncWithHttpInfo () { var localVarPath = "/v1/user2user_sync"; 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("UserApiGetUser2UserSyncs", 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 /// /// PersonalUserSettingIncludeGroupInfoViewModel public PersonalUserSettingIncludeGroupInfoViewModel UserApiGetUserSetting (int? userId) { ApiResponse localVarResponse = UserApiGetUserSettingWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of PersonalUserSettingIncludeGroupInfoViewModel public ApiResponse< PersonalUserSettingIncludeGroupInfoViewModel > UserApiGetUserSettingWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUserSetting"); var localVarPath = "/v1/users/{userId}/remark"; 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("UserApiGetUserSetting", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (PersonalUserSettingIncludeGroupInfoViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(PersonalUserSettingIncludeGroupInfoViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of PersonalUserSettingIncludeGroupInfoViewModel public async System.Threading.Tasks.Task UserApiGetUserSettingAsync (int? userId) { ApiResponse localVarResponse = await UserApiGetUserSettingAsyncWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (PersonalUserSettingIncludeGroupInfoViewModel) public async System.Threading.Tasks.Task> UserApiGetUserSettingAsyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUserSetting"); var localVarPath = "/v1/users/{userId}/remark"; 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("UserApiGetUserSetting", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (PersonalUserSettingIncludeGroupInfoViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(PersonalUserSettingIncludeGroupInfoViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// UserSyncViewModel public UserSyncViewModel UserApiGetUserSync (int? userId) { ApiResponse localVarResponse = UserApiGetUserSyncWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of UserSyncViewModel public ApiResponse< UserSyncViewModel > UserApiGetUserSyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUserSync"); var localVarPath = "/v1/user_sync/{userId}"; 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("UserApiGetUserSync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UserSyncViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(UserSyncViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of UserSyncViewModel public async System.Threading.Tasks.Task UserApiGetUserSyncAsync (int? userId) { ApiResponse localVarResponse = await UserApiGetUserSyncAsyncWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (UserSyncViewModel) public async System.Threading.Tasks.Task> UserApiGetUserSyncAsyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiGetUserSync"); var localVarPath = "/v1/user_sync/{userId}"; 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("UserApiGetUserSync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (UserSyncViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(UserSyncViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// List<UserSyncViewModel> public List UserApiGetUserSyncs (List args) { ApiResponse> localVarResponse = UserApiGetUserSyncsWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<UserSyncViewModel> public ApiResponse< List > UserApiGetUserSyncsWithHttpInfo (List args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling UserApiApi->UserApiGetUserSyncs"); var localVarPath = "/v1/user_sync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(args); // 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("UserApiGetUserSyncs", 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<UserSyncViewModel> public async System.Threading.Tasks.Task> UserApiGetUserSyncsAsync (List args) { ApiResponse> localVarResponse = await UserApiGetUserSyncsAsyncWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<UserSyncViewModel>) public async System.Threading.Tasks.Task>> UserApiGetUserSyncsAsyncWithHttpInfo (List args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling UserApiApi->UserApiGetUserSyncs"); var localVarPath = "/v1/user_sync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(args); // 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("UserApiGetUserSyncs", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// List<IndustryUserViewModel> public List UserApiIndustryUsers (int? regionId = null, string gender = null, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = UserApiIndustryUsersWithHttpInfo(regionId, gender, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<IndustryUserViewModel> public ApiResponse< List > UserApiIndustryUsersWithHttpInfo (int? regionId = null, string gender = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/industryUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (regionId != null) localVarQueryParams.Add("regionId", Configuration.ApiClient.ParameterToString(regionId)); // query parameter if (gender != null) localVarQueryParams.Add("gender", Configuration.ApiClient.ParameterToString(gender)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiIndustryUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of List<IndustryUserViewModel> public async System.Threading.Tasks.Task> UserApiIndustryUsersAsync (int? regionId = null, string gender = null, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = await UserApiIndustryUsersAsyncWithHttpInfo(regionId, gender, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<IndustryUserViewModel>) public async System.Threading.Tasks.Task>> UserApiIndustryUsersAsyncWithHttpInfo (int? regionId = null, string gender = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/industryUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (regionId != null) localVarQueryParams.Add("regionId", Configuration.ApiClient.ParameterToString(regionId)); // query parameter if (gender != null) localVarQueryParams.Add("gender", Configuration.ApiClient.ParameterToString(gender)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiIndustryUsers", 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 /// /// BoolViewModel public BoolViewModel UserApiIsMobileVisibled (int? userId) { ApiResponse localVarResponse = UserApiIsMobileVisibledWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of BoolViewModel public ApiResponse< BoolViewModel > UserApiIsMobileVisibledWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiIsMobileVisibled"); var localVarPath = "/v1/ismobilevisibled"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiIsMobileVisibled", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of BoolViewModel public async System.Threading.Tasks.Task UserApiIsMobileVisibledAsync (int? userId) { ApiResponse localVarResponse = await UserApiIsMobileVisibledAsyncWithHttpInfo(userId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (BoolViewModel) public async System.Threading.Tasks.Task> UserApiIsMobileVisibledAsyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiIsMobileVisibled"); var localVarPath = "/v1/ismobilevisibled"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (userId != null) localVarQueryParams.Add("userId", Configuration.ApiClient.ParameterToString(userId)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiIsMobileVisibled", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (BoolViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(BoolViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// QueryResultSearchUserViewModel public QueryResultSearchUserViewModel UserApiListUsers (int? limit = null, int? offset = null) { ApiResponse localVarResponse = UserApiListUsersWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultSearchUserViewModel public ApiResponse< QueryResultSearchUserViewModel > UserApiListUsersWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/users"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiListUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultSearchUserViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultSearchUserViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultSearchUserViewModel public async System.Threading.Tasks.Task UserApiListUsersAsync (int? limit = null, int? offset = null) { ApiResponse localVarResponse = await UserApiListUsersAsyncWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultSearchUserViewModel) public async System.Threading.Tasks.Task> UserApiListUsersAsyncWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/users"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiListUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultSearchUserViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultSearchUserViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// public void UserApiMarkAsMobileUser (int? userId) { UserApiMarkAsMobileUserWithHttpInfo(userId); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse UserApiMarkAsMobileUserWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiMarkAsMobileUser"); var localVarPath = "/v1/_markasmobileuser"; 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[] { }; 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 var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiMarkAsMobileUser", 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 UserApiMarkAsMobileUserAsync (int? userId) { await UserApiMarkAsMobileUserAsyncWithHttpInfo(userId); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> UserApiMarkAsMobileUserAsyncWithHttpInfo (int? userId) { // verify the required parameter 'userId' is set if (userId == null) throw new ApiException(400, "Missing required parameter 'userId' when calling UserApiApi->UserApiMarkAsMobileUser"); var localVarPath = "/v1/_markasmobileuser"; 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[] { }; 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 var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiMarkAsMobileUser", 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) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// List<NearbyUserViewModel> public List UserApiNearbyUsers (double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = UserApiNearbyUsersWithHttpInfo(longitude, latitude, gender, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<NearbyUserViewModel> public ApiResponse< List > UserApiNearbyUsersWithHttpInfo (double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/nearbyUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (gender != null) localVarQueryParams.Add("gender", Configuration.ApiClient.ParameterToString(gender)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiNearbyUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of List<NearbyUserViewModel> public async System.Threading.Tasks.Task> UserApiNearbyUsersAsync (double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = await UserApiNearbyUsersAsyncWithHttpInfo(longitude, latitude, gender, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<NearbyUserViewModel>) public async System.Threading.Tasks.Task>> UserApiNearbyUsersAsyncWithHttpInfo (double? longitude = null, double? latitude = null, string gender = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/nearbyUsers"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (gender != null) localVarQueryParams.Add("gender", Configuration.ApiClient.ParameterToString(gender)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiNearbyUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// 搜索词 /// (optional, default to 10) /// (optional, default to 0) /// List<SearchUserViewModel> public List UserApiSearchUsers (string q, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = UserApiSearchUsersWithHttpInfo(q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 搜索词 /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<SearchUserViewModel> public ApiResponse< List > UserApiSearchUsersWithHttpInfo (string q, int? limit = null, int? offset = null) { // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling UserApiApi->UserApiSearchUsers"); var localVarPath = "/v1/users/_search"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiSearchUsers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// 搜索词 /// (optional, default to 10) /// (optional, default to 0) /// Task of List<SearchUserViewModel> public async System.Threading.Tasks.Task> UserApiSearchUsersAsync (string q, int? limit = null, int? offset = null) { ApiResponse> localVarResponse = await UserApiSearchUsersAsyncWithHttpInfo(q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 搜索词 /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<SearchUserViewModel>) public async System.Threading.Tasks.Task>> UserApiSearchUsersAsyncWithHttpInfo (string q, int? limit = null, int? offset = null) { // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling UserApiApi->UserApiSearchUsers"); var localVarPath = "/v1/users/_search"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("UserApiSearchUsers", 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))); } } }