X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2Fevent%2FSoneInsertedEvent.java;h=936a1340c1022697c14921997b1e3b2eea7d032a;hb=0e8f7804ce344bdd69f5ecc7febe25a60a53561d;hp=8a4280df244e7cc67e753bcfa75f3fe7b02d4551;hpb=f35aa413bce1d18c6f822719f7864ea6838cd043;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java b/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java index 8a4280d..936a134 100644 --- a/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java +++ b/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java @@ -26,33 +26,21 @@ import net.pterodactylus.sone.data.Sone; */ public class SoneInsertedEvent extends SoneEvent { - /** The duration of the insert. */ private final long insertDuration; + private final String insertFingerprint; - /** - * Creates a new “Sone was inserted” event. - * - * @param sone - * The Sone that was inserted - * @param insertDuration - * The duration of the insert (in milliseconds) - */ - public SoneInsertedEvent(Sone sone, long insertDuration) { + public SoneInsertedEvent(Sone sone, long insertDuration, String insertFingerprint) { super(sone); this.insertDuration = insertDuration; + this.insertFingerprint = insertFingerprint; } - // - // ACCESSORS - // - - /** - * Returns the duration of the insert. - * - * @return The duration of the insert (in milliseconds) - */ public long insertDuration() { return insertDuration; } + public String insertFingerprint() { + return insertFingerprint; + } + }