|
|
Java-Quelltext |
1 |
MMessage("msent");
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »masterx« (4. August 2011, 19:34)
else if (opcode.equals(ReceiveOpcode.MSENT.getValue())) { // ... }
|
|
Java-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
/* Banana-Chat - The first Open Source Knuddels Emulator * Copyright (C) 2011 Flav <http://banana-coding.com> * * Diese Datei unterliegt dem Copyright von Banana-Coding und * darf verändert, aber weder in andere Projekte eingefügt noch * reproduziert werden. * * Der Emulator dient - sofern der Client nicht aus Eigenproduktion * stammt - nur zu Lernzwecken, das Hosten des originalen Clients * ist untersagt und wird der Knuddels GmbH gemeldet. */ package knuddels; /** * * @author Flav */ public enum ReceiveOpcode { EXCEPTION("1"), DISCONNECT("d"), CHAT("e"), PING("h"), POLL("iv"), LINK_CLICKED("j"), JOIN_CHANNEL("n"), Q_TOKEN("q"), REQUEST_USER_LIST("r"), HANDSHAKE("t"), REQUEST_HELP("u"), LEAVE_CHANNEL("w"), WHOIS("whois"), msent("msent"); static class MMessage { static String getValue() { throw new UnsupportedOperationException("Not yet implemented"); } public MMessage() { } } static class msent { public msent() { } } private String opcode; private ReceiveOpcode(String opcode) { this.opcode = opcode; } public String getValue() { return opcode; } } |
static class MMessage { static String getValue() { throw new UnsupportedOperationException("Not yet implemented"); } public MMessage() { } } static class msent { public msent() { } }
Das entfernst du aus dem Code.