X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2Fhighlevel%2FHighLevelResult.java;h=5975394612f9b90b3c65f5ce1df121b55640d449;hb=6026f491a483495b8ce38603a3085d26d5b58181;hp=3be5b2cbab6eed2bc471b9264149b35d89372bc6;hpb=fdef33f54a71c55f3c3af626a5daf4c2ae517471;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelResult.java b/src/net/pterodactylus/fcp/highlevel/HighLevelResult.java index 3be5b2c..5975394 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelResult.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelResult.java @@ -27,10 +27,32 @@ package net.pterodactylus.fcp.highlevel; */ public abstract class HighLevelResult { + /** The identifier of the request. */ + private final String identifier; + /** Whether the operation failed. */ private boolean failed; /** + * Package-private constructor. + * + * @param identifier + * The identifier of the request + */ + HighLevelResult(String identifier) { + this.identifier = identifier; + } + + /** + * Returns the identifier of the underlying request. + * + * @return The identifier of the request + */ + public String getIdentifier() { + return identifier; + } + + /** * Returns whether the operation failed. * * @return true if the operation failed, false