use of com.willshex.blogwt.shared.api.datatype.Post in project blogwt by billy1380.
the class GetRelatedPostsRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("post")) {
JsonElement jsonPost = jsonObject.get("post");
if (jsonPost != null) {
post = new Post();
post.fromJson(jsonPost.getAsJsonObject());
}
}
if (jsonObject.has("pager")) {
JsonElement jsonPager = jsonObject.get("pager");
if (jsonPager != null) {
pager = new Pager();
pager.fromJson(jsonPager.getAsJsonObject());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.Post in project blogwt by billy1380.
the class UpdatePostResponse method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("post")) {
JsonElement jsonPost = jsonObject.get("post");
if (jsonPost != null) {
post = new Post();
post.fromJson(jsonPost.getAsJsonObject());
}
}
}
Aggregations