*/
@Subscribe
public void newPostFound(NewPostFoundEvent newPostFoundEvent) {
- Post post = newPostFoundEvent.post();
+ Post post = newPostFoundEvent.getPost();
boolean isLocal = post.getSone().isLocal();
if (isLocal) {
localPostNotification.add(post);
*/
@Subscribe
public void newReplyFound(NewPostReplyFoundEvent newPostReplyFoundEvent) {
- PostReply reply = newPostReplyFoundEvent.postReply();
+ PostReply reply = newPostReplyFoundEvent.getPostReply();
boolean isLocal = reply.getSone().isLocal();
if (isLocal) {
localReplyNotification.add(reply);
@Subscribe
public void postRemoved(PostRemovedEvent postRemovedEvent) {
- removePost(postRemovedEvent.post());
+ removePost(postRemovedEvent.getPost());
}
private void removePost(Post post) {
@Subscribe
public void replyRemoved(PostReplyRemovedEvent postReplyRemovedEvent) {
- removeReply(postReplyRemovedEvent.postReply());
+ removeReply(postReplyRemovedEvent.getPostReply());
}
private void removeReply(PostReply reply) {
*/
@Subscribe
public void updateFound(UpdateFoundEvent updateFoundEvent) {
- newVersionNotification.set("latestVersion", updateFoundEvent.version());
- newVersionNotification.set("latestEdition", updateFoundEvent.latestEdition());
- newVersionNotification.set("releaseTime", updateFoundEvent.releaseTime());
- newVersionNotification.set("disruptive", updateFoundEvent.disruptive());
+ newVersionNotification.set("latestVersion", updateFoundEvent.getVersion());
+ newVersionNotification.set("latestEdition", updateFoundEvent.getLatestEdition());
+ newVersionNotification.set("releaseTime", updateFoundEvent.getReleaseTime());
+ newVersionNotification.set("disruptive", updateFoundEvent.isDisruptive());
notificationManager.addNotification(newVersionNotification);
}