mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Broadcast an event when an author's rating changes.
This commit is contained in:
23
api/net/sf/briar/api/db/event/RatingChangedEvent.java
Normal file
23
api/net/sf/briar/api/db/event/RatingChangedEvent.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package net.sf.briar.api.db.event;
|
||||
|
||||
import net.sf.briar.api.Rating;
|
||||
import net.sf.briar.api.protocol.AuthorId;
|
||||
|
||||
public class RatingChangedEvent extends DatabaseEvent {
|
||||
|
||||
private final AuthorId author;
|
||||
private final Rating rating;
|
||||
|
||||
public RatingChangedEvent(AuthorId author, Rating rating) {
|
||||
this.author = author;
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
public AuthorId getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public Rating getRating() {
|
||||
return rating;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user