package com.cardshifter.api.both;

import com.cardshifter.api.messages.Message;

public class ChatMessage extends Message {

	private int chatId;
	private String message;
	private String from;
	
	public ChatMessage() {
		this(0, "", "");
	}
	
	public ChatMessage(int chatId, String from, String message) {
		super("chat");
		this.chatId = chatId;
		this.from = from;
		this.message = message;
	}
	
	public int getChatId() {
		return chatId;
	}
	
	public String getFrom() {
		return from;
	}
	
	public String getMessage() {
		return message;
	}

	@Override
	public String toString() {
		return "ChatMessage [chatId=" + chatId + ", message=" + message
				+ ", from=" + from + "]";
	}
	
}

@@ -74,16 +74,184 @@
 ssage;%0A%0A
+/**%0A * Chat message in game lobby.%0A * %3Cp%3E%0A * These are messages printed to the game lobby which are visible to all users present at the time the message is posted.%0A */%0A
 public c
@@ -356,16 +356,49 @@
 from;%0A%09%0A
+%09/** Constructor. (no params) */%0A
 %09public 
@@ -432,24 +432,203 @@
 %22, %22%22);%0A%09%7D%0A%09
+/**%0A%09 * Constructor.%0A%09 * @param chatId  The Id of this chat message%0A%09 * @param from  The Id of the sender of this message%0A%09 * @param message  The content of this chat message%0A%09 */
 %0A%09public Cha
@@ -766,24 +766,67 @@
 essage;%0A%09%7D%0A%09
+/** @return  The Id of this chat message */
 %0A%09public int
@@ -857,24 +857,76 @@
 chatId;%0A%09%7D%0A%09
+/** @return  The If of the sender of this message */
 %0A%09public Str
@@ -960,16 +960,59 @@
 om;%0A%09%7D%0A%09
+/** @return  The content of this message */
 %0A%09public
@@ -1055,16 +1055,68 @@
 age;%0A%09%7D%0A
+%09/** @return  This message as converted to String */
 %0A%09@Overr

Update ChatMessage.java