Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.blazebit.query.connector.kandji.api;
import com.blazebit.query.connector.kandji.invoker.ApiException;
import com.blazebit.query.connector.kandji.invoker.ApiClient;
import com.blazebit.query.connector.kandji.invoker.ApiResponse;
import com.blazebit.query.connector.kandji.invoker.Configuration;
import com.blazebit.query.connector.kandji.invoker.Pair;
import jakarta.ws.rs.core.GenericType;
import com.blazebit.query.connector.kandji.model.EnableLostModeRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-04-30T07:19:31.168100307Z[Etc/UTC]", comments = "Generator version: 7.10.0")
public class LostModeApi {
private ApiClient apiClient;
public LostModeApi() {
this(Configuration.getDefaultApiClient());
}
public LostModeApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get the API client
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API client
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Disable Lost Mode
* This command will send a request to turn off lost mode on iOS and iPadOS. If the command is already pending, the message \"_Disable lost mode is already pending for this device._\" will be in the response.
* @param deviceId (required)
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Disable Lost Mode
-
*/
public void disableLostMode(String deviceId) throws ApiException {
disableLostModeWithHttpInfo(deviceId);
}
/**
* Disable Lost Mode
* This command will send a request to turn off lost mode on iOS and iPadOS. If the command is already pending, the message \"_Disable lost mode is already pending for this device._\" will be in the response.
* @param deviceId (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Disable Lost Mode
-
*/
public ApiResponse disableLostModeWithHttpInfo(String deviceId) throws ApiException {
// Check required parameters
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling disableLostMode");
}
// Path parameters
String localVarPath = "/api/v1/devices/{device_id}/action/disablelostmode"
.replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("text/plain");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
return apiClient.invokeAPI("LostModeApi.disableLostMode", localVarPath, "POST", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, null, false);
}
/**
* Enable Lost Mode
* This endpoint sends an MDM command to remotely turn on lost mode on iOS and iPadOS. Optionally, a JSON payload can be sent in the request to set a lock message, phone number, and footnote on the target device.
* @param deviceId (required)
* @param enableLostModeRequest (optional)
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Enable Lost Mode
-
*/
public void enableLostMode(String deviceId, EnableLostModeRequest enableLostModeRequest) throws ApiException {
enableLostModeWithHttpInfo(deviceId, enableLostModeRequest);
}
/**
* Enable Lost Mode
* This endpoint sends an MDM command to remotely turn on lost mode on iOS and iPadOS. Optionally, a JSON payload can be sent in the request to set a lock message, phone number, and footnote on the target device.
* @param deviceId (required)
* @param enableLostModeRequest (optional)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Enable Lost Mode
-
*/
public ApiResponse enableLostModeWithHttpInfo(String deviceId, EnableLostModeRequest enableLostModeRequest) throws ApiException {
// Check required parameters
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling enableLostMode");
}
// Path parameters
String localVarPath = "/api/v1/devices/{device_id}/action/enablelostmode"
.replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("text/plain");
String localVarContentType = apiClient.selectHeaderContentType("application/json");
String[] localVarAuthNames = new String[] {"bearerAuth"};
return apiClient.invokeAPI("LostModeApi.enableLostMode", localVarPath, "POST", new ArrayList<>(), enableLostModeRequest,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, null, false);
}
/**
* Play Lost Mode Sound
* This command will tell the target iOS or iPadOS device to play the lost mode sound. **Note**: The Lost Mode sound will play for 2 minutes, even if the device is in silent mode. Anyone finding the device can silence the sound by pressing any of its side buttons.
* @param deviceId (required)
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Play Lost Mode Sound
-
*/
public void playLostModeSound(String deviceId) throws ApiException {
playLostModeSoundWithHttpInfo(deviceId);
}
/**
* Play Lost Mode Sound
* This command will tell the target iOS or iPadOS device to play the lost mode sound. **Note**: The Lost Mode sound will play for 2 minutes, even if the device is in silent mode. Anyone finding the device can silence the sound by pressing any of its side buttons.
* @param deviceId (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Play Lost Mode Sound
-
*/
public ApiResponse playLostModeSoundWithHttpInfo(String deviceId) throws ApiException {
// Check required parameters
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling playLostModeSound");
}
// Path parameters
String localVarPath = "/api/v1/devices/{device_id}/action/playlostmodesound"
.replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("text/plain");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
return apiClient.invokeAPI("LostModeApi.playLostModeSound", localVarPath, "POST", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, null, false);
}
/**
* Update Location
* This endpoint sends an MDM command to update the location data on iOS and iPadOS.
* @param deviceId (required)
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Update Location
-
*/
public void updateLocation(String deviceId) throws ApiException {
updateLocationWithHttpInfo(deviceId);
}
/**
* Update Location
* This endpoint sends an MDM command to update the location data on iOS and iPadOS.
* @param deviceId (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
Response Details
Status Code
Description
Response Headers
200
Update Location
-
*/
public ApiResponse updateLocationWithHttpInfo(String deviceId) throws ApiException {
// Check required parameters
if (deviceId == null) {
throw new ApiException(400, "Missing the required parameter 'deviceId' when calling updateLocation");
}
// Path parameters
String localVarPath = "/api/v1/devices/{device_id}/action/updatelocation"
.replaceAll("\\{device_id}", apiClient.escapeString(deviceId.toString()));
String localVarAccept = apiClient.selectHeaderAccept("text/plain");
String localVarContentType = apiClient.selectHeaderContentType();
String[] localVarAuthNames = new String[] {"bearerAuth"};
return apiClient.invokeAPI("LostModeApi.updateLocation", localVarPath, "POST", new ArrayList<>(), null,
new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType,
localVarAuthNames, null, false);
}
}