/*
* 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 IPersonalChatApiApi : IApiAccessor
{
#region Synchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
///
void PersonalChatApiDisableNoDisturb (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// ApiResponse of Object(void)
ApiResponse PersonalChatApiDisableNoDisturbWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void PersonalChatApiDisableTop (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse PersonalChatApiDisableTopWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
///
void PersonalChatApiEnableNoDisturb (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// ApiResponse of Object(void)
ApiResponse PersonalChatApiEnableNoDisturbWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void PersonalChatApiEnableTop (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse PersonalChatApiEnableTopWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// PersonalChatOtherViewModel
PersonalChatOtherViewModel PersonalChatApiFindPersonalChat (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
ApiResponse PersonalChatApiFindPersonalChatWithHttpInfo (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// PersonalChatOtherViewModel
PersonalChatOtherViewModel PersonalChatApiFindPersonalChatTransfer (PersonalChatTransferInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
ApiResponse PersonalChatApiFindPersonalChatTransferWithHttpInfo (PersonalChatTransferInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// PersonalChatOtherViewModel
PersonalChatOtherViewModel PersonalChatApiGetNewPersonalChatAsync (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
ApiResponse PersonalChatApiGetNewPersonalChatAsyncWithHttpInfo (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// PersonalChatOtherViewModel
PersonalChatOtherViewModel PersonalChatApiGetPersonalChat (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// ApiResponse of PersonalChatOtherViewModel
ApiResponse PersonalChatApiGetPersonalChatWithHttpInfo (long? personalChatId);
#endregion Synchronous Operations
#region Asynchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of void
System.Threading.Tasks.Task PersonalChatApiDisableNoDisturbAsync (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of ApiResponse
System.Threading.Tasks.Task> PersonalChatApiDisableNoDisturbAsyncWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task PersonalChatApiDisableTopAsync (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> PersonalChatApiDisableTopAsyncWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of void
System.Threading.Tasks.Task PersonalChatApiEnableNoDisturbAsync (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of ApiResponse
System.Threading.Tasks.Task> PersonalChatApiEnableNoDisturbAsyncWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task PersonalChatApiEnableTopAsync (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> PersonalChatApiEnableTopAsyncWithHttpInfo (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
System.Threading.Tasks.Task PersonalChatApiFindPersonalChatAsync (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
System.Threading.Tasks.Task> PersonalChatApiFindPersonalChatAsyncWithHttpInfo (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
System.Threading.Tasks.Task PersonalChatApiFindPersonalChatTransferAsync (PersonalChatTransferInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
System.Threading.Tasks.Task> PersonalChatApiFindPersonalChatTransferAsyncWithHttpInfo (PersonalChatTransferInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
System.Threading.Tasks.Task PersonalChatApiGetNewPersonalChatAsyncAsync (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
System.Threading.Tasks.Task> PersonalChatApiGetNewPersonalChatAsyncAsyncWithHttpInfo (int? modelOtherUserId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// Task of PersonalChatOtherViewModel
System.Threading.Tasks.Task PersonalChatApiGetPersonalChatAsync (long? personalChatId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// Task of ApiResponse (PersonalChatOtherViewModel)
System.Threading.Tasks.Task> PersonalChatApiGetPersonalChatAsyncWithHttpInfo (long? personalChatId);
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class PersonalChatApiApi : IPersonalChatApiApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public PersonalChatApiApi(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
/// 单聊组ID
///
public void PersonalChatApiDisableNoDisturb (long? personalChatId)
{
PersonalChatApiDisableNoDisturbWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// ApiResponse of Object(void)
public ApiResponse PersonalChatApiDisableNoDisturbWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiDisableNoDisturb");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiDisableNoDisturb", 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
/// 单聊组ID
/// Task of void
public async System.Threading.Tasks.Task PersonalChatApiDisableNoDisturbAsync (long? personalChatId)
{
await PersonalChatApiDisableNoDisturbAsyncWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of ApiResponse
public async System.Threading.Tasks.Task> PersonalChatApiDisableNoDisturbAsyncWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiDisableNoDisturb");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiDisableNoDisturb", 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 PersonalChatApiDisableTop (long? personalChatId)
{
PersonalChatApiDisableTopWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
public ApiResponse PersonalChatApiDisableTopWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiDisableTop");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiDisableTop", 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 PersonalChatApiDisableTopAsync (long? personalChatId)
{
await PersonalChatApiDisableTopAsyncWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
public async System.Threading.Tasks.Task> PersonalChatApiDisableTopAsyncWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiDisableTop");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiDisableTop", 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
/// 单聊组ID
///
public void PersonalChatApiEnableNoDisturb (long? personalChatId)
{
PersonalChatApiEnableNoDisturbWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// ApiResponse of Object(void)
public ApiResponse PersonalChatApiEnableNoDisturbWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiEnableNoDisturb");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiEnableNoDisturb", 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
/// 单聊组ID
/// Task of void
public async System.Threading.Tasks.Task PersonalChatApiEnableNoDisturbAsync (long? personalChatId)
{
await PersonalChatApiEnableNoDisturbAsyncWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
/// 单聊组ID
/// Task of ApiResponse
public async System.Threading.Tasks.Task> PersonalChatApiEnableNoDisturbAsyncWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiEnableNoDisturb");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiEnableNoDisturb", 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 PersonalChatApiEnableTop (long? personalChatId)
{
PersonalChatApiEnableTopWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
public ApiResponse PersonalChatApiEnableTopWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiEnableTop");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiEnableTop", 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 PersonalChatApiEnableTopAsync (long? personalChatId)
{
await PersonalChatApiEnableTopAsyncWithHttpInfo(personalChatId);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
public async System.Threading.Tasks.Task> PersonalChatApiEnableTopAsyncWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiEnableTop");
var localVarPath = "/v1/personalchats/{personalChatId}/members/_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("PersonalChatApiEnableTop", 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
///
/// PersonalChatOtherViewModel
public PersonalChatOtherViewModel PersonalChatApiFindPersonalChat (int? modelOtherUserId)
{
ApiResponse localVarResponse = PersonalChatApiFindPersonalChatWithHttpInfo(modelOtherUserId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
public ApiResponse< PersonalChatOtherViewModel > PersonalChatApiFindPersonalChatWithHttpInfo (int? modelOtherUserId)
{
// verify the required parameter 'modelOtherUserId' is set
if (modelOtherUserId == null)
throw new ApiException(400, "Missing required parameter 'modelOtherUserId' when calling PersonalChatApiApi->PersonalChatApiFindPersonalChat");
var localVarPath = "/v1/personalchats";
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 (modelOtherUserId != null) localVarQueryParams.Add("model.otherUserId", Configuration.ApiClient.ParameterToString(modelOtherUserId)); // 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("PersonalChatApiFindPersonalChat", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
public async System.Threading.Tasks.Task PersonalChatApiFindPersonalChatAsync (int? modelOtherUserId)
{
ApiResponse localVarResponse = await PersonalChatApiFindPersonalChatAsyncWithHttpInfo(modelOtherUserId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
public async System.Threading.Tasks.Task> PersonalChatApiFindPersonalChatAsyncWithHttpInfo (int? modelOtherUserId)
{
// verify the required parameter 'modelOtherUserId' is set
if (modelOtherUserId == null)
throw new ApiException(400, "Missing required parameter 'modelOtherUserId' when calling PersonalChatApiApi->PersonalChatApiFindPersonalChat");
var localVarPath = "/v1/personalchats";
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 (modelOtherUserId != null) localVarQueryParams.Add("model.otherUserId", Configuration.ApiClient.ParameterToString(modelOtherUserId)); // 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("PersonalChatApiFindPersonalChat", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// PersonalChatOtherViewModel
public PersonalChatOtherViewModel PersonalChatApiFindPersonalChatTransfer (PersonalChatTransferInputModel model)
{
ApiResponse localVarResponse = PersonalChatApiFindPersonalChatTransferWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
public ApiResponse< PersonalChatOtherViewModel > PersonalChatApiFindPersonalChatTransferWithHttpInfo (PersonalChatTransferInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling PersonalChatApiApi->PersonalChatApiFindPersonalChatTransfer");
var localVarPath = "/v1/personalchattransfers";
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("PersonalChatApiFindPersonalChatTransfer", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
public async System.Threading.Tasks.Task PersonalChatApiFindPersonalChatTransferAsync (PersonalChatTransferInputModel model)
{
ApiResponse localVarResponse = await PersonalChatApiFindPersonalChatTransferAsyncWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
public async System.Threading.Tasks.Task> PersonalChatApiFindPersonalChatTransferAsyncWithHttpInfo (PersonalChatTransferInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling PersonalChatApiApi->PersonalChatApiFindPersonalChatTransfer");
var localVarPath = "/v1/personalchattransfers";
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("PersonalChatApiFindPersonalChatTransfer", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// PersonalChatOtherViewModel
public PersonalChatOtherViewModel PersonalChatApiGetNewPersonalChatAsync (int? modelOtherUserId)
{
ApiResponse localVarResponse = PersonalChatApiGetNewPersonalChatAsyncWithHttpInfo(modelOtherUserId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of PersonalChatOtherViewModel
public ApiResponse< PersonalChatOtherViewModel > PersonalChatApiGetNewPersonalChatAsyncWithHttpInfo (int? modelOtherUserId)
{
// verify the required parameter 'modelOtherUserId' is set
if (modelOtherUserId == null)
throw new ApiException(400, "Missing required parameter 'modelOtherUserId' when calling PersonalChatApiApi->PersonalChatApiGetNewPersonalChatAsync");
var localVarPath = "/v1/personalchats/getNewPersonalChat";
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 (modelOtherUserId != null) localVarQueryParams.Add("model.otherUserId", Configuration.ApiClient.ParameterToString(modelOtherUserId)); // 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("PersonalChatApiGetNewPersonalChatAsync", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of PersonalChatOtherViewModel
public async System.Threading.Tasks.Task PersonalChatApiGetNewPersonalChatAsyncAsync (int? modelOtherUserId)
{
ApiResponse localVarResponse = await PersonalChatApiGetNewPersonalChatAsyncAsyncWithHttpInfo(modelOtherUserId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (PersonalChatOtherViewModel)
public async System.Threading.Tasks.Task> PersonalChatApiGetNewPersonalChatAsyncAsyncWithHttpInfo (int? modelOtherUserId)
{
// verify the required parameter 'modelOtherUserId' is set
if (modelOtherUserId == null)
throw new ApiException(400, "Missing required parameter 'modelOtherUserId' when calling PersonalChatApiApi->PersonalChatApiGetNewPersonalChatAsync");
var localVarPath = "/v1/personalchats/getNewPersonalChat";
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 (modelOtherUserId != null) localVarQueryParams.Add("model.otherUserId", Configuration.ApiClient.ParameterToString(modelOtherUserId)); // 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("PersonalChatApiGetNewPersonalChatAsync", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// PersonalChatOtherViewModel
public PersonalChatOtherViewModel PersonalChatApiGetPersonalChat (long? personalChatId)
{
ApiResponse localVarResponse = PersonalChatApiGetPersonalChatWithHttpInfo(personalChatId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// ApiResponse of PersonalChatOtherViewModel
public ApiResponse< PersonalChatOtherViewModel > PersonalChatApiGetPersonalChatWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiGetPersonalChat");
var localVarPath = "/v1/personalchats/{personalChatId}";
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("PersonalChatApiGetPersonalChat", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(PersonalChatOtherViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// Task of PersonalChatOtherViewModel
public async System.Threading.Tasks.Task PersonalChatApiGetPersonalChatAsync (long? personalChatId)
{
ApiResponse localVarResponse = await PersonalChatApiGetPersonalChatAsyncWithHttpInfo(personalChatId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 单聊Fht平台唯一ID
/// Task of ApiResponse (PersonalChatOtherViewModel)
public async System.Threading.Tasks.Task> PersonalChatApiGetPersonalChatAsyncWithHttpInfo (long? personalChatId)
{
// verify the required parameter 'personalChatId' is set
if (personalChatId == null)
throw new ApiException(400, "Missing required parameter 'personalChatId' when calling PersonalChatApiApi->PersonalChatApiGetPersonalChat");
var localVarPath = "/v1/personalchats/{personalChatId}";
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("PersonalChatApiGetPersonalChat", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(PersonalChatOtherViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(PersonalChatOtherViewModel)));
}
}
}