package constant;

import main.java.riotapi.RiotStringNotFound;

/*
 * Copyright 2014 Taylor Caldwell
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
	
public enum QueueType {
	    
		CUSTOM("Custom", 0),
		NORMAL_5x5_BLIND("Normal 5v5 Blind Pick", 2),
		BOT_5x5("Historical Summoner's Rift Coop vs AI", 7),
		BOT_5x5_INTRO("Summoner's Rift Coop vs AI Intro Bot", 31),
		BOT_5x5_BEGINNER("Summoner's Rift Coop vs AI Beginner Bot", 32),
		BOT_5x5_INTERMEDIATE("Historical Summoner's Rift Coop vs AI Intermediate Bot", 33),
		NORMAL_3x3("Normal 3v3", 8),
		NORMAL_5x5_DRAFT("Normal 5v5 Draft Pick", 14),
		ODIN_5x5_BLIND("Dominion 5v5 Blind Pick", 16),
		ODIN_5x5_DRAFT("Dominion 5v5 Draft Pick", 17),
		BOT_ODIN_5x5("Dominion Coop vs AI", 25),
		RANKED_SOLO_5x5("Ranked Solo 5v5", 4),
		RANKED_PREMADE_3x3("Ranked Premade 3v3", 9),
		RANKED_PREMADE_5x5("Ranked Premade 5v5", 6),
		RANKED_TEAM_3x3("Ranked Team 3v3", 41),
		RANKED_TEAM_5x5("Ranked Team 5v5", 42),
		BOT_TT_3x3("Twisted Treeline Coop vs AI", 52),
		GROUP_FINDER_5x5("Team Builder", 61),
		ARAM_5x5("ARAM", 65),
		ONEFORALL_5x5("One for All", 70),
        ONEFORALL_MIRRORMODE_5x5("One for All: Mirror Mode", 70),
		FIRSTBLOOD_1x1("Snowdown Showdown 1v1", 72),
		FIRSTBLOOD_2x2("Snowdown Showdown 2v2", 73),
		SR_6x6("Hexakill", 75),
		URF_5x5("Ultra Rapid Fire", 76),
		BOT_URF_5x5("Ultra Rapid Fire games played against AI", 83),
		NIGHTMARE_BOT_5x5_RANK1("Doom Bots Rank 1", 91),
		NIGHTMARE_BOT_5x5_RANK2("Doom Bots Rank 2", 92),
		NIGHTMARE_BOT_5x5_RANK5("Doom Bots Rank 5", 93),
		ASCENSION_5x5("Ascension", 96),
		HEXAKILL("Twisted Treeline 6x6 Hexakill", 98),
		KING_PORO_5x5("King Poro", 300),
		COUNTER_PICK("Nemesis Draft", 301);

	    private String name;
	    private int gameQueueConfigId;
	    
	    public static String getQueueNameByConfigId(int gameQueueConfigId) throws RiotStringNotFound {
	    	QueueType[] queueTypes = QueueType.values();
	    	for(QueueType queueType : queueTypes) {
	    		if(queueType.getGameQueueConfigId() == gameQueueConfigId) {
	    			return queueType.getName();
	    		}
	    	} throw new RiotStringNotFound("Could not find queue " + gameQueueConfigId);
	    }
	    
	    QueueType(String name, int gameQueueConfigId) {
	        this.name = name;
	        this.gameQueueConfigId = gameQueueConfigId;
	    }

	    public String getName() {
	        return name;
	    }	    
	    
	    public int getGameQueueConfigId() {
	    	return gameQueueConfigId;
	    }
	    
	    public String toString() {
	    	return name;
	    }
}

@@ -2139,16 +2139,64 @@
 %22, 98),%0A
+%09%09BILGEWATER_ARAM_5x5(%22Butcher's Bridge%22, 100),%0A
 %09%09KING_P
@@ -2255,18 +2255,66 @@
 raft%22, 3
-0
 1
+0),%0A%09%09BILGEWATER_5x5(%22Black Market Brawlers%22, 313
 );%0A%0A%09   

Add Bilgewater queues to queueType