*/
@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) {
/**
* Event that signals that a new post was found.
*/
-data class NewPostFoundEvent(val post: Post) {
-
- @Deprecated(message = "will go away", replaceWith = ReplaceWith("post"))
- fun post() = post
-
-}
+data class NewPostFoundEvent(val post: Post)
/**
* Event that signals that a new [PostReply] was found.
*/
-data class NewPostReplyFoundEvent(val postReply: PostReply) {
-
- @Deprecated(message = "will go away", replaceWith = ReplaceWith("postReply"))
- fun postReply() = postReply
-
-}
+data class NewPostReplyFoundEvent(val postReply: PostReply)
/**
* Event that signals that a [Post] was removed.
*/
-data class PostRemovedEvent(val post: Post) {
-
- @Deprecated(message = "will go away", replaceWith = ReplaceWith("post"))
- fun post() = post
-
-}
+data class PostRemovedEvent(val post: Post)
mismatchDescription.appendText("is not PostRemovedEvent");
return false;
}
- if (((PostRemovedEvent) item).post() != post) {
- mismatchDescription.appendText("post is ").appendValue(((PostRemovedEvent) item).post());
+ if (((PostRemovedEvent) item).getPost() != post) {
+ mismatchDescription.appendText("post is ").appendValue(((PostRemovedEvent) item).getPost());
return false;
}
return true;