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=53fa9357741039d0c9f32802bbed3edfdfc3dbb7;hp=8a4280df244e7cc67e753bcfa75f3fe7b02d4551;hb=b4d2d68b5ea4f4edc7337f380cfe078756678126;hpb=6e9a43ccd93ae125720547c0fe421dc81a54ba90 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..53fa935 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–2019 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; + } + }