/* * 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 IGroupChatApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// void GroupChatApiAdd (long? groupChatId, GroupMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// ApiResponse of Object(void) ApiResponse GroupChatApiAddWithHttpInfo (long? groupChatId, GroupMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// void GroupChatApiChangeGroupChatName (long? groupChatId, ChangeGroupChatNameInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// ApiResponse of Object(void) ApiResponse GroupChatApiChangeGroupChatNameWithHttpInfo (long? groupChatId, ChangeGroupChatNameInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// List<ChatSyncViewModel> List GroupChatApiChatSync (long? chatId, string chatType); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<ChatSyncViewModel> ApiResponse> GroupChatApiChatSyncWithHttpInfo (long? chatId, string chatType); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<ChatSyncViewModel> List GroupChatApiChatSyncs (List args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ChatSyncViewModel> ApiResponse> GroupChatApiChatSyncsWithHttpInfo (List args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// GroupChatSimpleViewModel GroupChatSimpleViewModel GroupChatApiCreateGroupChat (CreateGroupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of GroupChatSimpleViewModel ApiResponse GroupChatApiCreateGroupChatWithHttpInfo (CreateGroupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiDisableInvite (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiDisableInviteWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiDisableNoDisturb (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiDisableNoDisturbWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiDisableTop (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiDisableTopWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiEnableInvite (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiEnableInviteWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiEnableNoDisturb (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiEnableNoDisturbWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiEnableTop (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiEnableTopWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// GroupChatViewModel GroupChatViewModel GroupChatApiGetGroupChatDetail (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of GroupChatViewModel ApiResponse GroupChatApiGetGroupChatDetailWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// GroupChatMemberViewModel GroupChatMemberViewModel GroupChatApiGetMember (long? groupMemberId, string groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// ApiResponse of GroupChatMemberViewModel ApiResponse GroupChatApiGetMemberWithHttpInfo (long? groupMemberId, string groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// List<GroupChatMemberViewModel> List GroupChatApiGetMembers (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of List<GroupChatMemberViewModel> ApiResponse> GroupChatApiGetMembersWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// /// void GroupChatApiKick (long? groupChatId, KickGroupChatMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// /// ApiResponse of Object(void) ApiResponse GroupChatApiKickWithHttpInfo (long? groupChatId, KickGroupChatMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// void GroupChatApiLeave (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) ApiResponse GroupChatApiLeaveWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// QueryResultGroupChatViewModel QueryResultGroupChatViewModel GroupChatApiMyGroupChat (string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultGroupChatViewModel ApiResponse GroupChatApiMyGroupChatWithHttpInfo (string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// groupChatId /// void GroupChatApiRemoveSavedGroupChat (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// groupChatId /// ApiResponse of Object(void) ApiResponse GroupChatApiRemoveSavedGroupChatWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void GroupChatApiSaveGroupChat (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse GroupChatApiSaveGroupChatWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// List<SavedGroupChatViewModel> List GroupChatApiSavedGroupChats (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<SavedGroupChatViewModel> ApiResponse> GroupChatApiSavedGroupChatsWithHttpInfo (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// void GroupChatApiTransferAdmin (long? groupChatId, ChangeGroupAdminInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) ApiResponse GroupChatApiTransferAdminWithHttpInfo (long? groupChatId, ChangeGroupAdminInputModel model); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// Task of void System.Threading.Tasks.Task GroupChatApiAddAsync (long? groupChatId, GroupMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiAddAsyncWithHttpInfo (long? groupChatId, GroupMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// Task of void System.Threading.Tasks.Task GroupChatApiChangeGroupChatNameAsync (long? groupChatId, ChangeGroupChatNameInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiChangeGroupChatNameAsyncWithHttpInfo (long? groupChatId, ChangeGroupChatNameInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of List<ChatSyncViewModel> System.Threading.Tasks.Task> GroupChatApiChatSyncAsync (long? chatId, string chatType); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<ChatSyncViewModel>) System.Threading.Tasks.Task>> GroupChatApiChatSyncAsyncWithHttpInfo (long? chatId, string chatType); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<ChatSyncViewModel> System.Threading.Tasks.Task> GroupChatApiChatSyncsAsync (List args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ChatSyncViewModel>) System.Threading.Tasks.Task>> GroupChatApiChatSyncsAsyncWithHttpInfo (List args); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of GroupChatSimpleViewModel System.Threading.Tasks.Task GroupChatApiCreateGroupChatAsync (CreateGroupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (GroupChatSimpleViewModel) System.Threading.Tasks.Task> GroupChatApiCreateGroupChatAsyncWithHttpInfo (CreateGroupInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiDisableInviteAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiDisableInviteAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiDisableNoDisturbAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiDisableNoDisturbAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiDisableTopAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiDisableTopAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiEnableInviteAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiEnableInviteAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiEnableNoDisturbAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiEnableNoDisturbAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiEnableTopAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiEnableTopAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of GroupChatViewModel System.Threading.Tasks.Task GroupChatApiGetGroupChatDetailAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse (GroupChatViewModel) System.Threading.Tasks.Task> GroupChatApiGetGroupChatDetailAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// Task of GroupChatMemberViewModel System.Threading.Tasks.Task GroupChatApiGetMemberAsync (long? groupMemberId, string groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// Task of ApiResponse (GroupChatMemberViewModel) System.Threading.Tasks.Task> GroupChatApiGetMemberAsyncWithHttpInfo (long? groupMemberId, string groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of List<GroupChatMemberViewModel> System.Threading.Tasks.Task> GroupChatApiGetMembersAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse (List<GroupChatMemberViewModel>) System.Threading.Tasks.Task>> GroupChatApiGetMembersAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// /// Task of void System.Threading.Tasks.Task GroupChatApiKickAsync (long? groupChatId, KickGroupChatMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiKickAsyncWithHttpInfo (long? groupChatId, KickGroupChatMemberInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void System.Threading.Tasks.Task GroupChatApiLeaveAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiLeaveAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultGroupChatViewModel System.Threading.Tasks.Task GroupChatApiMyGroupChatAsync (string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultGroupChatViewModel) System.Threading.Tasks.Task> GroupChatApiMyGroupChatAsyncWithHttpInfo (string q, int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// groupChatId /// Task of void System.Threading.Tasks.Task GroupChatApiRemoveSavedGroupChatAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// groupChatId /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiRemoveSavedGroupChatAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task GroupChatApiSaveGroupChatAsync (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiSaveGroupChatAsyncWithHttpInfo (long? groupChatId); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of List<SavedGroupChatViewModel> System.Threading.Tasks.Task> GroupChatApiSavedGroupChatsAsync (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<SavedGroupChatViewModel>) System.Threading.Tasks.Task>> GroupChatApiSavedGroupChatsAsyncWithHttpInfo (int? limit = null, int? offset = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of void System.Threading.Tasks.Task GroupChatApiTransferAdminAsync (long? groupChatId, ChangeGroupAdminInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse System.Threading.Tasks.Task> GroupChatApiTransferAdminAsyncWithHttpInfo (long? groupChatId, ChangeGroupAdminInputModel model); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class GroupChatApiApi : IGroupChatApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public GroupChatApiApi(Configuration configuration) { this.Configuration = configuration; ExceptionFactory = IO.Swagger.Client.Configuration.DefaultExceptionFactory; // ensure API client has configuration ready if (Configuration.ApiClient.Configuration == null) { this.Configuration.ApiClient.Configuration = this.Configuration; } } /// /// Gets or sets the configuration object /// /// An instance of the Configuration public Configuration Configuration {get; set;} /// /// Provides a factory method hook for the creation of exceptions. /// public IO.Swagger.Client.ExceptionFactory ExceptionFactory { get { if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) { throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); } return _exceptionFactory; } set { _exceptionFactory = value; } } /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// public void GroupChatApiAdd (long? groupChatId, GroupMemberInputModel model) { GroupChatApiAddWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// ApiResponse of Object(void) public ApiResponse GroupChatApiAddWithHttpInfo (long? groupChatId, GroupMemberInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiAdd"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiAdd"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_add"; 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("GroupChatApiAdd", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// Task of void public async System.Threading.Tasks.Task GroupChatApiAddAsync (long? groupChatId, GroupMemberInputModel model) { await GroupChatApiAddAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 成员额外属性对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiAddAsyncWithHttpInfo (long? groupChatId, GroupMemberInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiAdd"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiAdd"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_add"; 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("GroupChatApiAdd", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// public void GroupChatApiChangeGroupChatName (long? groupChatId, ChangeGroupChatNameInputModel model) { GroupChatApiChangeGroupChatNameWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// ApiResponse of Object(void) public ApiResponse GroupChatApiChangeGroupChatNameWithHttpInfo (long? groupChatId, ChangeGroupChatNameInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiChangeGroupChatName"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiChangeGroupChatName"); var localVarPath = "/v1/groupchats/{groupChatId}/chatName"; 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("GroupChatApiChangeGroupChatName", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// Task of void public async System.Threading.Tasks.Task GroupChatApiChangeGroupChatNameAsync (long? groupChatId, ChangeGroupChatNameInputModel model) { await GroupChatApiChangeGroupChatNameAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// 组昵称对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiChangeGroupChatNameAsyncWithHttpInfo (long? groupChatId, ChangeGroupChatNameInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiChangeGroupChatName"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiChangeGroupChatName"); var localVarPath = "/v1/groupchats/{groupChatId}/chatName"; 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("GroupChatApiChangeGroupChatName", 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 /// /// /// List<ChatSyncViewModel> public List GroupChatApiChatSync (long? chatId, string chatType) { ApiResponse> localVarResponse = GroupChatApiChatSyncWithHttpInfo(chatId, chatType); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of List<ChatSyncViewModel> public ApiResponse< List > GroupChatApiChatSyncWithHttpInfo (long? chatId, string chatType) { // verify the required parameter 'chatId' is set if (chatId == null) throw new ApiException(400, "Missing required parameter 'chatId' when calling GroupChatApiApi->GroupChatApiChatSync"); // verify the required parameter 'chatType' is set if (chatType == null) throw new ApiException(400, "Missing required parameter 'chatType' when calling GroupChatApiApi->GroupChatApiChatSync"); var localVarPath = "/v1/chat_syncs/{chatId}"; 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 (chatType != null) localVarQueryParams.Add("chatType", Configuration.ApiClient.ParameterToString(chatType)); // 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("GroupChatApiChatSync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of List<ChatSyncViewModel> public async System.Threading.Tasks.Task> GroupChatApiChatSyncAsync (long? chatId, string chatType) { ApiResponse> localVarResponse = await GroupChatApiChatSyncAsyncWithHttpInfo(chatId, chatType); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (List<ChatSyncViewModel>) public async System.Threading.Tasks.Task>> GroupChatApiChatSyncAsyncWithHttpInfo (long? chatId, string chatType) { // verify the required parameter 'chatId' is set if (chatId == null) throw new ApiException(400, "Missing required parameter 'chatId' when calling GroupChatApiApi->GroupChatApiChatSync"); // verify the required parameter 'chatType' is set if (chatType == null) throw new ApiException(400, "Missing required parameter 'chatType' when calling GroupChatApiApi->GroupChatApiChatSync"); var localVarPath = "/v1/chat_syncs/{chatId}"; 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 (chatType != null) localVarQueryParams.Add("chatType", Configuration.ApiClient.ParameterToString(chatType)); // 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("GroupChatApiChatSync", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// List<ChatSyncViewModel> public List GroupChatApiChatSyncs (List args) { ApiResponse> localVarResponse = GroupChatApiChatSyncsWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<ChatSyncViewModel> public ApiResponse< List > GroupChatApiChatSyncsWithHttpInfo (List args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling GroupChatApiApi->GroupChatApiChatSyncs"); var localVarPath = "/v1/chat_sync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(args); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiChatSyncs", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// Task of List<ChatSyncViewModel> public async System.Threading.Tasks.Task> GroupChatApiChatSyncsAsync (List args) { ApiResponse> localVarResponse = await GroupChatApiChatSyncsAsyncWithHttpInfo(args); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<ChatSyncViewModel>) public async System.Threading.Tasks.Task>> GroupChatApiChatSyncsAsyncWithHttpInfo (List args) { // verify the required parameter 'args' is set if (args == null) throw new ApiException(400, "Missing required parameter 'args' when calling GroupChatApiApi->GroupChatApiChatSyncs"); var localVarPath = "/v1/chat_sync"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(args); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiChatSyncs", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// GroupChatSimpleViewModel public GroupChatSimpleViewModel GroupChatApiCreateGroupChat (CreateGroupInputModel model) { ApiResponse localVarResponse = GroupChatApiCreateGroupChatWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of GroupChatSimpleViewModel public ApiResponse< GroupChatSimpleViewModel > GroupChatApiCreateGroupChatWithHttpInfo (CreateGroupInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiCreateGroupChat"); var localVarPath = "/v1/groupchats"; 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("GroupChatApiCreateGroupChat", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatSimpleViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(GroupChatSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of GroupChatSimpleViewModel public async System.Threading.Tasks.Task GroupChatApiCreateGroupChatAsync (CreateGroupInputModel model) { ApiResponse localVarResponse = await GroupChatApiCreateGroupChatAsyncWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (GroupChatSimpleViewModel) public async System.Threading.Tasks.Task> GroupChatApiCreateGroupChatAsyncWithHttpInfo (CreateGroupInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiCreateGroupChat"); var localVarPath = "/v1/groupchats"; 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("GroupChatApiCreateGroupChat", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatSimpleViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(GroupChatSimpleViewModel))); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiDisableInvite (long? groupChatId) { GroupChatApiDisableInviteWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiDisableInviteWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableInvite"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableInvite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiDisableInviteAsync (long? groupChatId) { await GroupChatApiDisableInviteAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiDisableInviteAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableInvite"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableInvite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiDisableNoDisturb (long? groupChatId) { GroupChatApiDisableNoDisturbWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiDisableNoDisturbWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableNoDisturb"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableNoDisturb"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableNoDisturb", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiDisableNoDisturbAsync (long? groupChatId) { await GroupChatApiDisableNoDisturbAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiDisableNoDisturbAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableNoDisturb"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableNoDisturb"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableNoDisturb", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiDisableTop (long? groupChatId) { GroupChatApiDisableTopWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiDisableTopWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableTop"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableTop"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableTop", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiDisableTopAsync (long? groupChatId) { await GroupChatApiDisableTopAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiDisableTopAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiDisableTop"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_disableTop"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiDisableTop", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiEnableInvite (long? groupChatId) { GroupChatApiEnableInviteWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiEnableInviteWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableInvite"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableInvite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiEnableInviteAsync (long? groupChatId) { await GroupChatApiEnableInviteAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiEnableInviteAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableInvite"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableInvite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiEnableNoDisturb (long? groupChatId) { GroupChatApiEnableNoDisturbWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiEnableNoDisturbWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableNoDisturb"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableNoDisturb"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableNoDisturb", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiEnableNoDisturbAsync (long? groupChatId) { await GroupChatApiEnableNoDisturbAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiEnableNoDisturbAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableNoDisturb"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableNoDisturb"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableNoDisturb", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiEnableTop (long? groupChatId) { GroupChatApiEnableTopWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiEnableTopWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableTop"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableTop"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableTop", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiEnableTopAsync (long? groupChatId) { await GroupChatApiEnableTopAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiEnableTopAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiEnableTop"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_enableTop"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiEnableTop", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// GroupChatViewModel public GroupChatViewModel GroupChatApiGetGroupChatDetail (long? groupChatId) { ApiResponse localVarResponse = GroupChatApiGetGroupChatDetailWithHttpInfo(groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of GroupChatViewModel public ApiResponse< GroupChatViewModel > GroupChatApiGetGroupChatDetailWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetGroupChatDetail"); var localVarPath = "/v1/groupchats/{groupChatId}"; 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("GroupChatApiGetGroupChatDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(GroupChatViewModel))); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of GroupChatViewModel public async System.Threading.Tasks.Task GroupChatApiGetGroupChatDetailAsync (long? groupChatId) { ApiResponse localVarResponse = await GroupChatApiGetGroupChatDetailAsyncWithHttpInfo(groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse (GroupChatViewModel) public async System.Threading.Tasks.Task> GroupChatApiGetGroupChatDetailAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetGroupChatDetail"); var localVarPath = "/v1/groupchats/{groupChatId}"; 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("GroupChatApiGetGroupChatDetail", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(GroupChatViewModel))); } /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// GroupChatMemberViewModel public GroupChatMemberViewModel GroupChatApiGetMember (long? groupMemberId, string groupChatId) { ApiResponse localVarResponse = GroupChatApiGetMemberWithHttpInfo(groupMemberId, groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// ApiResponse of GroupChatMemberViewModel public ApiResponse< GroupChatMemberViewModel > GroupChatApiGetMemberWithHttpInfo (long? groupMemberId, string groupChatId) { // verify the required parameter 'groupMemberId' is set if (groupMemberId == null) throw new ApiException(400, "Missing required parameter 'groupMemberId' when calling GroupChatApiApi->GroupChatApiGetMember"); // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetMember"); var localVarPath = "/v1/groupchats/{groupChatId}/members/{groupMemberId}"; 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("GroupChatApiGetMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatMemberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(GroupChatMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// Task of GroupChatMemberViewModel public async System.Threading.Tasks.Task GroupChatApiGetMemberAsync (long? groupMemberId, string groupChatId) { ApiResponse localVarResponse = await GroupChatApiGetMemberAsyncWithHttpInfo(groupMemberId, groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 群成员Id /// /// Task of ApiResponse (GroupChatMemberViewModel) public async System.Threading.Tasks.Task> GroupChatApiGetMemberAsyncWithHttpInfo (long? groupMemberId, string groupChatId) { // verify the required parameter 'groupMemberId' is set if (groupMemberId == null) throw new ApiException(400, "Missing required parameter 'groupMemberId' when calling GroupChatApiApi->GroupChatApiGetMember"); // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetMember"); var localVarPath = "/v1/groupchats/{groupChatId}/members/{groupMemberId}"; 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("GroupChatApiGetMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (GroupChatMemberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(GroupChatMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// 组ID /// List<GroupChatMemberViewModel> public List GroupChatApiGetMembers (long? groupChatId) { ApiResponse> localVarResponse = GroupChatApiGetMembersWithHttpInfo(groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of List<GroupChatMemberViewModel> public ApiResponse< List > GroupChatApiGetMembersWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetMembers"); var localVarPath = "/v1/groupchats/{groupChatId}/members"; 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("GroupChatApiGetMembers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of List<GroupChatMemberViewModel> public async System.Threading.Tasks.Task> GroupChatApiGetMembersAsync (long? groupChatId) { ApiResponse> localVarResponse = await GroupChatApiGetMembersAsyncWithHttpInfo(groupChatId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse (List<GroupChatMemberViewModel>) public async System.Threading.Tasks.Task>> GroupChatApiGetMembersAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiGetMembers"); var localVarPath = "/v1/groupchats/{groupChatId}/members"; 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("GroupChatApiGetMembers", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// 组ID /// /// public void GroupChatApiKick (long? groupChatId, KickGroupChatMemberInputModel model) { GroupChatApiKickWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// /// ApiResponse of Object(void) public ApiResponse GroupChatApiKickWithHttpInfo (long? groupChatId, KickGroupChatMemberInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiKick"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiKick"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_kick"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiKick", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// /// Task of void public async System.Threading.Tasks.Task GroupChatApiKickAsync (long? groupChatId, KickGroupChatMemberInputModel model) { await GroupChatApiKickAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// 组ID /// /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiKickAsyncWithHttpInfo (long? groupChatId, KickGroupChatMemberInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiKick"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiKick"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_kick"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiKick", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// public void GroupChatApiLeave (long? groupChatId) { GroupChatApiLeaveWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// ApiResponse of Object(void) public ApiResponse GroupChatApiLeaveWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiLeave"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_leave"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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("GroupChatApiLeave", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of void public async System.Threading.Tasks.Task GroupChatApiLeaveAsync (long? groupChatId) { await GroupChatApiLeaveAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// 组ID /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiLeaveAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiLeave"); var localVarPath = "/v1/groupchats/{groupChatId}/members/_leave"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; 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("GroupChatApiLeave", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// QueryResultGroupChatViewModel public QueryResultGroupChatViewModel GroupChatApiMyGroupChat (string q, int? limit = null, int? offset = null) { ApiResponse localVarResponse = GroupChatApiMyGroupChatWithHttpInfo(q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of QueryResultGroupChatViewModel public ApiResponse< QueryResultGroupChatViewModel > GroupChatApiMyGroupChatWithHttpInfo (string q, int? limit = null, int? offset = null) { // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling GroupChatApiApi->GroupChatApiMyGroupChat"); var localVarPath = "/v1/mygroupchats"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiMyGroupChat", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultGroupChatViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(QueryResultGroupChatViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// Task of QueryResultGroupChatViewModel public async System.Threading.Tasks.Task GroupChatApiMyGroupChatAsync (string q, int? limit = null, int? offset = null) { ApiResponse localVarResponse = await GroupChatApiMyGroupChatAsyncWithHttpInfo(q, limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (QueryResultGroupChatViewModel) public async System.Threading.Tasks.Task> GroupChatApiMyGroupChatAsyncWithHttpInfo (string q, int? limit = null, int? offset = null) { // verify the required parameter 'q' is set if (q == null) throw new ApiException(400, "Missing required parameter 'q' when calling GroupChatApiApi->GroupChatApiMyGroupChat"); var localVarPath = "/v1/mygroupchats"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (q != null) localVarQueryParams.Add("q", Configuration.ApiClient.ParameterToString(q)); // query parameter if (limit != null) localVarQueryParams.Add("limit", Configuration.ApiClient.ParameterToString(limit)); // query parameter if (offset != null) localVarQueryParams.Add("offset", Configuration.ApiClient.ParameterToString(offset)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiMyGroupChat", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (QueryResultGroupChatViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(QueryResultGroupChatViewModel))); } /// /// /// /// Thrown when fails to make API call /// groupChatId /// public void GroupChatApiRemoveSavedGroupChat (long? groupChatId) { GroupChatApiRemoveSavedGroupChatWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// groupChatId /// ApiResponse of Object(void) public ApiResponse GroupChatApiRemoveSavedGroupChatWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiRemoveSavedGroupChat"); var localVarPath = "/v1/savedgroupchats/_remove/{groupChatId}"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiRemoveSavedGroupChat", 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 /// groupChatId /// Task of void public async System.Threading.Tasks.Task GroupChatApiRemoveSavedGroupChatAsync (long? groupChatId) { await GroupChatApiRemoveSavedGroupChatAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// groupChatId /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiRemoveSavedGroupChatAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiRemoveSavedGroupChat"); var localVarPath = "/v1/savedgroupchats/_remove/{groupChatId}"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiRemoveSavedGroupChat", 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 GroupChatApiSaveGroupChat (long? groupChatId) { GroupChatApiSaveGroupChatWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse GroupChatApiSaveGroupChatWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiSaveGroupChat"); var localVarPath = "/v1/savedgroupchats/_add/{groupChatId}"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiSaveGroupChat", 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 GroupChatApiSaveGroupChatAsync (long? groupChatId) { await GroupChatApiSaveGroupChatAsyncWithHttpInfo(groupChatId); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiSaveGroupChatAsyncWithHttpInfo (long? groupChatId) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiSaveGroupChat"); var localVarPath = "/v1/savedgroupchats/_add/{groupChatId}"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("GroupChatApiSaveGroupChat", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// List<SavedGroupChatViewModel> public List GroupChatApiSavedGroupChats (int? limit = null, int? offset = null) { ApiResponse> localVarResponse = GroupChatApiSavedGroupChatsWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// ApiResponse of List<SavedGroupChatViewModel> public ApiResponse< List > GroupChatApiSavedGroupChatsWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/savedgroupchats"; 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("GroupChatApiSavedGroupChats", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(List))); } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of List<SavedGroupChatViewModel> public async System.Threading.Tasks.Task> GroupChatApiSavedGroupChatsAsync (int? limit = null, int? offset = null) { ApiResponse> localVarResponse = await GroupChatApiSavedGroupChatsAsyncWithHttpInfo(limit, offset); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to 10) /// (optional, default to 0) /// Task of ApiResponse (List<SavedGroupChatViewModel>) public async System.Threading.Tasks.Task>> GroupChatApiSavedGroupChatsAsyncWithHttpInfo (int? limit = null, int? offset = null) { var localVarPath = "/v1/savedgroupchats"; 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("GroupChatApiSavedGroupChats", localVarResponse); if (exception != null) throw exception; } return new ApiResponse>(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (List) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(List))); } /// /// /// /// Thrown when fails to make API call /// /// /// public void GroupChatApiTransferAdmin (long? groupChatId, ChangeGroupAdminInputModel model) { GroupChatApiTransferAdminWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of Object(void) public ApiResponse GroupChatApiTransferAdminWithHttpInfo (long? groupChatId, ChangeGroupAdminInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiTransferAdmin"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiTransferAdmin"); var localVarPath = "/v1/groupchats/{groupChatId}/_transferAdmin"; 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("GroupChatApiTransferAdmin", 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 GroupChatApiTransferAdminAsync (long? groupChatId, ChangeGroupAdminInputModel model) { await GroupChatApiTransferAdminAsyncWithHttpInfo(groupChatId, model); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse public async System.Threading.Tasks.Task> GroupChatApiTransferAdminAsyncWithHttpInfo (long? groupChatId, ChangeGroupAdminInputModel model) { // verify the required parameter 'groupChatId' is set if (groupChatId == null) throw new ApiException(400, "Missing required parameter 'groupChatId' when calling GroupChatApiApi->GroupChatApiTransferAdmin"); // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling GroupChatApiApi->GroupChatApiTransferAdmin"); var localVarPath = "/v1/groupchats/{groupChatId}/_transferAdmin"; 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("GroupChatApiTransferAdmin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } } }