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;
	}
}

@@ -57,16 +57,68 @@
 .UUID;%0A%0A
+import com.google.gson.annotations.SerializedName;%0A%0A
 /**%0A * A
@@ -316,16 +316,47 @@
 o.%0A%09 */%0A
+%09@SerializedName(%22sourceuuid%22)%0A
 %09private

Fix name of source UUID attribute