package at.ac.tuwien.softwarearchitecture.swazam.common.infos;

import java.io.Serializable;
import java.util.UUID;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 
 * Information needed for the billing process? To which client coins are added/removed
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ClientInfo")
public class ClientInfo implements Serializable{
	@XmlAttribute(name = "id", required = true)
	private int clientID;
	
	@XmlAttribute(name = "sessionkey")
	private UUID sessionKey;
	
	@XmlAttribute(name = "username")
	private String username;
	
	@XmlAttribute(name = "password")
	private String password;
	

	public UUID getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(UUID sessionKey) {
		this.sessionKey = sessionKey;
	}

	public int getClientID() {
		return clientID;
	}

	public void setClientID(int clientID) {
		this.clientID = clientID;
	}
	
	
}

@@ -787,16 +787,276 @@
 ord;%0A%09%0A%0A
+%09public String getUsername() %7B%0A%09%09return username;%0A%09%7D%0A%0A%09public void setUsername(String username) %7B%0A%09%09this.username = username;%0A%09%7D%0A%0A%09public String getPassword() %7B%0A%09%09return password;%0A%09%7D%0A%0A%09public void setPassword(String password) %7B%0A%09%09this.password = password;%0A%09%7D%0A%0A
 %09public 

update ClientInfo with username passwird attributes