X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Ffcp%2FSentFeed.java;fp=src%2Fnet%2Fpterodactylus%2Ffcp%2FSentFeed.java;h=0000000000000000000000000000000000000000;hb=508624458578f01a393f8b44f32b98b40054fdc8;hp=eb7ca0a0dbc4349935a25de56fb5a1675e21a519;hpb=dd605aee444057a874fabf7fb0045b8448b0d1cd;p=jFCPlib.git diff --git a/src/net/pterodactylus/fcp/SentFeed.java b/src/net/pterodactylus/fcp/SentFeed.java deleted file mode 100644 index eb7ca0a..0000000 --- a/src/net/pterodactylus/fcp/SentFeed.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * jFCPlib - SentFeed.java - Copyright © 2009 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 - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -package net.pterodactylus.fcp; - -/** - * The “SentFeed” message signals that a feed was successfully sent to a peer. - * - * @author David ‘Bombe’ Roden <bombe@freenetproject.org> - */ -public class SentFeed extends BaseMessage { - - /** - * Creates a new “SentFeed” message from the given FCP message. - * - * @param fcpMessage - * The FCP message containing the “SentFeed” message - */ - public SentFeed(FcpMessage fcpMessage) { - super(fcpMessage); - } - - /** - * Returns the identifier of the sent feed. The identifier of this message - * matches the identifier that was given when a {@link SendBookmarkFeed}, - * {@link SendDownloadFeed}, or {@link SendTextFeed} command was created. - * - * @return The send feed’s identifier - */ - public String getIdentifier() { - return getField("Identifier"); - } - - /** - * Returns the node status of the peer. The node status is definied in - * {@code freenet.node.PeerManager}. - *

- *

    - *
  1. Connected
  2. - *
  3. Backed off
  4. - *
  5. Version too new
  6. - *
  7. Version too old
  8. - *
  9. Disconnected
  10. - *
  11. Never connected
  12. - *
  13. Disabled
  14. - *
  15. Bursting
  16. - *
  17. Listening
  18. - *
  19. Listening only
  20. - *
  21. Clock problem
  22. - *
  23. Connection error
  24. - *
  25. Disconnecting
  26. - *
  27. Routing disabled
  28. - *
- * - * @return The node’s status - */ - public int getNodeStatus() { - return FcpUtils.safeParseInt(getField("NodeStatus")); - } - -}