use of com.willshex.blogwt.client.api.blog.event.SetupBlogEventHandler.SetupBlogFailure in project blogwt by billy1380.
the class PropertyController method setupBlog.
public void setupBlog(List<Property> properties, List<User> users) {
final SetupBlogRequest input = ApiHelper.setAccessCode(new SetupBlogRequest()).properties(properties).users(users);
BlogService blogService = ApiHelper.createBlogClient();
blogService.setupBlog(input, new AsyncCallback<SetupBlogResponse>() {
@Override
public void onSuccess(SetupBlogResponse output) {
DefaultEventBus.get().fireEventFromSource(new SetupBlogSuccess(input, output), PropertyController.this);
}
@Override
public void onFailure(Throwable caught) {
DefaultEventBus.get().fireEventFromSource(new SetupBlogFailure(input, caught), PropertyController.this);
}
});
}
Aggregations