package api.torrents.artist;

import java.util.List;

/**
 * The Class TorrentGroup.
 * 
 * @author Gwindow
 */
public class TorrentGroup {

	/** The group catalogue number. */
	private String groupCatalogueNumber;

	/** The group id. */
	private Number groupId;

	/** The group name. */
	private String groupName;

	/** The group record label. */
	private String groupRecordLabel;

	/** The group vanity house. */
	private boolean groupVanityHouse;

	/** The group year. */
	private Number groupYear;

	/** The is bookmarked. */
	private boolean isBookmarked;

	/** The release type. */
	private Number releaseType;

	/** The tags. */
	private List<String> tags;

	/** The torrent. */
	private List<Torrent> torrent;

	/**
	 * Gets the group catalogue number.
	 * 
	 * @return the group catalogue number
	 */
	public String getGroupCatalogueNumber() {
		return this.groupCatalogueNumber;
	}

	/**
	 * Gets the group id.
	 * 
	 * @return the group id
	 */
	public Number getGroupId() {
		return this.groupId;
	}

	/**
	 * Gets the group name.
	 * 
	 * @return the group name
	 */
	public String getGroupName() {
		return this.groupName;
	}

	/**
	 * Gets the group record label.
	 * 
	 * @return the group record label
	 */
	public String getGroupRecordLabel() {
		return this.groupRecordLabel;
	}

	/**
	 * Checks if is group vanity house.
	 * 
	 * @return true, if is group vanity house
	 */
	public boolean isGroupVanityHouse() {
		return this.groupVanityHouse;
	}

	/**
	 * Gets the group year.
	 * 
	 * @return the group year
	 */
	public Number getGroupYear() {
		return this.groupYear;
	}

	/**
	 * Checks if is bookmarked.
	 * 
	 * @return true, if is bookmarked
	 */
	public boolean isBookmarked() {
		return this.isBookmarked;
	}

	/**
	 * Gets the release type.
	 * 
	 * @return the release type
	 */
	public String getReleaseType() {
		if (releaseType.toString().equalsIgnoreCase("1"))
			return "Album";
		else if (releaseType.toString().equalsIgnoreCase("3"))
			return "Soundtrack";
		else if (releaseType.toString().equalsIgnoreCase("5"))
			return "EP";
		else if (releaseType.toString().equalsIgnoreCase("6"))
			return "Anthology";
		else if (releaseType.toString().equalsIgnoreCase("7"))
			return "Compilation";
		else if (releaseType.toString().equalsIgnoreCase("9"))
			return "Single";
		else if (releaseType.toString().equalsIgnoreCase("11"))
			return "Live Album";
		else if (releaseType.toString().equalsIgnoreCase("13"))
			return "Remix";
		else if (releaseType.toString().equalsIgnoreCase("14"))
			return "Bootleg";
		else if (releaseType.toString().equalsIgnoreCase("15"))
			return "Interview";
		else if (releaseType.toString().equalsIgnoreCase("16"))
			return "Mixtape";
		else if (releaseType.toString().equalsIgnoreCase("21"))
			return "Unknown";
		else
			return "API Error";
	}

	/**
	 * Gets the tags.
	 * 
	 * @return the tags
	 */
	public List<String> getTags() {
		return this.tags;
	}

	/**
	 * Gets the torrents.
	 * 
	 * @return the torrents
	 */
	public List<Torrent> getTorrents() {
		return this.torrent;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Torrentgroup [getGroupCatalogueNumber=" + getGroupCatalogueNumber() + ", getGroupId=" + getGroupId()
				+ ", getGroupName=" + getGroupName() + ", getGroupRecordLabel=" + getGroupRecordLabel()
				+ ", getGroupVanityHouse=" + isGroupVanityHouse() + ", getGroupYear=" + getGroupYear() + ", isBookmarked="
				+ isBookmarked() + ", getreleaseType.toString()=" + getReleaseType() + ", getTags=" + getTags()
				+ ", getTorrents=" + getTorrents() + "]";
	}
}

@@ -376,16 +376,90 @@
 Label;%0A%0A
+%09/**%0A%09 * The image for the torrent group%0A%09 */%0A%09private String wikiImage;%0A%0A
 %09/** The
@@ -1362,24 +1362,157 @@
 dLabel;%0A%09%7D%0A%0A
+%09/**%0A%09 * Get the torrent group image%0A%09 *%0A%09 * @return torrent group image%0A%09 */%0A%09public String getWikiImage()%7B%0A%09%09return wikiImage;%0A%09%7D%0A%0A
 %09/**%0A%09 * Che
@@ -3571,25 +3571,58 @@
 dLabel()%0A%09%09%09
-%09
++ %22, wikiImage=%22 + getWikiImage() 
 + %22, getGrou

Add support for getting artist torrent album art