package com.alexrnl.request.shows;

import java.util.HashMap;
import java.util.Map;

import com.alexrnl.request.Request;
import com.alexrnl.request.Verb;

/**
 * Archive a show in the logged member account.<br />
 * @author Alex
 */
public class ShowArchive extends Request {
	
	/** Address of the method */
	private static final String	ADDRESS			= "/shows/archive";
	/** Name of the id parameter */
	private static final String	PARAMETER_ID	= "id";
	
	/** */
	private final String		id;
	
	/**
	 * Constructor #1.<br />
	 * @param id
	 *        the id of the show to archive.
	 */
	public ShowArchive (final String id) {
		super(Verb.GET, ADDRESS);
		this.id = id;
	}
	
	/**
	 * Return the attribute id.
	 * @return the attribute id.
	 */
	public String getId () {
		return id;
	}
	
	@Override
	public Map<String, String> getParameters () {
		final Map<String, String> parameters = new HashMap<>();
		parameters.put(PARAMETER_ID, getId());
		return parameters;
	}
	
}

@@ -449,16 +449,46 @@
 ;%0A%09%0A%09/**
+ The id of the show to archive
  */%0A%09pri
@@ -498,22 +498,23 @@
 e final 
-String
+Integer
 %09%09id;%0A%09%0A
@@ -632,22 +632,23 @@
  (final 
-String
+Integer
  id) %7B%0A%09
@@ -772,22 +772,23 @@
 %09public 
-String
+Integer
  getId (
@@ -925,16 +925,16 @@
 ap%3C%3E();%0A
-
 %09%09parame
@@ -963,16 +963,27 @@
  getId()
+.toString()
 );%0A%09%09ret

Make the id of the show an Integer