/* * 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 ICompanyMemberApiApi : IApiAccessor { #region Synchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// void CompanyMemberApiAcceptApplyRequest (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiAcceptApplyRequestWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// void CompanyMemberApiAcceptInviteRequest (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiAcceptInviteRequestWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// CreatedViewModel CreatedViewModel CompanyMemberApiApply (ApplyCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// ApiResponse of CreatedViewModel ApiResponse CompanyMemberApiApplyWithHttpInfo (ApplyCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// void CompanyMemberApiAssignAdministrators (ChangeCompanyAdministratorsInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// ApiResponse of Object(void) ApiResponse CompanyMemberApiAssignAdministratorsWithHttpInfo (ChangeCompanyAdministratorsInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// List<CompanyMemberViewModel> List CompanyMemberApiGetCompanyAllMembersByCompanyId (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> ApiResponse> CompanyMemberApiGetCompanyAllMembersByCompanyIdWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberApplyRequestViewModel CompanyMemberApplyRequestViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequest (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberApplyRequestViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberApplyRequestWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberApplyRequestViewModel CursorPaginationResultCompanyMemberApplyRequestViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequests (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberApplyRequestViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberApplyRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel NumberViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberInviteRequestViewModel CompanyMemberInviteRequestViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequest (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberInviteRequestViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberInviteRequestWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberInviteRequestViewModel CursorPaginationResultCompanyMemberInviteRequestViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequests (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberInviteRequestViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberInviteRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel NumberViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel ApiResponse CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// List<CompanyMemberViewModel> List CompanyMemberApiGetMyCompanyMembers (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<CompanyMemberViewModel> ApiResponse> CompanyMemberApiGetMyCompanyMembersWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberApplyRequestViewModel CompanyMemberApplyRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequest (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberApplyRequestViewModel ApiResponse CompanyMemberApiGetOutgoingCompanyMemberApplyRequestWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel NumberViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel ApiResponse CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberApplyRequestViewModel CursorPaginationResultCompanyMemberApplyRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequests (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberApplyRequestViewModel ApiResponse CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberInviteRequestViewModel CompanyMemberInviteRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberInviteRequest (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberInviteRequestViewModel ApiResponse CompanyMemberApiGetOutgoingCompanyMemberInviteRequestWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberInviteRequestViewModel CursorPaginationResultCompanyMemberInviteRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberInviteRequests (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberInviteRequestViewModel ApiResponse CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// CreatedViewModel CreatedViewModel CompanyMemberApiInvite (InviteCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// ApiResponse of CreatedViewModel ApiResponse CompanyMemberApiInviteWithHttpInfo (InviteCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// void CompanyMemberApiKick (int? memberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiKickWithHttpInfo (int? memberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// void CompanyMemberApiKickMyCompanyAdministrator (long? adminMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiKickMyCompanyAdministratorWithHttpInfo (long? adminMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// void CompanyMemberApiLeave (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of Object(void) ApiResponse CompanyMemberApiLeaveWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// CompanyMemberViewModel CompanyMemberViewModel CompanyMemberApiMyCompanyMember (); /// /// /// /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyMemberViewModel ApiResponse CompanyMemberApiMyCompanyMemberWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// void CompanyMemberApiRejectApplyRequest (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiRejectApplyRequestWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// void CompanyMemberApiRejectInviteRequest (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) ApiResponse CompanyMemberApiRejectInviteRequestWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// List<CompanyMemberViewModel> List CompanyMemberApiSearchCompanyMembers (string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// ApiResponse of List<CompanyMemberViewModel> ApiResponse> CompanyMemberApiSearchCompanyMembersWithHttpInfo (string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// void CompanyMemberApiTransferMainAdmin (long? companyMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) ApiResponse CompanyMemberApiTransferMainAdminWithHttpInfo (long? companyMemberId); #endregion Synchronous Operations #region Asynchronous Operations /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of void System.Threading.Tasks.Task CompanyMemberApiAcceptApplyRequestAsync (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiAcceptApplyRequestAsyncWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of void System.Threading.Tasks.Task CompanyMemberApiAcceptInviteRequestAsync (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiAcceptInviteRequestAsyncWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// Task of CreatedViewModel System.Threading.Tasks.Task CompanyMemberApiApplyAsync (ApplyCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// Task of ApiResponse (CreatedViewModel) System.Threading.Tasks.Task> CompanyMemberApiApplyAsyncWithHttpInfo (ApplyCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// Task of void System.Threading.Tasks.Task CompanyMemberApiAssignAdministratorsAsync (ChangeCompanyAdministratorsInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiAssignAdministratorsAsyncWithHttpInfo (ChangeCompanyAdministratorsInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of List<CompanyMemberViewModel> System.Threading.Tasks.Task> CompanyMemberApiGetCompanyAllMembersByCompanyIdAsync (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) System.Threading.Tasks.Task>> CompanyMemberApiGetCompanyAllMembersByCompanyIdAsyncWithHttpInfo (int? companyId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberApplyRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestAsync (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberApplyRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestAsyncWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberApplyRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestsAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberApplyRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberInviteRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestAsync (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberInviteRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestAsyncWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberInviteRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestsAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberInviteRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of List<CompanyMemberViewModel> System.Threading.Tasks.Task> CompanyMemberApiGetMyCompanyMembersAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<CompanyMemberViewModel>) System.Threading.Tasks.Task>> CompanyMemberApiGetMyCompanyMembersAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberApplyRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestAsync (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberApplyRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestAsyncWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberApplyRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberApplyRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberInviteRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberInviteRequestAsync (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberInviteRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberInviteRequestAsyncWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberInviteRequestViewModel System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsAsync (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberInviteRequestViewModel) System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit); /// /// /// /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// Task of CreatedViewModel System.Threading.Tasks.Task CompanyMemberApiInviteAsync (InviteCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// Task of ApiResponse (CreatedViewModel) System.Threading.Tasks.Task> CompanyMemberApiInviteAsyncWithHttpInfo (InviteCompanyMemberRequestInputModel model); /// /// /// /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// Task of void System.Threading.Tasks.Task CompanyMemberApiKickAsync (int? memberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiKickAsyncWithHttpInfo (int? memberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// Task of void System.Threading.Tasks.Task CompanyMemberApiKickMyCompanyAdministratorAsync (long? adminMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiKickMyCompanyAdministratorAsyncWithHttpInfo (long? adminMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of void System.Threading.Tasks.Task CompanyMemberApiLeaveAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiLeaveAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of CompanyMemberViewModel System.Threading.Tasks.Task CompanyMemberApiMyCompanyMemberAsync (); /// /// /// /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyMemberViewModel) System.Threading.Tasks.Task> CompanyMemberApiMyCompanyMemberAsyncWithHttpInfo (); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of void System.Threading.Tasks.Task CompanyMemberApiRejectApplyRequestAsync (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiRejectApplyRequestAsyncWithHttpInfo (long? applyRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of void System.Threading.Tasks.Task CompanyMemberApiRejectInviteRequestAsync (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiRejectInviteRequestAsyncWithHttpInfo (long? inviteRequestId); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// Task of List<CompanyMemberViewModel> System.Threading.Tasks.Task> CompanyMemberApiSearchCompanyMembersAsync (string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// Task of ApiResponse (List<CompanyMemberViewModel>) System.Threading.Tasks.Task>> CompanyMemberApiSearchCompanyMembersAsyncWithHttpInfo (string q = null); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of void System.Threading.Tasks.Task CompanyMemberApiTransferMainAdminAsync (long? companyMemberId); /// /// /// /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse System.Threading.Tasks.Task> CompanyMemberApiTransferMainAdminAsyncWithHttpInfo (long? companyMemberId); #endregion Asynchronous Operations } /// /// Represents a collection of functions to interact with the API endpoints /// public partial class CompanyMemberApiApi : ICompanyMemberApiApi { private IO.Swagger.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class /// using Configuration object /// /// An instance of Configuration /// public CompanyMemberApiApi(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 CompanyMemberApiAcceptApplyRequest (long? applyRequestId) { CompanyMemberApiAcceptApplyRequestWithHttpInfo(applyRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiAcceptApplyRequestWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiAcceptApplyRequest"); var localVarPath = "/v1/companyMembers/_acceptApplyRequest/{applyRequestId}"; 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("CompanyMemberApiAcceptApplyRequest", 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 CompanyMemberApiAcceptApplyRequestAsync (long? applyRequestId) { await CompanyMemberApiAcceptApplyRequestAsyncWithHttpInfo(applyRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiAcceptApplyRequestAsyncWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiAcceptApplyRequest"); var localVarPath = "/v1/companyMembers/_acceptApplyRequest/{applyRequestId}"; 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("CompanyMemberApiAcceptApplyRequest", 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 CompanyMemberApiAcceptInviteRequest (long? inviteRequestId) { CompanyMemberApiAcceptInviteRequestWithHttpInfo(inviteRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiAcceptInviteRequestWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiAcceptInviteRequest"); var localVarPath = "/v1/companyMembers/_acceptInviteRequest/{inviteRequestId}"; 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("CompanyMemberApiAcceptInviteRequest", 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 CompanyMemberApiAcceptInviteRequestAsync (long? inviteRequestId) { await CompanyMemberApiAcceptInviteRequestAsyncWithHttpInfo(inviteRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiAcceptInviteRequestAsyncWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiAcceptInviteRequest"); var localVarPath = "/v1/companyMembers/_acceptInviteRequest/{inviteRequestId}"; 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("CompanyMemberApiAcceptInviteRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// CreatedViewModel public CreatedViewModel CompanyMemberApiApply (ApplyCompanyMemberRequestInputModel model) { ApiResponse localVarResponse = CompanyMemberApiApplyWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// ApiResponse of CreatedViewModel public ApiResponse< CreatedViewModel > CompanyMemberApiApplyWithHttpInfo (ApplyCompanyMemberRequestInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiApply"); var localVarPath = "/v1/companyMembers/_apply"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiApply", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// Task of CreatedViewModel public async System.Threading.Tasks.Task CompanyMemberApiApplyAsync (ApplyCompanyMemberRequestInputModel model) { ApiResponse localVarResponse = await CompanyMemberApiApplyAsyncWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 申请请求实体 /// Task of ApiResponse (CreatedViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiApplyAsyncWithHttpInfo (ApplyCompanyMemberRequestInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiApply"); var localVarPath = "/v1/companyMembers/_apply"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); localVarPostBody = Configuration.ApiClient.Serialize(model); // http body (model) parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiApply", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// public void CompanyMemberApiAssignAdministrators (ChangeCompanyAdministratorsInputModel model) { CompanyMemberApiAssignAdministratorsWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiAssignAdministratorsWithHttpInfo (ChangeCompanyAdministratorsInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiAssignAdministrators"); var localVarPath = "/v1/myCompany/_assignAdministrators"; 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("CompanyMemberApiAssignAdministrators", 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 CompanyMemberApiAssignAdministratorsAsync (ChangeCompanyAdministratorsInputModel model) { await CompanyMemberApiAssignAdministratorsAsyncWithHttpInfo(model); } /// /// /// /// Thrown when fails to make API call /// 设置管理员对象 /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiAssignAdministratorsAsyncWithHttpInfo (ChangeCompanyAdministratorsInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiAssignAdministrators"); var localVarPath = "/v1/myCompany/_assignAdministrators"; 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("CompanyMemberApiAssignAdministrators", 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<CompanyMemberViewModel> public List CompanyMemberApiGetCompanyAllMembersByCompanyId (int? companyId) { ApiResponse> localVarResponse = CompanyMemberApiGetCompanyAllMembersByCompanyIdWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of List<CompanyMemberViewModel> public ApiResponse< List > CompanyMemberApiGetCompanyAllMembersByCompanyIdWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyMemberApiApi->CompanyMemberApiGetCompanyAllMembersByCompanyId"); var localVarPath = "/v1/companies/{companyId}/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("CompanyMemberApiGetCompanyAllMembersByCompanyId", 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<CompanyMemberViewModel> public async System.Threading.Tasks.Task> CompanyMemberApiGetCompanyAllMembersByCompanyIdAsync (int? companyId) { ApiResponse> localVarResponse = await CompanyMemberApiGetCompanyAllMembersByCompanyIdAsyncWithHttpInfo(companyId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (List<CompanyMemberViewModel>) public async System.Threading.Tasks.Task>> CompanyMemberApiGetCompanyAllMembersByCompanyIdAsyncWithHttpInfo (int? companyId) { // verify the required parameter 'companyId' is set if (companyId == null) throw new ApiException(400, "Missing required parameter 'companyId' when calling CompanyMemberApiApi->CompanyMemberApiGetCompanyAllMembersByCompanyId"); var localVarPath = "/v1/companies/{companyId}/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("CompanyMemberApiGetCompanyAllMembersByCompanyId", 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 /// /// CompanyMemberApplyRequestViewModel public CompanyMemberApplyRequestViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequest (long? applyRequestId) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberApplyRequestWithHttpInfo(applyRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberApplyRequestViewModel public ApiResponse< CompanyMemberApplyRequestViewModel > CompanyMemberApiGetIncomingCompanyMemberApplyRequestWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequest"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests/{applyRequestId}"; 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("CompanyMemberApiGetIncomingCompanyMemberApplyRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberApplyRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestAsync (long? applyRequestId) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberApplyRequestAsyncWithHttpInfo(applyRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberApplyRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestAsyncWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequest"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests/{applyRequestId}"; 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("CompanyMemberApiGetIncomingCompanyMemberApplyRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberApplyRequestViewModel public CursorPaginationResultCompanyMemberApplyRequestViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequests (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberApplyRequestsWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberApplyRequestViewModel public ApiResponse< CursorPaginationResultCompanyMemberApplyRequestViewModel > CompanyMemberApiGetIncomingCompanyMemberApplyRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequests"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberApplyRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultCompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberApplyRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestsAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberApplyRequestsAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberApplyRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequests"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberApplyRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultCompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel public NumberViewModel CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel public ApiResponse< NumberViewModel > CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount"); var localVarPath = "/v1/incomingCompanyMemberApplyRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberApplyRequestsCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberInviteRequestViewModel public CompanyMemberInviteRequestViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequest (long? inviteRequestId) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberInviteRequestWithHttpInfo(inviteRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberInviteRequestViewModel public ApiResponse< CompanyMemberInviteRequestViewModel > CompanyMemberApiGetIncomingCompanyMemberInviteRequestWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequest"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests/{inviteRequestId}"; 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("CompanyMemberApiGetIncomingCompanyMemberInviteRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberInviteRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestAsync (long? inviteRequestId) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberInviteRequestAsyncWithHttpInfo(inviteRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberInviteRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestAsyncWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequest"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests/{inviteRequestId}"; 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("CompanyMemberApiGetIncomingCompanyMemberInviteRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberInviteRequestViewModel public CursorPaginationResultCompanyMemberInviteRequestViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequests (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberInviteRequestsWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberInviteRequestViewModel public ApiResponse< CursorPaginationResultCompanyMemberInviteRequestViewModel > CompanyMemberApiGetIncomingCompanyMemberInviteRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequests"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberInviteRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultCompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberInviteRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestsAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberInviteRequestsAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberInviteRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequests"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberInviteRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultCompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel public NumberViewModel CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel public ApiResponse< NumberViewModel > CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount"); var localVarPath = "/v1/incomingCompanyMemberInviteRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetIncomingCompanyMemberInviteRequestsCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// List<CompanyMemberViewModel> public List CompanyMemberApiGetMyCompanyMembers () { ApiResponse> localVarResponse = CompanyMemberApiGetMyCompanyMembersWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of List<CompanyMemberViewModel> public ApiResponse< List > CompanyMemberApiGetMyCompanyMembersWithHttpInfo () { var localVarPath = "/v1/mycompany/Companymembers"; 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("CompanyMemberApiGetMyCompanyMembers", 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<CompanyMemberViewModel> public async System.Threading.Tasks.Task> CompanyMemberApiGetMyCompanyMembersAsync () { ApiResponse> localVarResponse = await CompanyMemberApiGetMyCompanyMembersAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (List<CompanyMemberViewModel>) public async System.Threading.Tasks.Task>> CompanyMemberApiGetMyCompanyMembersAsyncWithHttpInfo () { var localVarPath = "/v1/mycompany/Companymembers"; 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("CompanyMemberApiGetMyCompanyMembers", 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 /// /// CompanyMemberApplyRequestViewModel public CompanyMemberApplyRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequest (long? applyRequestId) { ApiResponse localVarResponse = CompanyMemberApiGetOutgoingCompanyMemberApplyRequestWithHttpInfo(applyRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberApplyRequestViewModel public ApiResponse< CompanyMemberApplyRequestViewModel > CompanyMemberApiGetOutgoingCompanyMemberApplyRequestWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequest"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests/{applyRequestId}"; 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("CompanyMemberApiGetOutgoingCompanyMemberApplyRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberApplyRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestAsync (long? applyRequestId) { ApiResponse localVarResponse = await CompanyMemberApiGetOutgoingCompanyMemberApplyRequestAsyncWithHttpInfo(applyRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberApplyRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestAsyncWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequest"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests/{applyRequestId}"; 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("CompanyMemberApiGetOutgoingCompanyMemberApplyRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// NumberViewModel public NumberViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of NumberViewModel public ApiResponse< NumberViewModel > CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of NumberViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (NumberViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCountAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests/unreadcount"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberApplyRequestCount", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (NumberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(NumberViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberApplyRequestViewModel public CursorPaginationResultCompanyMemberApplyRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberApplyRequests (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberApplyRequestViewModel public ApiResponse< CursorPaginationResultCompanyMemberApplyRequestViewModel > CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequests"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberApplyRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultCompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberApplyRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberApplyRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberApplyRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberApplyRequests"); var localVarPath = "/v1/outgoingCompanyMemberApplyRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberApplyRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberApplyRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultCompanyMemberApplyRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// CompanyMemberInviteRequestViewModel public CompanyMemberInviteRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberInviteRequest (long? inviteRequestId) { ApiResponse localVarResponse = CompanyMemberApiGetOutgoingCompanyMemberInviteRequestWithHttpInfo(inviteRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of CompanyMemberInviteRequestViewModel public ApiResponse< CompanyMemberInviteRequestViewModel > CompanyMemberApiGetOutgoingCompanyMemberInviteRequestWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequest"); var localVarPath = "/v1/outgoingCompanyMemberInviteRequests/{inviteRequestId}"; 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("CompanyMemberApiGetOutgoingCompanyMemberInviteRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// Task of CompanyMemberInviteRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberInviteRequestAsync (long? inviteRequestId) { ApiResponse localVarResponse = await CompanyMemberApiGetOutgoingCompanyMemberInviteRequestAsyncWithHttpInfo(inviteRequestId); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse (CompanyMemberInviteRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberInviteRequestAsyncWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequest"); var localVarPath = "/v1/outgoingCompanyMemberInviteRequests/{inviteRequestId}"; 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("CompanyMemberApiGetOutgoingCompanyMemberInviteRequest", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// CursorPaginationResultCompanyMemberInviteRequestViewModel public CursorPaginationResultCompanyMemberInviteRequestViewModel CompanyMemberApiGetOutgoingCompanyMemberInviteRequests (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// ApiResponse of CursorPaginationResultCompanyMemberInviteRequestViewModel public ApiResponse< CursorPaginationResultCompanyMemberInviteRequestViewModel > CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequests"); var localVarPath = "/v1/outgoingCompanyMemberInviteRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = Configuration.ApiClient.CallApi(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberInviteRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CursorPaginationResultCompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// /// /// Task of CursorPaginationResultCompanyMemberInviteRequestViewModel public async System.Threading.Tasks.Task CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsAsync (long? cursorCursor, int? cursorLimit) { ApiResponse localVarResponse = await CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsAsyncWithHttpInfo(cursorCursor, cursorLimit); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// /// /// Task of ApiResponse (CursorPaginationResultCompanyMemberInviteRequestViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiGetOutgoingCompanyMemberInviteRequestsAsyncWithHttpInfo (long? cursorCursor, int? cursorLimit) { // verify the required parameter 'cursorCursor' is set if (cursorCursor == null) throw new ApiException(400, "Missing required parameter 'cursorCursor' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequests"); // verify the required parameter 'cursorLimit' is set if (cursorLimit == null) throw new ApiException(400, "Missing required parameter 'cursorLimit' when calling CompanyMemberApiApi->CompanyMemberApiGetOutgoingCompanyMemberInviteRequests"); var localVarPath = "/v1/outgoingCompanyMemberInviteRequests"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml" }; String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts); if (localVarHttpHeaderAccept != null) localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept); if (cursorCursor != null) localVarQueryParams.Add("cursor.cursor", Configuration.ApiClient.ParameterToString(cursorCursor)); // query parameter if (cursorLimit != null) localVarQueryParams.Add("cursor.limit", Configuration.ApiClient.ParameterToString(cursorLimit)); // query parameter // make the HTTP request var localVarResponse = await Configuration.ApiClient.CallApiAsync(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarHttpContentType); int localVarStatusCode = (int) localVarResponse.StatusCode; if (ExceptionFactory != null) { Exception exception = ExceptionFactory("CompanyMemberApiGetOutgoingCompanyMemberInviteRequests", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CursorPaginationResultCompanyMemberInviteRequestViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CursorPaginationResultCompanyMemberInviteRequestViewModel))); } /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// CreatedViewModel public CreatedViewModel CompanyMemberApiInvite (InviteCompanyMemberRequestInputModel model) { ApiResponse localVarResponse = CompanyMemberApiInviteWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// ApiResponse of CreatedViewModel public ApiResponse< CreatedViewModel > CompanyMemberApiInviteWithHttpInfo (InviteCompanyMemberRequestInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiInvite"); var localVarPath = "/v1/companyMembers/_invite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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("CompanyMemberApiInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// Task of CreatedViewModel public async System.Threading.Tasks.Task CompanyMemberApiInviteAsync (InviteCompanyMemberRequestInputModel model) { ApiResponse localVarResponse = await CompanyMemberApiInviteAsyncWithHttpInfo(model); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// 邀请请求实体 /// Task of ApiResponse (CreatedViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiInviteAsyncWithHttpInfo (InviteCompanyMemberRequestInputModel model) { // verify the required parameter 'model' is set if (model == null) throw new ApiException(400, "Missing required parameter 'model' when calling CompanyMemberApiApi->CompanyMemberApiInvite"); var localVarPath = "/v1/companyMembers/_invite"; var localVarQueryParams = new Dictionary(); var localVarHeaderParams = new Dictionary(Configuration.DefaultHeader); var localVarFormParams = new Dictionary(); string localVarPostBody = null; // to determine the Content-Type header String[] localVarHttpContentTypes = new String[] { "application/vnd.fht360.enumAsString+json", "application/vnd.fht360.preserveCircularReference+json", "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded" }; String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes); // to determine the Accept header String[] localVarHttpHeaderAccepts = new String[] { "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("CompanyMemberApiInvite", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CreatedViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CreatedViewModel))); } /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// public void CompanyMemberApiKick (int? memberId) { CompanyMemberApiKickWithHttpInfo(memberId); } /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiKickWithHttpInfo (int? memberId) { // verify the required parameter 'memberId' is set if (memberId == null) throw new ApiException(400, "Missing required parameter 'memberId' when calling CompanyMemberApiApi->CompanyMemberApiKick"); var localVarPath = "/v1/companyMembers/_kick/{memberId}"; 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("CompanyMemberApiKick", 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 CompanyMemberApiKickAsync (int? memberId) { await CompanyMemberApiKickAsyncWithHttpInfo(memberId); } /// /// /// /// Thrown when fails to make API call /// 公司成员Id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiKickAsyncWithHttpInfo (int? memberId) { // verify the required parameter 'memberId' is set if (memberId == null) throw new ApiException(400, "Missing required parameter 'memberId' when calling CompanyMemberApiApi->CompanyMemberApiKick"); var localVarPath = "/v1/companyMembers/_kick/{memberId}"; 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("CompanyMemberApiKick", 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 CompanyMemberApiKickMyCompanyAdministrator (long? adminMemberId) { CompanyMemberApiKickMyCompanyAdministratorWithHttpInfo(adminMemberId); } /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiKickMyCompanyAdministratorWithHttpInfo (long? adminMemberId) { // verify the required parameter 'adminMemberId' is set if (adminMemberId == null) throw new ApiException(400, "Missing required parameter 'adminMemberId' when calling CompanyMemberApiApi->CompanyMemberApiKickMyCompanyAdministrator"); var localVarPath = "/v1/myCompany/_kickAdministrator/{adminMemberId}"; 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("CompanyMemberApiKickMyCompanyAdministrator", 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 CompanyMemberApiKickMyCompanyAdministratorAsync (long? adminMemberId) { await CompanyMemberApiKickMyCompanyAdministratorAsyncWithHttpInfo(adminMemberId); } /// /// /// /// Thrown when fails to make API call /// 被取消企业管理员的成员Id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiKickMyCompanyAdministratorAsyncWithHttpInfo (long? adminMemberId) { // verify the required parameter 'adminMemberId' is set if (adminMemberId == null) throw new ApiException(400, "Missing required parameter 'adminMemberId' when calling CompanyMemberApiApi->CompanyMemberApiKickMyCompanyAdministrator"); var localVarPath = "/v1/myCompany/_kickAdministrator/{adminMemberId}"; 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("CompanyMemberApiKickMyCompanyAdministrator", 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 CompanyMemberApiLeave () { CompanyMemberApiLeaveWithHttpInfo(); } /// /// /// /// Thrown when fails to make API call /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiLeaveWithHttpInfo () { var localVarPath = "/v1/companyMembers/_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("CompanyMemberApiLeave", 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 CompanyMemberApiLeaveAsync () { await CompanyMemberApiLeaveAsyncWithHttpInfo(); } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiLeaveAsyncWithHttpInfo () { var localVarPath = "/v1/companyMembers/_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("CompanyMemberApiLeave", 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 /// CompanyMemberViewModel public CompanyMemberViewModel CompanyMemberApiMyCompanyMember () { ApiResponse localVarResponse = CompanyMemberApiMyCompanyMemberWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// ApiResponse of CompanyMemberViewModel public ApiResponse< CompanyMemberViewModel > CompanyMemberApiMyCompanyMemberWithHttpInfo () { var localVarPath = "/v1/myCompany/myMember"; 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("CompanyMemberApiMyCompanyMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberViewModel) Configuration.ApiClient.Deserialize(localVarResponse.Content.ReadAsStringAsync().Result, typeof(CompanyMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// Task of CompanyMemberViewModel public async System.Threading.Tasks.Task CompanyMemberApiMyCompanyMemberAsync () { ApiResponse localVarResponse = await CompanyMemberApiMyCompanyMemberAsyncWithHttpInfo(); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// Task of ApiResponse (CompanyMemberViewModel) public async System.Threading.Tasks.Task> CompanyMemberApiMyCompanyMemberAsyncWithHttpInfo () { var localVarPath = "/v1/myCompany/myMember"; 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("CompanyMemberApiMyCompanyMember", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), (CompanyMemberViewModel) Configuration.ApiClient.Deserialize(await localVarResponse.Content.ReadAsStringAsync(), typeof(CompanyMemberViewModel))); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// public void CompanyMemberApiRejectApplyRequest (long? applyRequestId) { CompanyMemberApiRejectApplyRequestWithHttpInfo(applyRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiRejectApplyRequestWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiRejectApplyRequest"); var localVarPath = "/v1/companyMembers/_rejectApplyRequest/{applyRequestId}"; 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("CompanyMemberApiRejectApplyRequest", 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 CompanyMemberApiRejectApplyRequestAsync (long? applyRequestId) { await CompanyMemberApiRejectApplyRequestAsyncWithHttpInfo(applyRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiRejectApplyRequestAsyncWithHttpInfo (long? applyRequestId) { // verify the required parameter 'applyRequestId' is set if (applyRequestId == null) throw new ApiException(400, "Missing required parameter 'applyRequestId' when calling CompanyMemberApiApi->CompanyMemberApiRejectApplyRequest"); var localVarPath = "/v1/companyMembers/_rejectApplyRequest/{applyRequestId}"; 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("CompanyMemberApiRejectApplyRequest", 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 CompanyMemberApiRejectInviteRequest (long? inviteRequestId) { CompanyMemberApiRejectInviteRequestWithHttpInfo(inviteRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiRejectInviteRequestWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiRejectInviteRequest"); var localVarPath = "/v1/companyMembers/_rejectInviteRequest/{inviteRequestId}"; 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("CompanyMemberApiRejectInviteRequest", 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 CompanyMemberApiRejectInviteRequestAsync (long? inviteRequestId) { await CompanyMemberApiRejectInviteRequestAsyncWithHttpInfo(inviteRequestId); } /// /// /// /// Thrown when fails to make API call /// 加入企业请求id /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiRejectInviteRequestAsyncWithHttpInfo (long? inviteRequestId) { // verify the required parameter 'inviteRequestId' is set if (inviteRequestId == null) throw new ApiException(400, "Missing required parameter 'inviteRequestId' when calling CompanyMemberApiApi->CompanyMemberApiRejectInviteRequest"); var localVarPath = "/v1/companyMembers/_rejectInviteRequest/{inviteRequestId}"; 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("CompanyMemberApiRejectInviteRequest", 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 ) /// List<CompanyMemberViewModel> public List CompanyMemberApiSearchCompanyMembers (string q = null) { ApiResponse> localVarResponse = CompanyMemberApiSearchCompanyMembersWithHttpInfo(q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// ApiResponse of List<CompanyMemberViewModel> public ApiResponse< List > CompanyMemberApiSearchCompanyMembersWithHttpInfo (string q = null) { var localVarPath = "/v1/companyMembers/_search"; 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 // 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("CompanyMemberApiSearchCompanyMembers", 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 ) /// Task of List<CompanyMemberViewModel> public async System.Threading.Tasks.Task> CompanyMemberApiSearchCompanyMembersAsync (string q = null) { ApiResponse> localVarResponse = await CompanyMemberApiSearchCompanyMembersAsyncWithHttpInfo(q); return localVarResponse.Data; } /// /// /// /// Thrown when fails to make API call /// (optional, default to ) /// Task of ApiResponse (List<CompanyMemberViewModel>) public async System.Threading.Tasks.Task>> CompanyMemberApiSearchCompanyMembersAsyncWithHttpInfo (string q = null) { var localVarPath = "/v1/companyMembers/_search"; 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 // 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("CompanyMemberApiSearchCompanyMembers", 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 CompanyMemberApiTransferMainAdmin (long? companyMemberId) { CompanyMemberApiTransferMainAdminWithHttpInfo(companyMemberId); } /// /// /// /// Thrown when fails to make API call /// /// ApiResponse of Object(void) public ApiResponse CompanyMemberApiTransferMainAdminWithHttpInfo (long? companyMemberId) { // verify the required parameter 'companyMemberId' is set if (companyMemberId == null) throw new ApiException(400, "Missing required parameter 'companyMemberId' when calling CompanyMemberApiApi->CompanyMemberApiTransferMainAdmin"); var localVarPath = "/v1/myCompany/_transferMainAdmin/{companyMemberId}"; 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("CompanyMemberApiTransferMainAdmin", 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 CompanyMemberApiTransferMainAdminAsync (long? companyMemberId) { await CompanyMemberApiTransferMainAdminAsyncWithHttpInfo(companyMemberId); } /// /// /// /// Thrown when fails to make API call /// /// Task of ApiResponse public async System.Threading.Tasks.Task> CompanyMemberApiTransferMainAdminAsyncWithHttpInfo (long? companyMemberId) { // verify the required parameter 'companyMemberId' is set if (companyMemberId == null) throw new ApiException(400, "Missing required parameter 'companyMemberId' when calling CompanyMemberApiApi->CompanyMemberApiTransferMainAdmin"); var localVarPath = "/v1/myCompany/_transferMainAdmin/{companyMemberId}"; 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("CompanyMemberApiTransferMainAdmin", localVarResponse); if (exception != null) throw exception; } return new ApiResponse(localVarStatusCode, localVarResponse.Headers.ToDictionary(x => x.Key, x => x.Value.ToString()), null); } } }