com.bimface.sdk.service.ClashDetectiveService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bimface-java-sdk Show documentation
Show all versions of bimface-java-sdk Show documentation
Bimface provide the required call java sdk.
The newest version!
package com.bimface.sdk.service;
import com.bimface.api.bean.request.clashDetective.ClashDetectiveRequest;
import com.bimface.api.bean.response.clashDetective.ClashDetectiveList;
import com.bimface.api.bean.response.clashDetective.ClashDetectiveResponse;
import com.bimface.exception.BimfaceException;
import com.bimface.sdk.client.ApiClient;
import com.bimface.sdk.config.Config;
import com.bimface.sdk.config.Endpoint;
/**
* Created by xufx on 2022/11/15 15:13
*/
public class ClashDetectiveService {
private ApiClient apiClient;
private AccessTokenService accessTokenService;
public ClashDetectiveService(Endpoint endpoint, AccessTokenService accessTokenService) {
this(endpoint, null, accessTokenService);
}
public ClashDetectiveService(Endpoint endpoint, Config config, AccessTokenService accessTokenService) {
this.apiClient = ApiClient.getApiClient(endpoint.getApiHost(), config);
this.accessTokenService = accessTokenService;
}
public ClashDetectiveResponse createClashDetective(ClashDetectiveRequest request) throws BimfaceException {
return apiClient.createClashDetective(request, accessTokenService.getAccessToken());
}
public ClashDetectiveResponse queryClashDetective(Long clashDetectiveId) throws BimfaceException{
return apiClient.queryClashDetective(clashDetectiveId, accessTokenService.getAccessToken());
}
public ClashDetectiveList queryClashDetectiveByModelId(Long fileId, Long integrateId) throws BimfaceException {
return apiClient.queryClashDetectiveByModelId(fileId, integrateId, accessTokenService.getAccessToken());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy