package edu.teco.dnd.network.messages;

import java.util.UUID;

/**
 * A Message that is sent as a Response for another Message.
 *
 * @author Philipp Adolf
 */
public abstract class Response extends Message {
	/**
	 * The UUID of the Message this is a response to.
	 */
	private final UUID sourceUUID;
	
	/**
	 * Initializes a new Response.
	 * 
	 * @param sourceUUID the UUID of the Message this is a response to
	 * @param uuid the UUID for this Message
	 */
	public Response(final UUID sourceUUID, final UUID uuid) {
		super(uuid);
		this.sourceUUID = sourceUUID;
	}
	
	/**
	 * Initializes a new Response.
	 * 
	 * @param sourceUUID the UUID of the Message this is a response to
	 */
	public Response(final UUID sourceUUID) {
		super();
		this.sourceUUID = sourceUUID;
	}
	
	/**
	 * Returns the UUID of the Message this is a response to.
	 * 
	 * @return the UUID of the Message this is a response to
	 */
	public UUID getSourceUUID() {
		return this.sourceUUID;
	}
}

package edu.teco.dnd.network.messages;

import java.util.UUID;

import com.google.gson.annotations.SerializedName;

/**
 * A Message that is sent as a Response for another Message.
 *
 * @author Philipp Adolf
 */
public abstract class Response extends Message {
	/**
	 * The UUID of the Message this is a response to.
	 */
	@SerializedName("sourceuuid")
	private final UUID sourceUUID;
	
	/**
	 * Initializes a new Response.
	 * 
	 * @param sourceUUID the UUID of the Message this is a response to
	 * @param uuid the UUID for this Message
	 */
	public Response(final UUID sourceUUID, final UUID uuid) {
		super(uuid);
		this.sourceUUID = sourceUUID;
	}
	
	/**
	 * Initializes a new Response.
	 * 
	 * @param sourceUUID the UUID of the Message this is a response to
	 */
	public Response(final UUID sourceUUID) {
		super();
		this.sourceUUID = sourceUUID;
	}
	
	/**
	 * Returns the UUID of the Message this is a response to.
	 * 
	 * @return the UUID of the Message this is a response to
	 */
	public UUID getSourceUUID() {
		return this.sourceUUID;
	}
}

Fix name of source UUID attribute
Fix name of source UUID attribute
