/*
* 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 IMeetupMemberApiApi : IApiAccessor
{
#region Synchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
///
void MeetupMemberApiAcceptApplication (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// ApiResponse of Object(void)
ApiResponse MeetupMemberApiAcceptApplicationWithHttpInfo (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// MeetupIdAndLocationViewModel
MeetupIdAndLocationViewModel MeetupMemberApiAcceptInvitation (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// ApiResponse of MeetupIdAndLocationViewModel
ApiResponse MeetupMemberApiAcceptInvitationWithHttpInfo (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// CreatedViewModel
CreatedViewModel MeetupMemberApiApply (MeetupApplicationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// ApiResponse of CreatedViewModel
ApiResponse MeetupMemberApiApplyWithHttpInfo (MeetupApplicationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// MeetupIdAndLocationViewModel
MeetupIdAndLocationViewModel MeetupMemberApiDeleteInvalidMeetup (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
ApiResponse MeetupMemberApiDeleteInvalidMeetupWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// MeetupIdAndLocationViewModel
MeetupIdAndLocationViewModel MeetupMemberApiDeleteMeetup (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
ApiResponse MeetupMemberApiDeleteMeetupWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
///
void MeetupMemberApiInvite (MeetupInvitationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
/// ApiResponse of Object(void)
ApiResponse MeetupMemberApiInviteWithHttpInfo (MeetupInvitationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
///
void MeetupMemberApiKickMember (KickMembersInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
ApiResponse MeetupMemberApiKickMemberWithHttpInfo (KickMembersInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// MeetupIdAndLocationViewModel
MeetupIdAndLocationViewModel MeetupMemberApiLeaveMeetup (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
ApiResponse MeetupMemberApiLeaveMeetupWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// List<UserSimpleViewModel>
List MeetupMemberApiMeetupMembers (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// ApiResponse of List<UserSimpleViewModel>
ApiResponse> MeetupMemberApiMeetupMembersWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
///
void MeetupMemberApiRejectApplication (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// ApiResponse of Object(void)
ApiResponse MeetupMemberApiRejectApplicationWithHttpInfo (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
///
void MeetupMemberApiRejectInvitation (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// ApiResponse of Object(void)
ApiResponse MeetupMemberApiRejectInvitationWithHttpInfo (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// StatViewModel
StatViewModel MeetupMemberApiStatApplicationCount ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of StatViewModel
ApiResponse MeetupMemberApiStatApplicationCountWithHttpInfo ();
#endregion Synchronous Operations
#region Asynchronous Operations
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of void
System.Threading.Tasks.Task MeetupMemberApiAcceptApplicationAsync (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of ApiResponse
System.Threading.Tasks.Task> MeetupMemberApiAcceptApplicationAsyncWithHttpInfo (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of MeetupIdAndLocationViewModel
System.Threading.Tasks.Task MeetupMemberApiAcceptInvitationAsync (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
System.Threading.Tasks.Task> MeetupMemberApiAcceptInvitationAsyncWithHttpInfo (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// Task of CreatedViewModel
System.Threading.Tasks.Task MeetupMemberApiApplyAsync (MeetupApplicationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// Task of ApiResponse (CreatedViewModel)
System.Threading.Tasks.Task> MeetupMemberApiApplyAsyncWithHttpInfo (MeetupApplicationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
System.Threading.Tasks.Task MeetupMemberApiDeleteInvalidMeetupAsync (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
System.Threading.Tasks.Task> MeetupMemberApiDeleteInvalidMeetupAsyncWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
System.Threading.Tasks.Task MeetupMemberApiDeleteMeetupAsync (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
System.Threading.Tasks.Task> MeetupMemberApiDeleteMeetupAsyncWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
/// Task of void
System.Threading.Tasks.Task MeetupMemberApiInviteAsync (MeetupInvitationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
/// Task of ApiResponse
System.Threading.Tasks.Task> MeetupMemberApiInviteAsyncWithHttpInfo (MeetupInvitationInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of void
System.Threading.Tasks.Task MeetupMemberApiKickMemberAsync (KickMembersInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
System.Threading.Tasks.Task> MeetupMemberApiKickMemberAsyncWithHttpInfo (KickMembersInputModel model);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
System.Threading.Tasks.Task MeetupMemberApiLeaveMeetupAsync (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
System.Threading.Tasks.Task> MeetupMemberApiLeaveMeetupAsyncWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// Task of List<UserSimpleViewModel>
System.Threading.Tasks.Task> MeetupMemberApiMeetupMembersAsync (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// Task of ApiResponse (List<UserSimpleViewModel>)
System.Threading.Tasks.Task>> MeetupMemberApiMeetupMembersAsyncWithHttpInfo (long? meetupId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of void
System.Threading.Tasks.Task MeetupMemberApiRejectApplicationAsync (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of ApiResponse
System.Threading.Tasks.Task> MeetupMemberApiRejectApplicationAsyncWithHttpInfo (long? applicationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of void
System.Threading.Tasks.Task MeetupMemberApiRejectInvitationAsync (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of ApiResponse
System.Threading.Tasks.Task> MeetupMemberApiRejectInvitationAsyncWithHttpInfo (long? invitationId);
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of StatViewModel
System.Threading.Tasks.Task MeetupMemberApiStatApplicationCountAsync ();
///
///
///
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (StatViewModel)
System.Threading.Tasks.Task> MeetupMemberApiStatApplicationCountAsyncWithHttpInfo ();
#endregion Asynchronous Operations
}
///
/// Represents a collection of functions to interact with the API endpoints
///
public partial class MeetupMemberApiApi : IMeetupMemberApiApi
{
private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
///
/// Initializes a new instance of the class
/// using Configuration object
///
/// An instance of Configuration
///
public MeetupMemberApiApi(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
/// applicationId
///
public void MeetupMemberApiAcceptApplication (long? applicationId)
{
MeetupMemberApiAcceptApplicationWithHttpInfo(applicationId);
}
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// ApiResponse of Object(void)
public ApiResponse MeetupMemberApiAcceptApplicationWithHttpInfo (long? applicationId)
{
// verify the required parameter 'applicationId' is set
if (applicationId == null)
throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupMemberApiApi->MeetupMemberApiAcceptApplication");
var localVarPath = "/v1/meetupApplications/{applicationId}/_accept";
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("MeetupMemberApiAcceptApplication", 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
/// applicationId
/// Task of void
public async System.Threading.Tasks.Task MeetupMemberApiAcceptApplicationAsync (long? applicationId)
{
await MeetupMemberApiAcceptApplicationAsyncWithHttpInfo(applicationId);
}
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of ApiResponse
public async System.Threading.Tasks.Task> MeetupMemberApiAcceptApplicationAsyncWithHttpInfo (long? applicationId)
{
// verify the required parameter 'applicationId' is set
if (applicationId == null)
throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupMemberApiApi->MeetupMemberApiAcceptApplication");
var localVarPath = "/v1/meetupApplications/{applicationId}/_accept";
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("MeetupMemberApiAcceptApplication", 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
/// invitationId
/// MeetupIdAndLocationViewModel
public MeetupIdAndLocationViewModel MeetupMemberApiAcceptInvitation (long? invitationId)
{
ApiResponse localVarResponse = MeetupMemberApiAcceptInvitationWithHttpInfo(invitationId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// ApiResponse of MeetupIdAndLocationViewModel
public ApiResponse< MeetupIdAndLocationViewModel > MeetupMemberApiAcceptInvitationWithHttpInfo (long? invitationId)
{
// verify the required parameter 'invitationId' is set
if (invitationId == null)
throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupMemberApiApi->MeetupMemberApiAcceptInvitation");
var localVarPath = "/v1/meetupInvitations/{invitationId}/_accept";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiAcceptInvitation", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of MeetupIdAndLocationViewModel
public async System.Threading.Tasks.Task MeetupMemberApiAcceptInvitationAsync (long? invitationId)
{
ApiResponse localVarResponse = await MeetupMemberApiAcceptInvitationAsyncWithHttpInfo(invitationId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiAcceptInvitationAsyncWithHttpInfo (long? invitationId)
{
// verify the required parameter 'invitationId' is set
if (invitationId == null)
throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupMemberApiApi->MeetupMemberApiAcceptInvitation");
var localVarPath = "/v1/meetupInvitations/{invitationId}/_accept";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiAcceptInvitation", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// CreatedViewModel
public CreatedViewModel MeetupMemberApiApply (MeetupApplicationInputModel model)
{
ApiResponse localVarResponse = MeetupMemberApiApplyWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// ApiResponse of CreatedViewModel
public ApiResponse< CreatedViewModel > MeetupMemberApiApplyWithHttpInfo (MeetupApplicationInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiApply");
var localVarPath = "/v1/meetupMembers/_apply";
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("MeetupMemberApiApply", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CreatedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CreatedViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// Task of CreatedViewModel
public async System.Threading.Tasks.Task MeetupMemberApiApplyAsync (MeetupApplicationInputModel model)
{
ApiResponse localVarResponse = await MeetupMemberApiApplyAsyncWithHttpInfo(model);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 申请请求实体
/// Task of ApiResponse (CreatedViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiApplyAsyncWithHttpInfo (MeetupApplicationInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiApply");
var localVarPath = "/v1/meetupMembers/_apply";
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("MeetupMemberApiApply", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(CreatedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CreatedViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// MeetupIdAndLocationViewModel
public MeetupIdAndLocationViewModel MeetupMemberApiDeleteInvalidMeetup (long? meetupId)
{
ApiResponse localVarResponse = MeetupMemberApiDeleteInvalidMeetupWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
public ApiResponse< MeetupIdAndLocationViewModel > MeetupMemberApiDeleteInvalidMeetupWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiDeleteInvalidMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_invalidmeetupdelete";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiDeleteInvalidMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
public async System.Threading.Tasks.Task MeetupMemberApiDeleteInvalidMeetupAsync (long? meetupId)
{
ApiResponse localVarResponse = await MeetupMemberApiDeleteInvalidMeetupAsyncWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiDeleteInvalidMeetupAsyncWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiDeleteInvalidMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_invalidmeetupdelete";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiDeleteInvalidMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// MeetupIdAndLocationViewModel
public MeetupIdAndLocationViewModel MeetupMemberApiDeleteMeetup (long? meetupId)
{
ApiResponse localVarResponse = MeetupMemberApiDeleteMeetupWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
public ApiResponse< MeetupIdAndLocationViewModel > MeetupMemberApiDeleteMeetupWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiDeleteMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_delete";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiDeleteMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
public async System.Threading.Tasks.Task MeetupMemberApiDeleteMeetupAsync (long? meetupId)
{
ApiResponse localVarResponse = await MeetupMemberApiDeleteMeetupAsyncWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiDeleteMeetupAsyncWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiDeleteMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_delete";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiDeleteMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
///
public void MeetupMemberApiInvite (MeetupInvitationInputModel model)
{
MeetupMemberApiInviteWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
/// ApiResponse of Object(void)
public ApiResponse MeetupMemberApiInviteWithHttpInfo (MeetupInvitationInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiInvite");
var localVarPath = "/v1/meetupMembers/_invite";
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("MeetupMemberApiInvite", 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 MeetupMemberApiInviteAsync (MeetupInvitationInputModel model)
{
await MeetupMemberApiInviteAsyncWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
/// 邀请请求实体
/// Task of ApiResponse
public async System.Threading.Tasks.Task> MeetupMemberApiInviteAsyncWithHttpInfo (MeetupInvitationInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiInvite");
var localVarPath = "/v1/meetupMembers/_invite";
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("MeetupMemberApiInvite", 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 MeetupMemberApiKickMember (KickMembersInputModel model)
{
MeetupMemberApiKickMemberWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of Object(void)
public ApiResponse MeetupMemberApiKickMemberWithHttpInfo (KickMembersInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiKickMember");
var localVarPath = "/v1/meetupMembers/_kick";
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("MeetupMemberApiKickMember", 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 MeetupMemberApiKickMemberAsync (KickMembersInputModel model)
{
await MeetupMemberApiKickMemberAsyncWithHttpInfo(model);
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse
public async System.Threading.Tasks.Task> MeetupMemberApiKickMemberAsyncWithHttpInfo (KickMembersInputModel model)
{
// verify the required parameter 'model' is set
if (model == null)
throw new ApiException(400, "Missing required parameter 'model' when calling MeetupMemberApiApi->MeetupMemberApiKickMember");
var localVarPath = "/v1/meetupMembers/_kick";
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("MeetupMemberApiKickMember", 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
///
/// MeetupIdAndLocationViewModel
public MeetupIdAndLocationViewModel MeetupMemberApiLeaveMeetup (long? meetupId)
{
ApiResponse localVarResponse = MeetupMemberApiLeaveMeetupWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// ApiResponse of MeetupIdAndLocationViewModel
public ApiResponse< MeetupIdAndLocationViewModel > MeetupMemberApiLeaveMeetupWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiLeaveMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_leave";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiLeaveMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of MeetupIdAndLocationViewModel
public async System.Threading.Tasks.Task MeetupMemberApiLeaveMeetupAsync (long? meetupId)
{
ApiResponse localVarResponse = await MeetupMemberApiLeaveMeetupAsyncWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
///
/// Task of ApiResponse (MeetupIdAndLocationViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiLeaveMeetupAsyncWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiLeaveMeetup");
var localVarPath = "/v1/meetupMembers/{meetupId}/_leave";
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,
"POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams,
localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("MeetupMemberApiLeaveMeetup", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(MeetupIdAndLocationViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupIdAndLocationViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// List<UserSimpleViewModel>
public List MeetupMemberApiMeetupMembers (long? meetupId)
{
ApiResponse> localVarResponse = MeetupMemberApiMeetupMembersWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// ApiResponse of List<UserSimpleViewModel>
public ApiResponse< List > MeetupMemberApiMeetupMembersWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiMeetupMembers");
var localVarPath = "/v1/meetup/{meetupId}/meetupMembers";
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("MeetupMemberApiMeetupMembers", 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<UserSimpleViewModel>
public async System.Threading.Tasks.Task> MeetupMemberApiMeetupMembersAsync (long? meetupId)
{
ApiResponse> localVarResponse = await MeetupMemberApiMeetupMembersAsyncWithHttpInfo(meetupId);
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// 活动编号
/// Task of ApiResponse (List<UserSimpleViewModel>)
public async System.Threading.Tasks.Task>> MeetupMemberApiMeetupMembersAsyncWithHttpInfo (long? meetupId)
{
// verify the required parameter 'meetupId' is set
if (meetupId == null)
throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupMemberApiApi->MeetupMemberApiMeetupMembers");
var localVarPath = "/v1/meetup/{meetupId}/meetupMembers";
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("MeetupMemberApiMeetupMembers", 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
/// applicationId
///
public void MeetupMemberApiRejectApplication (long? applicationId)
{
MeetupMemberApiRejectApplicationWithHttpInfo(applicationId);
}
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// ApiResponse of Object(void)
public ApiResponse MeetupMemberApiRejectApplicationWithHttpInfo (long? applicationId)
{
// verify the required parameter 'applicationId' is set
if (applicationId == null)
throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupMemberApiApi->MeetupMemberApiRejectApplication");
var localVarPath = "/v1/meetupApplications/{applicationId}/_reject";
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("MeetupMemberApiRejectApplication", 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
/// applicationId
/// Task of void
public async System.Threading.Tasks.Task MeetupMemberApiRejectApplicationAsync (long? applicationId)
{
await MeetupMemberApiRejectApplicationAsyncWithHttpInfo(applicationId);
}
///
///
///
/// Thrown when fails to make API call
/// applicationId
/// Task of ApiResponse
public async System.Threading.Tasks.Task> MeetupMemberApiRejectApplicationAsyncWithHttpInfo (long? applicationId)
{
// verify the required parameter 'applicationId' is set
if (applicationId == null)
throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupMemberApiApi->MeetupMemberApiRejectApplication");
var localVarPath = "/v1/meetupApplications/{applicationId}/_reject";
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("MeetupMemberApiRejectApplication", 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
/// invitationId
///
public void MeetupMemberApiRejectInvitation (long? invitationId)
{
MeetupMemberApiRejectInvitationWithHttpInfo(invitationId);
}
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// ApiResponse of Object(void)
public ApiResponse MeetupMemberApiRejectInvitationWithHttpInfo (long? invitationId)
{
// verify the required parameter 'invitationId' is set
if (invitationId == null)
throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupMemberApiApi->MeetupMemberApiRejectInvitation");
var localVarPath = "/v1/meetupInvitations/{invitationId}/_reject";
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("MeetupMemberApiRejectInvitation", 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
/// invitationId
/// Task of void
public async System.Threading.Tasks.Task MeetupMemberApiRejectInvitationAsync (long? invitationId)
{
await MeetupMemberApiRejectInvitationAsyncWithHttpInfo(invitationId);
}
///
///
///
/// Thrown when fails to make API call
/// invitationId
/// Task of ApiResponse
public async System.Threading.Tasks.Task> MeetupMemberApiRejectInvitationAsyncWithHttpInfo (long? invitationId)
{
// verify the required parameter 'invitationId' is set
if (invitationId == null)
throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupMemberApiApi->MeetupMemberApiRejectInvitation");
var localVarPath = "/v1/meetupInvitations/{invitationId}/_reject";
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("MeetupMemberApiRejectInvitation", 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
/// StatViewModel
public StatViewModel MeetupMemberApiStatApplicationCount ()
{
ApiResponse localVarResponse = MeetupMemberApiStatApplicationCountWithHttpInfo();
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// ApiResponse of StatViewModel
public ApiResponse< StatViewModel > MeetupMemberApiStatApplicationCountWithHttpInfo ()
{
var localVarPath = "/v1/meetupApplications/_stat";
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("MeetupMemberApiStatApplicationCount", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(StatViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(StatViewModel)));
}
///
///
///
/// Thrown when fails to make API call
/// Task of StatViewModel
public async System.Threading.Tasks.Task MeetupMemberApiStatApplicationCountAsync ()
{
ApiResponse localVarResponse = await MeetupMemberApiStatApplicationCountAsyncWithHttpInfo();
return localVarResponse.Data;
}
///
///
///
/// Thrown when fails to make API call
/// Task of ApiResponse (StatViewModel)
public async System.Threading.Tasks.Task> MeetupMemberApiStatApplicationCountAsyncWithHttpInfo ()
{
var localVarPath = "/v1/meetupApplications/_stat";
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("MeetupMemberApiStatApplicationCount", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()),
(StatViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(StatViewModel)));
}
}
}