use of com.willshex.blogwt.shared.api.datatype.Page in project blogwt by billy1380.
the class GetPageRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("page")) {
JsonElement jsonPage = jsonObject.get("page");
if (jsonPage != null) {
page = new Page();
page.fromJson(jsonPage.getAsJsonObject());
}
}
if (jsonObject.has("includePosts")) {
JsonElement jsonIncludePosts = jsonObject.get("includePosts");
if (jsonIncludePosts != null) {
includePosts = Boolean.valueOf(jsonIncludePosts.getAsBoolean());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.Page in project blogwt by billy1380.
the class UpdatePageResponse method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("page")) {
JsonElement jsonPage = jsonObject.get("page");
if (jsonPage != null) {
page = new Page();
page.fromJson(jsonPage.getAsJsonObject());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.Page in project blogwt by billy1380.
the class CreatePageRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("page")) {
JsonElement jsonPage = jsonObject.get("page");
if (jsonPage != null) {
page = new Page();
page.fromJson(jsonPage.getAsJsonObject());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.Page in project blogwt by billy1380.
the class CreatePageResponse method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("page")) {
JsonElement jsonPage = jsonObject.get("page");
if (jsonPage != null) {
page = new Page();
page.fromJson(jsonPage.getAsJsonObject());
}
}
}
use of com.willshex.blogwt.shared.api.datatype.Page in project blogwt by billy1380.
the class DeletePageRequest method fromJson.
@Override
public void fromJson(JsonObject jsonObject) {
super.fromJson(jsonObject);
if (jsonObject.has("page")) {
JsonElement jsonPage = jsonObject.get("page");
if (jsonPage != null) {
page = new Page();
page.fromJson(jsonPage.getAsJsonObject());
}
}
}
Aggregations