/* * 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 ITouristChatApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void TouristChatApiChangeRemark (long? touristChatId, ChangeTouristChatRemarkInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse TouristChatApiChangeRemarkWithHttpInfo (long? touristChatId, ChangeTouristChatRemarkInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiDisableBlock (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiDisableBlockWithHttpInfo (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiDisableNoDisturb (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiDisableNoDisturbWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiDisableTop (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiDisableTopWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiEnableBlock (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiEnableBlockWithHttpInfo (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiEnableNoDisturb (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiEnableNoDisturbWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// void TouristChatApiEnableTop (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) ApiResponse TouristChatApiEnableTopWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// TouristChatOtherViewModel TouristChatOtherViewModel TouristChatApiGetTouristChatFromTouristChatId (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of TouristChatOtherViewModel ApiResponse TouristChatApiGetTouristChatFromTouristChatIdWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// TouristChatOtherViewModel TouristChatOtherViewModel TouristChatApiGetTouristChatTransfer (TouristChatTransferInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of TouristChatOtherViewModel ApiResponse TouristChatApiGetTouristChatTransferWithHttpInfo (TouristChatTransferInputModel model); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task TouristChatApiChangeRemarkAsync (long? touristChatId, ChangeTouristChatRemarkInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiChangeRemarkAsyncWithHttpInfo (long? touristChatId, ChangeTouristChatRemarkInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiDisableBlockAsync (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiDisableBlockAsyncWithHttpInfo (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiDisableNoDisturbAsync (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiDisableNoDisturbAsyncWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiDisableTopAsync (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiDisableTopAsyncWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiEnableBlockAsync (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiEnableBlockAsyncWithHttpInfo (Guid? touristId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiEnableNoDisturbAsync (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiEnableNoDisturbAsyncWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of void System.Threading.Tasks.Task TouristChatApiEnableTopAsync (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse System.Threading.Tasks.Task> TouristChatApiEnableTopAsyncWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of TouristChatOtherViewModel System.Threading.Tasks.Task TouristChatApiGetTouristChatFromTouristChatIdAsync (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (TouristChatOtherViewModel) System.Threading.Tasks.Task> TouristChatApiGetTouristChatFromTouristChatIdAsyncWithHttpInfo (long? touristChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of TouristChatOtherViewModel System.Threading.Tasks.Task TouristChatApiGetTouristChatTransferAsync (TouristChatTransferInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (TouristChatOtherViewModel) System.Threading.Tasks.Task> TouristChatApiGetTouristChatTransferAsyncWithHttpInfo (TouristChatTransferInputModel model); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class TouristChatApiApi : ITouristChatApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public TouristChatApiApi(Configuration configuration) { this.Configuration = configuration; ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory; // ensure API client has configuration ready if (Configuration.ApiClient.Configuration == null) { this.Configuration.ApiClient.Configuration = this.Configuration; } } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// public IO.Swagger.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// /// /// Thrown when fails to make API call /// /// /// public void TouristChatApiChangeRemark (long? touristChatId, ChangeTouristChatRemarkInputModel model) { TouristChatApiChangeRemarkWithHttpInfo(touristChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse TouristChatApiChangeRemarkWithHttpInfo (long? touristChatId, ChangeTouristChatRemarkInputModel model) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiChangeRemark"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling TouristChatApiApi->TouristChatApiChangeRemark"); var localVarPath = "/v1/touristChats/{touristChatId}/_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("TouristChatApiChangeRemark", 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 TouristChatApiChangeRemarkAsync (long? touristChatId, ChangeTouristChatRemarkInputModel model) { await TouristChatApiChangeRemarkAsyncWithHttpInfo(touristChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiChangeRemarkAsyncWithHttpInfo (long? touristChatId, ChangeTouristChatRemarkInputModel model) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiChangeRemark"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling TouristChatApiApi->TouristChatApiChangeRemark"); var localVarPath = "/v1/touristChats/{touristChatId}/_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("TouristChatApiChangeRemark", 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 TouristChatApiDisableBlock (Guid? touristId) { TouristChatApiDisableBlockWithHttpInfo(touristId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiDisableBlockWithHttpInfo (Guid? touristId) { // verify the required parameter 'touristId' is set if (touristId == null) throw new ApiException(400, "Missing required parameter 'touristId' when calling TouristChatApiApi->TouristChatApiDisableBlock"); var localVarPath = "/v1/touristChats/{touristId}/_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[] { }; 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("TouristChatApiDisableBlock", 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 TouristChatApiDisableBlockAsync (Guid? touristId) { await TouristChatApiDisableBlockAsyncWithHttpInfo(touristId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiDisableBlockAsyncWithHttpInfo (Guid? touristId) { // verify the required parameter 'touristId' is set if (touristId == null) throw new ApiException(400, "Missing required parameter 'touristId' when calling TouristChatApiApi->TouristChatApiDisableBlock"); var localVarPath = "/v1/touristChats/{touristId}/_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[] { }; 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("TouristChatApiDisableBlock", 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 TouristChatApiDisableNoDisturb (long? touristChatId) { TouristChatApiDisableNoDisturbWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiDisableNoDisturbWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiDisableNoDisturb"); var localVarPath = "/v1/touristChats/{touristChatId}/_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("TouristChatApiDisableNoDisturb", 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 TouristChatApiDisableNoDisturbAsync (long? touristChatId) { await TouristChatApiDisableNoDisturbAsyncWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiDisableNoDisturbAsyncWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiDisableNoDisturb"); var localVarPath = "/v1/touristChats/{touristChatId}/_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("TouristChatApiDisableNoDisturb", 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 TouristChatApiDisableTop (long? touristChatId) { TouristChatApiDisableTopWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiDisableTopWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiDisableTop"); var localVarPath = "/v1/touristChats/{touristChatId}/_disabletop"; 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("TouristChatApiDisableTop", 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 TouristChatApiDisableTopAsync (long? touristChatId) { await TouristChatApiDisableTopAsyncWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiDisableTopAsyncWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiDisableTop"); var localVarPath = "/v1/touristChats/{touristChatId}/_disabletop"; 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("TouristChatApiDisableTop", 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 TouristChatApiEnableBlock (Guid? touristId) { TouristChatApiEnableBlockWithHttpInfo(touristId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiEnableBlockWithHttpInfo (Guid? touristId) { // verify the required parameter 'touristId' is set if (touristId == null) throw new ApiException(400, "Missing required parameter 'touristId' when calling TouristChatApiApi->TouristChatApiEnableBlock"); var localVarPath = "/v1/touristChats/{touristId}/_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[] { }; 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("TouristChatApiEnableBlock", 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 TouristChatApiEnableBlockAsync (Guid? touristId) { await TouristChatApiEnableBlockAsyncWithHttpInfo(touristId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiEnableBlockAsyncWithHttpInfo (Guid? touristId) { // verify the required parameter 'touristId' is set if (touristId == null) throw new ApiException(400, "Missing required parameter 'touristId' when calling TouristChatApiApi->TouristChatApiEnableBlock"); var localVarPath = "/v1/touristChats/{touristId}/_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[] { }; 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("TouristChatApiEnableBlock", 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 TouristChatApiEnableNoDisturb (long? touristChatId) { TouristChatApiEnableNoDisturbWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiEnableNoDisturbWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiEnableNoDisturb"); var localVarPath = "/v1/touristChats/{touristChatId}/_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[] { }; 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("TouristChatApiEnableNoDisturb", 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 TouristChatApiEnableNoDisturbAsync (long? touristChatId) { await TouristChatApiEnableNoDisturbAsyncWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiEnableNoDisturbAsyncWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiEnableNoDisturb"); var localVarPath = "/v1/touristChats/{touristChatId}/_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[] { }; 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("TouristChatApiEnableNoDisturb", 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 TouristChatApiEnableTop (long? touristChatId) { TouristChatApiEnableTopWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// ApiResponse of Object(void) public ApiResponse TouristChatApiEnableTopWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiEnableTop"); var localVarPath = "/v1/touristChats/{touristChatId}/_enabletop"; 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("TouristChatApiEnableTop", 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 TouristChatApiEnableTopAsync (long? touristChatId) { await TouristChatApiEnableTopAsyncWithHttpInfo(touristChatId); } /// /// /// /// Thrown when fails to make API call /// 用户对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> TouristChatApiEnableTopAsyncWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiEnableTop"); var localVarPath = "/v1/touristChats/{touristChatId}/_enabletop"; 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("TouristChatApiEnableTop", 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 /// /// TouristChatOtherViewModel public TouristChatOtherViewModel TouristChatApiGetTouristChatFromTouristChatId (long? touristChatId) { ApiResponse localVarResponse = TouristChatApiGetTouristChatFromTouristChatIdWithHttpInfo(touristChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of TouristChatOtherViewModel public ApiResponse< TouristChatOtherViewModel > TouristChatApiGetTouristChatFromTouristChatIdWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiGetTouristChatFromTouristChatId"); var localVarPath = "/v1/touristChats/{touristChatId}"; 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("TouristChatApiGetTouristChatFromTouristChatId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TouristChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(TouristChatOtherViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of TouristChatOtherViewModel public async System.Threading.Tasks.Task TouristChatApiGetTouristChatFromTouristChatIdAsync (long? touristChatId) { ApiResponse localVarResponse = await TouristChatApiGetTouristChatFromTouristChatIdAsyncWithHttpInfo(touristChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (TouristChatOtherViewModel) public async System.Threading.Tasks.Task> TouristChatApiGetTouristChatFromTouristChatIdAsyncWithHttpInfo (long? touristChatId) { // verify the required parameter 'touristChatId' is set if (touristChatId == null) throw new ApiException(400, "Missing required parameter 'touristChatId' when calling TouristChatApiApi->TouristChatApiGetTouristChatFromTouristChatId"); var localVarPath = "/v1/touristChats/{touristChatId}"; 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("TouristChatApiGetTouristChatFromTouristChatId", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TouristChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(TouristChatOtherViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// TouristChatOtherViewModel public TouristChatOtherViewModel TouristChatApiGetTouristChatTransfer (TouristChatTransferInputModel model) { ApiResponse localVarResponse = TouristChatApiGetTouristChatTransferWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of TouristChatOtherViewModel public ApiResponse< TouristChatOtherViewModel > TouristChatApiGetTouristChatTransferWithHttpInfo (TouristChatTransferInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling TouristChatApiApi->TouristChatApiGetTouristChatTransfer"); var localVarPath = "/v1/touristChatTransfers"; 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(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("TouristChatApiGetTouristChatTransfer", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TouristChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(TouristChatOtherViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of TouristChatOtherViewModel public async System.Threading.Tasks.Task TouristChatApiGetTouristChatTransferAsync (TouristChatTransferInputModel model) { ApiResponse localVarResponse = await TouristChatApiGetTouristChatTransferAsyncWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (TouristChatOtherViewModel) public async System.Threading.Tasks.Task> TouristChatApiGetTouristChatTransferAsyncWithHttpInfo (TouristChatTransferInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling TouristChatApiApi->TouristChatApiGetTouristChatTransfer"); var localVarPath = "/v1/touristChatTransfers"; 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(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("TouristChatApiGetTouristChatTransfer", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (TouristChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(TouristChatOtherViewModel))); } } }