use of com.microsoft.azure.sdk.iot.deps.serializer.JobPropertiesParser in project azure-iot-sdk-java by Azure.
the class RegistryManager method ProcessJobResponse.
private JobProperties ProcessJobResponse(HttpResponse response) throws IotHubException, JsonSyntaxException {
IotHubExceptionManager.httpResponseVerification(response);
String bodyStr = new String(response.getBody(), StandardCharsets.UTF_8);
return new JobProperties(new JobPropertiesParser(bodyStr));
}
use of com.microsoft.azure.sdk.iot.deps.serializer.JobPropertiesParser in project azure-iot-sdk-java by Azure.
the class JobProperties method toJobPropertiesParser.
/**
* Converts this into a JobPropertiesParser object that can be used for serialization and deserialization
* @return the converted JobPropertiesParser object
*/
JobPropertiesParser toJobPropertiesParser() {
// Codes_SRS_SERVICE_SDK_JAVA_JOB_PROPERTIES_34_002: [This method shall convert this into a JobPropertiesParser object and return it.]
JobPropertiesParser jobPropertiesParser = new JobPropertiesParser();
jobPropertiesParser.setEndTimeUtc(this.endTimeUtc);
jobPropertiesParser.setExcludeKeysInExport(this.excludeKeysInExport);
jobPropertiesParser.setFailureReason(this.failureReason);
jobPropertiesParser.setInputBlobContainerUri(this.inputBlobContainerUri);
jobPropertiesParser.setOutputBlobContainerUri(this.outputBlobContainerUri);
jobPropertiesParser.setStorageAuthenticationType(this.storageAuthenticationType);
jobPropertiesParser.setJobId(this.jobId);
jobPropertiesParser.setProgress(this.progress);
jobPropertiesParser.setStartTimeUtc(this.startTimeUtc);
jobPropertiesParser.setIdentity(this.identity);
if (this.status != null) {
jobPropertiesParser.setStatus(this.status.toString());
}
if (this.type != null) {
jobPropertiesParser.setType(this.type.toString().toLowerCase());
}
return jobPropertiesParser;
}
Aggregations