use of com.willshex.blogwt.shared.api.datatype.GeneratedDownload in project blogwt by billy1380.
the class DeleteGeneratedDownloadsRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("downloads")) {
JsonElement jsonDownloads = jsonObject.get("downloads");
if (jsonDownloads != null) {
downloads = new ArrayList<GeneratedDownload>();
GeneratedDownload item = null;
for (int i = 0; i < jsonDownloads.getAsJsonArray().size(); i++) {
if (jsonDownloads.getAsJsonArray().get(i) != null) {
(item = new GeneratedDownload()).fromJson(jsonDownloads.getAsJsonArray().get(i).getAsJsonObject());
downloads.add(item);
}
}
}
}
}
use of com.willshex.blogwt.shared.api.datatype.GeneratedDownload in project blogwt by billy1380.
the class GenerateDownloadRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("download")) {
JsonElement jsonDownload = jsonObject.get("download");
if (jsonDownload != null) {
download = new GeneratedDownload();
download.fromJson(jsonDownload.getAsJsonObject());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.GeneratedDownload in project blogwt by billy1380.
the class GenerateDownloadResponse method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("download")) {
JsonElement jsonDownload = jsonObject.get("download");
if (jsonDownload != null) {
download = new GeneratedDownload();
download.fromJson(jsonDownload.getAsJsonObject());
}
}
}
Aggregations