use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class GetTranscriptionJobResultJsonUnmarshaller method unmarshall.
public GetTranscriptionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {
GetTranscriptionJobResult getTranscriptionJobResult = new GetTranscriptionJobResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("TranscriptionJob")) {
getTranscriptionJobResult.setTranscriptionJob(TranscriptionJobJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return getTranscriptionJobResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class GetVocabularyResultJsonUnmarshaller method unmarshall.
public GetVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {
GetVocabularyResult getVocabularyResult = new GetVocabularyResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("VocabularyName")) {
getVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LanguageCode")) {
getVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("VocabularyState")) {
getVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LastModifiedTime")) {
getVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("FailureReason")) {
getVocabularyResult.setFailureReason(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("DownloadUri")) {
getVocabularyResult.setDownloadUri(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return getVocabularyResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ListTranscriptionJobsResultJsonUnmarshaller method unmarshall.
public ListTranscriptionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListTranscriptionJobsResult listTranscriptionJobsResult = new ListTranscriptionJobsResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Status")) {
listTranscriptionJobsResult.setStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("NextToken")) {
listTranscriptionJobsResult.setNextToken(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("TranscriptionJobSummaries")) {
listTranscriptionJobsResult.setTranscriptionJobSummaries(new ListUnmarshaller<TranscriptionJobSummary>(TranscriptionJobSummaryJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return listTranscriptionJobsResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class MediaJsonUnmarshaller method unmarshall.
public Media unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
Media media = new Media();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("MediaFileUri")) {
media.setMediaFileUri(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("RedactedMediaFileUri")) {
media.setRedactedMediaFileUri(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return media;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ListCallAnalyticsCategoriesResultJsonUnmarshaller method unmarshall.
public ListCallAnalyticsCategoriesResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListCallAnalyticsCategoriesResult listCallAnalyticsCategoriesResult = new ListCallAnalyticsCategoriesResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("NextToken")) {
listCallAnalyticsCategoriesResult.setNextToken(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Categories")) {
listCallAnalyticsCategoriesResult.setCategories(new ListUnmarshaller<CategoryProperties>(CategoryPropertiesJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return listCallAnalyticsCategoriesResult;
}
Aggregations