X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2Fevent%2FSoneInsertedEvent.java;h=3f606bad3033a8b87cd01f3b9eeb1ba5bf0f8d89;hp=8a4280df244e7cc67e753bcfa75f3fe7b02d4551;hb=62573c314957b1851f4fbe693b8746686caa940a;hpb=f35aa413bce1d18c6f822719f7864ea6838cd043 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..3f606ba 100644 --- a/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java +++ b/src/main/java/net/pterodactylus/sone/core/event/SoneInsertedEvent.java @@ -1,5 +1,5 @@ /* - * Sone - SoneInsertedEvent.java - Copyright © 2013 David Roden + * Sone - SoneInsertedEvent.java - Copyright © 2013–2016 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,38 +21,24 @@ import net.pterodactylus.sone.data.Sone; /** * Event that signals that a {@link Sone} was inserted. - * - * @author David ‘Bombe’ Roden */ 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; + } + }