package com.cardshifter.api.incoming;

import com.cardshifter.api.messages.Message;

public class LoginMessage extends Message {

	private String username;

	public LoginMessage() {
		this("");
	}
	
	public LoginMessage(String username) {
		super("login");
		this.username = username;
	}
	
	public String getUsername() {
		return username;
	}
	
}

@@ -82,121 +82,784 @@
 e;%0A%0A
-public class LoginMessage extends Message %7B%0A%0A%09private String username;%0A%0A%09public LoginMessage() %7B%0A%09%09this(%22%22);%0A%09%7D%0A%09
+/** %0A * Incoming login message.%0A * %3Cp%3E%0A * A login message from a client to add a user to the available users on the server.%0A * This login message is required before any other action or message can be performed between a client and a server.%0A * @author Simon Forsberg %0A */%0Apublic class LoginMessage extends Message %7B%0A%09%0A%09/** User name %3Cem%3Egenerally%3C/em%3E input by a client user. */%0A%09private String username;%0A%09%0A%09/** Constructor. (no params) */%0A%09public LoginMessage() %7B%0A%09%09this(%22%22);%0A%09%7D%0A%09%0A%09/** %0A%09 * Constructor.%0A%09 * @param   username  the incoming user name passed from client to server, not null%0A%09 * @example Message:  %3Ccode%3E%7B %22command%22:%22login%22,%22username%22:%22JohnDoe%22 %7D%3C/code%3E%0A%09 * @example Response: %3Ccode%3E%7B%22command%22:%22loginresponse%22,%22status%22:200,%22userId%22:6,%22message%22:%22OK%22%7D%3C/code%3E%0A%09 */
 %0A%09pu
@@ -946,16 +946,72 @@
 e;%0A%09%7D%0A%09%0A
+%09/** @return the user name passed to the constructor */%0A
 %09public 
@@ -1055,12 +1055,10 @@
 ame;%0A%09%7D%0A
-%09%0A
 %7D%0A

Update LoginMessage.java