Package com.cloudtestapi.slot
Class SlotClient
- java.lang.Object
-
- com.cloudtestapi.common.AbstractClient
-
- com.cloudtestapi.slot.SlotClient
-
public class SlotClient extends AbstractClient
-
-
Field Summary
-
Fields inherited from class com.cloudtestapi.common.AbstractClient
gson, HTTP_RSP_OK
-
-
Constructor Summary
Constructors Constructor Description SlotClient(Credential credential)SlotClient(Credential credential, ClientProfile clientProfile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResignResultfetchResignResult(String slotOutAddr, String fileId)Query the re-signature status and obtain the re-signed ipa download addressStringresignIpa(String slotOutAddr, String fileUrl)IPA re-signatureSlotDeviceInfo[]slotListDevice(int[] phoneTypeList)Get a list of replaceable devicesSlotInfo[]slotListInfo(String slotOutAddr)slotListInfoModelInfo[]slotListModel(int[] phoneTypeList)Get a list of replaceable modelsvoidslotSwitchCancel(String slotOutAddr)Cancel device replacementvoidslotSwitchStart(String slotOutAddr, int modelId, int deviceId)Applying to replace a slot-bound device-
Methods inherited from class com.cloudtestapi.common.AbstractClient
getClientProfile, getCredential, getLogger, internalRequest, setClientProfile, setCredential, setLogger, setProfile
-
-
-
-
Constructor Detail
-
SlotClient
public SlotClient(Credential credential)
-
SlotClient
public SlotClient(Credential credential, ClientProfile clientProfile)
-
-
Method Detail
-
slotListInfo
public SlotInfo[] slotListInfo(String slotOutAddr) throws CloudTestSDKException
slotListInfo- Parameters:
slotOutAddr- slot address- Returns:
- SlotInfo[]
- Throws:
CloudTestSDKException- CloudTestSDKException
-
slotListModel
public ModelInfo[] slotListModel(int[] phoneTypeList) throws CloudTestSDKException
Get a list of replaceable models- Parameters:
phoneTypeList-- Returns:
- ModelInfo[]
- Throws:
CloudTestSDKException- CloudTestSDKException
-
slotListDevice
public SlotDeviceInfo[] slotListDevice(int[] phoneTypeList) throws CloudTestSDKException
Get a list of replaceable devices- Parameters:
phoneTypeList-- Returns:
- DeviceBasicInfo[]
- Throws:
CloudTestSDKException- CloudTestSDKException
-
slotSwitchStart
public void slotSwitchStart(String slotOutAddr, int modelId, int deviceId) throws CloudTestSDKException
Applying to replace a slot-bound device- Parameters:
slotOutAddr-modelId-deviceId-- Throws:
CloudTestSDKException- CloudTestSDKException
-
slotSwitchCancel
public void slotSwitchCancel(String slotOutAddr) throws CloudTestSDKException
Cancel device replacement- Parameters:
slotOutAddr-- Throws:
CloudTestSDKException- CloudTestSDKException
-
resignIpa
public String resignIpa(String slotOutAddr, String fileUrl) throws CloudTestSDKException
IPA re-signature- Parameters:
slotOutAddr-fileUrl-- Returns:
- file_id
- Throws:
CloudTestSDKException- CloudTestSDKException
-
fetchResignResult
public ResignResult fetchResignResult(String slotOutAddr, String fileId) throws CloudTestSDKException
Query the re-signature status and obtain the re-signed ipa download address- Parameters:
slotOutAddr-fileId-- Returns:
- ResignResult
- Throws:
CloudTestSDKException- CloudTestSDKException
-
-