Broadcast an event when an author's rating changes.

This commit is contained in:
akwizgran
2011-10-26 15:40:38 +01:00
parent 097d11f471
commit 94722a9f2a
3 changed files with 50 additions and 7 deletions

View 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;
}
}