@@ -0,0 +1,866 @@
+import java.io.Serializable;%0A%0A/**%0A * Messages sent bu Socket,%0A * with message type and content.%0A */%0Apublic class Message implements Serializable %7B%0A    static final transient String LOGIN = %22LG%22;%0A    static final transient String CHAT  = %22CT%22;%0A%0A    private String type;%0A    private String content;%0A%0A    Message() %7B%7D%0A%0A    Message(String message) %7B%0A        fromString(message);%0A    %7D%0A%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(String type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public String getContent() %7B%0A        return content;%0A    %7D%0A%0A    public void setContent(String content) %7B%0A        this.content = content;%0A    %7D%0A%0A    public String toString() %7B%0A        return type + content;%0A    %7D%0A%0A    public void fromString(String message) %7B%0A        setType(message.substring(0, 2));%0A        setContent(message.substring(2));%0A    %7D%0A%7D%0A

Serialize Message as string