blob: 88a82fd7f505eda40c50707eec74344aa2ceaafe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
package org.wordpress.android.ui.comments;
import org.wordpress.android.models.CommentList;
import org.wordpress.android.models.CommentStatus;
class CommentEvents {
public static class CommentsBatchModerationFinishedEvent {
private final CommentList mComments;
private final boolean mIsDeleted;
public CommentsBatchModerationFinishedEvent(CommentList comments, boolean isDeleted) {
mComments = comments;
mIsDeleted = isDeleted;
}
public CommentList getComments() {
return mComments;
}
public boolean isDeleted() {
return mIsDeleted;
}
}
public static class CommentModerationFinishedEvent {
private final boolean mIsSuccess;
private final boolean mIsCommentsRefreshRequired;
private final long mCommentId;
private final CommentStatus mNewStatus;
public CommentModerationFinishedEvent(boolean isSuccess, boolean isCommentsRefreshRequired, long commentId, CommentStatus newStatus) {
mIsSuccess = isSuccess;
mIsCommentsRefreshRequired = isCommentsRefreshRequired;
mCommentId = commentId;
mNewStatus = newStatus;
}
public boolean isSuccess() {
return mIsSuccess;
}
public boolean isCommentsRefreshRequired() {
return mIsCommentsRefreshRequired;
}
public long getCommentId() {
return mCommentId;
}
public CommentStatus getNewStatus() {
return mNewStatus;
}
}
}
|