/* * 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 IMeetupApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupIdAndLocationViewModel MeetupIdAndLocationViewModel MeetupApiCancelMeetup (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel ApiResponse MeetupApiCancelMeetupWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeAddress (long? meetupId, ChangeMeetupAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeAddressWithHttpInfo (long? meetupId, ChangeMeetupAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeDescription (long? meetupId, ChangeMeetupDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeDescriptionWithHttpInfo (long? meetupId, ChangeMeetupDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// void MeetupApiChangeMeetup (long? meetupId, MeetupInputModel meetup); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// ApiResponse of Object(void) ApiResponse MeetupApiChangeMeetupWithHttpInfo (long? meetupId, MeetupInputModel meetup); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeMeetupEventType (long? meetupId, ChangeMeetupEventTypeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeMeetupEventTypeWithHttpInfo (long? meetupId, ChangeMeetupEventTypeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeMemberCount (long? meetupId, ChangeMeetupMemberCountInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeMemberCountWithHttpInfo (long? meetupId, ChangeMeetupMemberCountInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangePaymentMethod (long? meetupId, ChangeMeetupPaymentMethodInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangePaymentMethodWithHttpInfo (long? meetupId, ChangeMeetupPaymentMethodInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeStartTime (long? meetupId, ChangeMeetupStartTimeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeStartTimeWithHttpInfo (long? meetupId, ChangeMeetupStartTimeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void MeetupApiChangeTitle (long? meetupId, ChangeMeetupTitleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse MeetupApiChangeTitleWithHttpInfo (long? meetupId, ChangeMeetupTitleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CreatedViewModel CreatedViewModel MeetupApiCreateMeetup (MeetupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CreatedViewModel ApiResponse MeetupApiCreateMeetupWithHttpInfo (MeetupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupIdAndLocationViewModel MeetupIdAndLocationViewModel MeetupApiDeleteInvalidMeetup (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel ApiResponse MeetupApiDeleteInvalidMeetupWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupIdAndLocationViewModel MeetupIdAndLocationViewModel MeetupApiDeleteMeetup (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel ApiResponse MeetupApiDeleteMeetupWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupViewModel MeetupViewModel MeetupApiGetMeetup (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupViewModel ApiResponse MeetupApiGetMeetupWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupApplicationSimpleViewModel MeetupApplicationSimpleViewModel MeetupApiGetMeetupApplicationDetail (long? applicationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupApplicationSimpleViewModel ApiResponse MeetupApiGetMeetupApplicationDetailWithHttpInfo (long? applicationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// CursorPaginationResultMeetupApplicationsViewModel CursorPaginationResultMeetupApplicationsViewModel MeetupApiGetMeetupApplications (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of CursorPaginationResultMeetupApplicationsViewModel ApiResponse MeetupApiGetMeetupApplicationsWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// NumberViewModel NumberViewModel MeetupApiGetMeetupApplicationsUnreadCount (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of NumberViewModel ApiResponse MeetupApiGetMeetupApplicationsUnreadCountWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// MeetupInvitationSimpleViewModel MeetupInvitationSimpleViewModel MeetupApiGetMeetupInvitationDetail (long? invitationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupInvitationSimpleViewModel ApiResponse MeetupApiGetMeetupInvitationDetailWithHttpInfo (long? invitationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultMeetupViewModel CursorPaginationResultMeetupViewModel MeetupApiGetMyInvitations (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultMeetupViewModel ApiResponse MeetupApiGetMyInvitationsWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel NumberViewModel MeetupApiGetMyInvitationsUnreadCount (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel ApiResponse MeetupApiGetMyInvitationsUnreadCountWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultMeetupViewModel QueryResultMeetupViewModel MeetupApiGetNearbyMeetups (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultMeetupViewModel ApiResponse MeetupApiGetNearbyMeetupsWithHttpInfo (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// MyMeetupNotificationStatsViewModel MyMeetupNotificationStatsViewModel MeetupApiMyMeetupNotificationStats (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of MyMeetupNotificationStatsViewModel ApiResponse MeetupApiMyMeetupNotificationStatsWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// QueryResultMeetupViewModel QueryResultMeetupViewModel MeetupApiMyMeetups (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultMeetupViewModel ApiResponse MeetupApiMyMeetupsWithHttpInfo (int? limit = null, int? offset = null); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupIdAndLocationViewModel System.Threading.Tasks.Task MeetupApiCancelMeetupAsync (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) System.Threading.Tasks.Task> MeetupApiCancelMeetupAsyncWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeAddressAsync (long? meetupId, ChangeMeetupAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeAddressAsyncWithHttpInfo (long? meetupId, ChangeMeetupAddressInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeDescriptionAsync (long? meetupId, ChangeMeetupDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeDescriptionAsyncWithHttpInfo (long? meetupId, ChangeMeetupDescriptionInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// Task of void System.Threading.Tasks.Task MeetupApiChangeMeetupAsync (long? meetupId, MeetupInputModel meetup); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeMeetupAsyncWithHttpInfo (long? meetupId, MeetupInputModel meetup); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeMeetupEventTypeAsync (long? meetupId, ChangeMeetupEventTypeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeMeetupEventTypeAsyncWithHttpInfo (long? meetupId, ChangeMeetupEventTypeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeMemberCountAsync (long? meetupId, ChangeMeetupMemberCountInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeMemberCountAsyncWithHttpInfo (long? meetupId, ChangeMeetupMemberCountInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangePaymentMethodAsync (long? meetupId, ChangeMeetupPaymentMethodInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangePaymentMethodAsyncWithHttpInfo (long? meetupId, ChangeMeetupPaymentMethodInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeStartTimeAsync (long? meetupId, ChangeMeetupStartTimeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeStartTimeAsyncWithHttpInfo (long? meetupId, ChangeMeetupStartTimeInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task MeetupApiChangeTitleAsync (long? meetupId, ChangeMeetupTitleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> MeetupApiChangeTitleAsyncWithHttpInfo (long? meetupId, ChangeMeetupTitleInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CreatedViewModel System.Threading.Tasks.Task MeetupApiCreateMeetupAsync (MeetupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CreatedViewModel) System.Threading.Tasks.Task> MeetupApiCreateMeetupAsyncWithHttpInfo (MeetupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupIdAndLocationViewModel System.Threading.Tasks.Task MeetupApiDeleteInvalidMeetupAsync (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) System.Threading.Tasks.Task> MeetupApiDeleteInvalidMeetupAsyncWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupIdAndLocationViewModel System.Threading.Tasks.Task MeetupApiDeleteMeetupAsync (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) System.Threading.Tasks.Task> MeetupApiDeleteMeetupAsyncWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupViewModel System.Threading.Tasks.Task MeetupApiGetMeetupAsync (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupViewModel) System.Threading.Tasks.Task> MeetupApiGetMeetupAsyncWithHttpInfo (long? meetupId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupApplicationSimpleViewModel System.Threading.Tasks.Task MeetupApiGetMeetupApplicationDetailAsync (long? applicationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupApplicationSimpleViewModel) System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationDetailAsyncWithHttpInfo (long? applicationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of CursorPaginationResultMeetupApplicationsViewModel System.Threading.Tasks.Task MeetupApiGetMeetupApplicationsAsync (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (CursorPaginationResultMeetupApplicationsViewModel) System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationsAsyncWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of NumberViewModel System.Threading.Tasks.Task MeetupApiGetMeetupApplicationsUnreadCountAsync (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (NumberViewModel) System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationsUnreadCountAsyncWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupInvitationSimpleViewModel System.Threading.Tasks.Task MeetupApiGetMeetupInvitationDetailAsync (long? invitationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupInvitationSimpleViewModel) System.Threading.Tasks.Task> MeetupApiGetMeetupInvitationDetailAsyncWithHttpInfo (long? invitationId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultMeetupViewModel System.Threading.Tasks.Task MeetupApiGetMyInvitationsAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultMeetupViewModel) System.Threading.Tasks.Task> MeetupApiGetMyInvitationsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel System.Threading.Tasks.Task MeetupApiGetMyInvitationsUnreadCountAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) System.Threading.Tasks.Task> MeetupApiGetMyInvitationsUnreadCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultMeetupViewModel System.Threading.Tasks.Task MeetupApiGetNearbyMeetupsAsync (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultMeetupViewModel) System.Threading.Tasks.Task> MeetupApiGetNearbyMeetupsAsyncWithHttpInfo (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of MyMeetupNotificationStatsViewModel System.Threading.Tasks.Task MeetupApiMyMeetupNotificationStatsAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (MyMeetupNotificationStatsViewModel) System.Threading.Tasks.Task> MeetupApiMyMeetupNotificationStatsAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultMeetupViewModel System.Threading.Tasks.Task MeetupApiMyMeetupsAsync (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultMeetupViewModel) System.Threading.Tasks.Task> MeetupApiMyMeetupsAsyncWithHttpInfo (int? limit = null, int? offset = null); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class MeetupApiApi : IMeetupApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public MeetupApiApi(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 /// /// MeetupIdAndLocationViewModel public MeetupIdAndLocationViewModel MeetupApiCancelMeetup (long? meetupId) { ApiResponse localVarResponse = MeetupApiCancelMeetupWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel public ApiResponse< MeetupIdAndLocationViewModel > MeetupApiCancelMeetupWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiCancelMeetup"); var localVarPath = "/v1/meetups/{meetupId}/_cancel"; 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("MeetupApiCancelMeetup", 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 MeetupApiCancelMeetupAsync (long? meetupId) { ApiResponse localVarResponse = await MeetupApiCancelMeetupAsyncWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) public async System.Threading.Tasks.Task> MeetupApiCancelMeetupAsyncWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiCancelMeetup"); var localVarPath = "/v1/meetups/{meetupId}/_cancel"; 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("MeetupApiCancelMeetup", 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 MeetupApiChangeAddress (long? meetupId, ChangeMeetupAddressInputModel model) { MeetupApiChangeAddressWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeAddressWithHttpInfo (long? meetupId, ChangeMeetupAddressInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeAddress"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeAddress"); var localVarPath = "/v1/meetups/{meetupId}/address"; 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("MeetupApiChangeAddress", 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 MeetupApiChangeAddressAsync (long? meetupId, ChangeMeetupAddressInputModel model) { await MeetupApiChangeAddressAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeAddressAsyncWithHttpInfo (long? meetupId, ChangeMeetupAddressInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeAddress"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeAddress"); var localVarPath = "/v1/meetups/{meetupId}/address"; 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("MeetupApiChangeAddress", 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 MeetupApiChangeDescription (long? meetupId, ChangeMeetupDescriptionInputModel model) { MeetupApiChangeDescriptionWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeDescriptionWithHttpInfo (long? meetupId, ChangeMeetupDescriptionInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeDescription"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeDescription"); var localVarPath = "/v1/meetups/{meetupId}/description"; 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("MeetupApiChangeDescription", 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 MeetupApiChangeDescriptionAsync (long? meetupId, ChangeMeetupDescriptionInputModel model) { await MeetupApiChangeDescriptionAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeDescriptionAsyncWithHttpInfo (long? meetupId, ChangeMeetupDescriptionInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeDescription"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeDescription"); var localVarPath = "/v1/meetups/{meetupId}/description"; 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("MeetupApiChangeDescription", 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 MeetupApiChangeMeetup (long? meetupId, MeetupInputModel meetup) { MeetupApiChangeMeetupWithHttpInfo(meetupId, meetup); } /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeMeetupWithHttpInfo (long? meetupId, MeetupInputModel meetup) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMeetup"); // verify the required parameter 'meetup' is set if (meetup == null) throw new ApiException(400, "Missing required parameter 'meetup' when calling MeetupApiApi->MeetupApiChangeMeetup"); var localVarPath = "/v1/meetups/{meetupId}/_modify"; 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(meetup); // 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("MeetupApiChangeMeetup", 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 MeetupApiChangeMeetupAsync (long? meetupId, MeetupInputModel meetup) { await MeetupApiChangeMeetupAsyncWithHttpInfo(meetupId, meetup); } /// /// /// /// Thrown when fails to make API call /// /// 一起玩实体信息 /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeMeetupAsyncWithHttpInfo (long? meetupId, MeetupInputModel meetup) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMeetup"); // verify the required parameter 'meetup' is set if (meetup == null) throw new ApiException(400, "Missing required parameter 'meetup' when calling MeetupApiApi->MeetupApiChangeMeetup"); var localVarPath = "/v1/meetups/{meetupId}/_modify"; 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(meetup); // 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("MeetupApiChangeMeetup", 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 MeetupApiChangeMeetupEventType (long? meetupId, ChangeMeetupEventTypeInputModel model) { MeetupApiChangeMeetupEventTypeWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeMeetupEventTypeWithHttpInfo (long? meetupId, ChangeMeetupEventTypeInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMeetupEventType"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeMeetupEventType"); var localVarPath = "/v1/meetups/{meetupId}/meetupEventType"; 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("MeetupApiChangeMeetupEventType", 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 MeetupApiChangeMeetupEventTypeAsync (long? meetupId, ChangeMeetupEventTypeInputModel model) { await MeetupApiChangeMeetupEventTypeAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeMeetupEventTypeAsyncWithHttpInfo (long? meetupId, ChangeMeetupEventTypeInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMeetupEventType"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeMeetupEventType"); var localVarPath = "/v1/meetups/{meetupId}/meetupEventType"; 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("MeetupApiChangeMeetupEventType", 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 MeetupApiChangeMemberCount (long? meetupId, ChangeMeetupMemberCountInputModel model) { MeetupApiChangeMemberCountWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeMemberCountWithHttpInfo (long? meetupId, ChangeMeetupMemberCountInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMemberCount"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeMemberCount"); var localVarPath = "/v1/meetups/{meetupId}/memberCount"; 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("MeetupApiChangeMemberCount", 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 MeetupApiChangeMemberCountAsync (long? meetupId, ChangeMeetupMemberCountInputModel model) { await MeetupApiChangeMemberCountAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeMemberCountAsyncWithHttpInfo (long? meetupId, ChangeMeetupMemberCountInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeMemberCount"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeMemberCount"); var localVarPath = "/v1/meetups/{meetupId}/memberCount"; 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("MeetupApiChangeMemberCount", 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 MeetupApiChangePaymentMethod (long? meetupId, ChangeMeetupPaymentMethodInputModel model) { MeetupApiChangePaymentMethodWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangePaymentMethodWithHttpInfo (long? meetupId, ChangeMeetupPaymentMethodInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangePaymentMethod"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangePaymentMethod"); var localVarPath = "/v1/meetups/{meetupId}/paymentMethod"; 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("MeetupApiChangePaymentMethod", 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 MeetupApiChangePaymentMethodAsync (long? meetupId, ChangeMeetupPaymentMethodInputModel model) { await MeetupApiChangePaymentMethodAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangePaymentMethodAsyncWithHttpInfo (long? meetupId, ChangeMeetupPaymentMethodInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangePaymentMethod"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangePaymentMethod"); var localVarPath = "/v1/meetups/{meetupId}/paymentMethod"; 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("MeetupApiChangePaymentMethod", 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 MeetupApiChangeStartTime (long? meetupId, ChangeMeetupStartTimeInputModel model) { MeetupApiChangeStartTimeWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeStartTimeWithHttpInfo (long? meetupId, ChangeMeetupStartTimeInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeStartTime"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeStartTime"); var localVarPath = "/v1/meetups/{meetupId}/startTime"; 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("MeetupApiChangeStartTime", 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 MeetupApiChangeStartTimeAsync (long? meetupId, ChangeMeetupStartTimeInputModel model) { await MeetupApiChangeStartTimeAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeStartTimeAsyncWithHttpInfo (long? meetupId, ChangeMeetupStartTimeInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeStartTime"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeStartTime"); var localVarPath = "/v1/meetups/{meetupId}/startTime"; 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("MeetupApiChangeStartTime", 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 MeetupApiChangeTitle (long? meetupId, ChangeMeetupTitleInputModel model) { MeetupApiChangeTitleWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse MeetupApiChangeTitleWithHttpInfo (long? meetupId, ChangeMeetupTitleInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeTitle"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeTitle"); var localVarPath = "/v1/meetups/{meetupId}/title"; 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("MeetupApiChangeTitle", 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 MeetupApiChangeTitleAsync (long? meetupId, ChangeMeetupTitleInputModel model) { await MeetupApiChangeTitleAsyncWithHttpInfo(meetupId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> MeetupApiChangeTitleAsyncWithHttpInfo (long? meetupId, ChangeMeetupTitleInputModel model) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiChangeTitle"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiChangeTitle"); var localVarPath = "/v1/meetups/{meetupId}/title"; 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("MeetupApiChangeTitle", 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 /// /// CreatedViewModel public CreatedViewModel MeetupApiCreateMeetup (MeetupInputModel model) { ApiResponse localVarResponse = MeetupApiCreateMeetupWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CreatedViewModel public ApiResponse< CreatedViewModel > MeetupApiCreateMeetupWithHttpInfo (MeetupInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiCreateMeetup"); var localVarPath = "/v1/meetups"; 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("MeetupApiCreateMeetup", 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 MeetupApiCreateMeetupAsync (MeetupInputModel model) { ApiResponse localVarResponse = await MeetupApiCreateMeetupAsyncWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CreatedViewModel) public async System.Threading.Tasks.Task> MeetupApiCreateMeetupAsyncWithHttpInfo (MeetupInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling MeetupApiApi->MeetupApiCreateMeetup"); var localVarPath = "/v1/meetups"; 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("MeetupApiCreateMeetup", 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 MeetupApiDeleteInvalidMeetup (long? meetupId) { ApiResponse localVarResponse = MeetupApiDeleteInvalidMeetupWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel public ApiResponse< MeetupIdAndLocationViewModel > MeetupApiDeleteInvalidMeetupWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiDeleteInvalidMeetup"); var localVarPath = "/v1/meetups/{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("MeetupApiDeleteInvalidMeetup", 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 MeetupApiDeleteInvalidMeetupAsync (long? meetupId) { ApiResponse localVarResponse = await MeetupApiDeleteInvalidMeetupAsyncWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) public async System.Threading.Tasks.Task> MeetupApiDeleteInvalidMeetupAsyncWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiDeleteInvalidMeetup"); var localVarPath = "/v1/meetups/{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("MeetupApiDeleteInvalidMeetup", 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 MeetupApiDeleteMeetup (long? meetupId) { ApiResponse localVarResponse = MeetupApiDeleteMeetupWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupIdAndLocationViewModel public ApiResponse< MeetupIdAndLocationViewModel > MeetupApiDeleteMeetupWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiDeleteMeetup"); var localVarPath = "/v1/meetups/{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("MeetupApiDeleteMeetup", 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 MeetupApiDeleteMeetupAsync (long? meetupId) { ApiResponse localVarResponse = await MeetupApiDeleteMeetupAsyncWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupIdAndLocationViewModel) public async System.Threading.Tasks.Task> MeetupApiDeleteMeetupAsyncWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiDeleteMeetup"); var localVarPath = "/v1/meetups/{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("MeetupApiDeleteMeetup", 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 /// /// MeetupViewModel public MeetupViewModel MeetupApiGetMeetup (long? meetupId) { ApiResponse localVarResponse = MeetupApiGetMeetupWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupViewModel public ApiResponse< MeetupViewModel > MeetupApiGetMeetupWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetup"); var localVarPath = "/v1/meetups/{meetupId}"; 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("MeetupApiGetMeetup", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupViewModel public async System.Threading.Tasks.Task MeetupApiGetMeetupAsync (long? meetupId) { ApiResponse localVarResponse = await MeetupApiGetMeetupAsyncWithHttpInfo(meetupId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMeetupAsyncWithHttpInfo (long? meetupId) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetup"); var localVarPath = "/v1/meetups/{meetupId}"; 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("MeetupApiGetMeetup", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// MeetupApplicationSimpleViewModel public MeetupApplicationSimpleViewModel MeetupApiGetMeetupApplicationDetail (long? applicationId) { ApiResponse localVarResponse = MeetupApiGetMeetupApplicationDetailWithHttpInfo(applicationId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupApplicationSimpleViewModel public ApiResponse< MeetupApplicationSimpleViewModel > MeetupApiGetMeetupApplicationDetailWithHttpInfo (long? applicationId) { // verify the required parameter 'applicationId' is set if (applicationId == null) throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupApiApi->MeetupApiGetMeetupApplicationDetail"); var localVarPath = "/v1/meetupapplications/{applicationId}"; 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("MeetupApiGetMeetupApplicationDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupApplicationSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupApplicationSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupApplicationSimpleViewModel public async System.Threading.Tasks.Task MeetupApiGetMeetupApplicationDetailAsync (long? applicationId) { ApiResponse localVarResponse = await MeetupApiGetMeetupApplicationDetailAsyncWithHttpInfo(applicationId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupApplicationSimpleViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationDetailAsyncWithHttpInfo (long? applicationId) { // verify the required parameter 'applicationId' is set if (applicationId == null) throw new ApiException(400, "Missing required parameter 'applicationId' when calling MeetupApiApi->MeetupApiGetMeetupApplicationDetail"); var localVarPath = "/v1/meetupapplications/{applicationId}"; 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("MeetupApiGetMeetupApplicationDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupApplicationSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupApplicationSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// CursorPaginationResultMeetupApplicationsViewModel public CursorPaginationResultMeetupApplicationsViewModel MeetupApiGetMeetupApplications (long? meetupId, long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = MeetupApiGetMeetupApplicationsWithHttpInfo(meetupId, cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of CursorPaginationResultMeetupApplicationsViewModel public ApiResponse< CursorPaginationResultMeetupApplicationsViewModel > MeetupApiGetMeetupApplicationsWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); var localVarPath = "/v1/meetups/{meetupId}/applications"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMeetupApplications", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultMeetupApplicationsViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultMeetupApplicationsViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of CursorPaginationResultMeetupApplicationsViewModel public async System.Threading.Tasks.Task MeetupApiGetMeetupApplicationsAsync (long? meetupId, long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await MeetupApiGetMeetupApplicationsAsyncWithHttpInfo(meetupId, cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (CursorPaginationResultMeetupApplicationsViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationsAsyncWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMeetupApplications"); var localVarPath = "/v1/meetups/{meetupId}/applications"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMeetupApplications", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultMeetupApplicationsViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultMeetupApplicationsViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// NumberViewModel public NumberViewModel MeetupApiGetMeetupApplicationsUnreadCount (long? meetupId, long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = MeetupApiGetMeetupApplicationsUnreadCountWithHttpInfo(meetupId, cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// ApiResponse of NumberViewModel public ApiResponse< NumberViewModel > MeetupApiGetMeetupApplicationsUnreadCountWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); var localVarPath = "/v1/meetups/{meetupId}/applications/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMeetupApplicationsUnreadCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of NumberViewModel public async System.Threading.Tasks.Task MeetupApiGetMeetupApplicationsUnreadCountAsync (long? meetupId, long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await MeetupApiGetMeetupApplicationsUnreadCountAsyncWithHttpInfo(meetupId, cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// /// Task of ApiResponse (NumberViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMeetupApplicationsUnreadCountAsyncWithHttpInfo (long? meetupId, long? cursorCursor, int? cursorLimit) { // verify the required parameter 'meetupId' is set if (meetupId == null) throw new ApiException(400, "Missing required parameter 'meetupId' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMeetupApplicationsUnreadCount"); var localVarPath = "/v1/meetups/{meetupId}/applications/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMeetupApplicationsUnreadCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// MeetupInvitationSimpleViewModel public MeetupInvitationSimpleViewModel MeetupApiGetMeetupInvitationDetail (long? invitationId) { ApiResponse localVarResponse = MeetupApiGetMeetupInvitationDetailWithHttpInfo(invitationId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of MeetupInvitationSimpleViewModel public ApiResponse< MeetupInvitationSimpleViewModel > MeetupApiGetMeetupInvitationDetailWithHttpInfo (long? invitationId) { // verify the required parameter 'invitationId' is set if (invitationId == null) throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupApiApi->MeetupApiGetMeetupInvitationDetail"); var localVarPath = "/v1/meetupInvitations/{invitationId}"; 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("MeetupApiGetMeetupInvitationDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupInvitationSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MeetupInvitationSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of MeetupInvitationSimpleViewModel public async System.Threading.Tasks.Task MeetupApiGetMeetupInvitationDetailAsync (long? invitationId) { ApiResponse localVarResponse = await MeetupApiGetMeetupInvitationDetailAsyncWithHttpInfo(invitationId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (MeetupInvitationSimpleViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMeetupInvitationDetailAsyncWithHttpInfo (long? invitationId) { // verify the required parameter 'invitationId' is set if (invitationId == null) throw new ApiException(400, "Missing required parameter 'invitationId' when calling MeetupApiApi->MeetupApiGetMeetupInvitationDetail"); var localVarPath = "/v1/meetupInvitations/{invitationId}"; 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("MeetupApiGetMeetupInvitationDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MeetupInvitationSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MeetupInvitationSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultMeetupViewModel public CursorPaginationResultMeetupViewModel MeetupApiGetMyInvitations (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = MeetupApiGetMyInvitationsWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultMeetupViewModel public ApiResponse< CursorPaginationResultMeetupViewModel > MeetupApiGetMyInvitationsWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMyInvitations"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMyInvitations"); var localVarPath = "/v1/myMeetupInvitations"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMyInvitations", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultMeetupViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultMeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultMeetupViewModel public async System.Threading.Tasks.Task MeetupApiGetMyInvitationsAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await MeetupApiGetMyInvitationsAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultMeetupViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMyInvitationsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMyInvitations"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMyInvitations"); var localVarPath = "/v1/myMeetupInvitations"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMyInvitations", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultMeetupViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultMeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel public NumberViewModel MeetupApiGetMyInvitationsUnreadCount (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = MeetupApiGetMyInvitationsUnreadCountWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel public ApiResponse< NumberViewModel > MeetupApiGetMyInvitationsUnreadCountWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMyInvitationsUnreadCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMyInvitationsUnreadCount"); var localVarPath = "/v1/invitations/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMyInvitationsUnreadCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel public async System.Threading.Tasks.Task MeetupApiGetMyInvitationsUnreadCountAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await MeetupApiGetMyInvitationsUnreadCountAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) public async System.Threading.Tasks.Task> MeetupApiGetMyInvitationsUnreadCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling MeetupApiApi->MeetupApiGetMyInvitationsUnreadCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling MeetupApiApi->MeetupApiGetMyInvitationsUnreadCount"); var localVarPath = "/v1/invitations/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetMyInvitationsUnreadCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// QueryResultMeetupViewModel public QueryResultMeetupViewModel MeetupApiGetNearbyMeetups (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = MeetupApiGetNearbyMeetupsWithHttpInfo(q, longitude, latitude, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultMeetupViewModel public ApiResponse< QueryResultMeetupViewModel > MeetupApiGetNearbyMeetupsWithHttpInfo (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/nearbyMeetups"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetNearbyMeetups", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultMeetupViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultMeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultMeetupViewModel public async System.Threading.Tasks.Task MeetupApiGetNearbyMeetupsAsync (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null) { ApiResponse localVarResponse = await MeetupApiGetNearbyMeetupsAsyncWithHttpInfo(q, longitude, latitude, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// (optional) /// (optional) /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultMeetupViewModel) public async System.Threading.Tasks.Task> MeetupApiGetNearbyMeetupsAsyncWithHttpInfo (string q = null, double? longitude = null, double? latitude = null, int? limit = null, int? offset = null) { var localVarPath = "/v1/nearbyMeetups"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (longitude != null) localVarQueryParams.Add("longitude", Configuration.ApiClient.ParameterToString(longitude)); // query parameter if (latitude != null) localVarQueryParams.Add("latitude", Configuration.ApiClient.ParameterToString(latitude)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiGetNearbyMeetups", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultMeetupViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultMeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// MyMeetupNotificationStatsViewModel public MyMeetupNotificationStatsViewModel MeetupApiMyMeetupNotificationStats () { ApiResponse localVarResponse = MeetupApiMyMeetupNotificationStatsWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of MyMeetupNotificationStatsViewModel public ApiResponse< MyMeetupNotificationStatsViewModel > MeetupApiMyMeetupNotificationStatsWithHttpInfo () { var localVarPath = "/v1/myMeetupNotificationStats"; 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("MeetupApiMyMeetupNotificationStats", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MyMeetupNotificationStatsViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(MyMeetupNotificationStatsViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of MyMeetupNotificationStatsViewModel public async System.Threading.Tasks.Task MeetupApiMyMeetupNotificationStatsAsync () { ApiResponse localVarResponse = await MeetupApiMyMeetupNotificationStatsAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (MyMeetupNotificationStatsViewModel) public async System.Threading.Tasks.Task> MeetupApiMyMeetupNotificationStatsAsyncWithHttpInfo () { var localVarPath = "/v1/myMeetupNotificationStats"; 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("MeetupApiMyMeetupNotificationStats", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (MyMeetupNotificationStatsViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(MyMeetupNotificationStatsViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// QueryResultMeetupViewModel public QueryResultMeetupViewModel MeetupApiMyMeetups (int? limit = null, int? offset = null) { ApiResponse localVarResponse = MeetupApiMyMeetupsWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultMeetupViewModel public ApiResponse< QueryResultMeetupViewModel > MeetupApiMyMeetupsWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/myMeetups"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiMyMeetups", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultMeetupViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultMeetupViewModel))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultMeetupViewModel public async System.Threading.Tasks.Task MeetupApiMyMeetupsAsync (int? limit = null, int? offset = null) { ApiResponse localVarResponse = await MeetupApiMyMeetupsAsyncWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultMeetupViewModel) public async System.Threading.Tasks.Task> MeetupApiMyMeetupsAsyncWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/myMeetups"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("MeetupApiMyMeetups", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultMeetupViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultMeetupViewModel))); } } }