// Path: src/main/java/net/rithms/riot/api/endpoints/summoner/dto/Summoner.java
// public class Summoner extends Dto implements Serializable {
// 
// 	private static final long serialVersionUID = -8213488199644701555L;
// 
// 	private String accountId;
// 	private String id;
// 	private String puuid;
// 	private String name;
// 	private int profileIconId;
// 	private long revisionDate;
// 	private int summonerLevel;
// 
// 	public String getAccountId() {
// 		return accountId;
// 	}
// 
// 	public String getId() {
// 		return id;
// 	}
// 
// 	public String getPuuid() {
// 		return puuid;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public int getProfileIconId() {
// 		return profileIconId;
// 	}
// 
// 	public long getRevisionDate() {
// 		return revisionDate;
// 	}
// 
// 	public int getSummonerLevel() {
// 		return summonerLevel;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return getId() + ": " + getName();
// 	}
// }


import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.logging.Level;
import net.rithms.riot.api.ApiConfig;
import net.rithms.riot.api.RiotApi;
import net.rithms.riot.api.endpoints.summoner.SummonerApiMethod;
import net.rithms.riot.api.endpoints.summoner.dto.Summoner;
import net.rithms.riot.constant.Platform;
import net.rithms.util.RiotApiUtil;

/*
 * Copyright 2016 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.
 */

package net.rithms.riot.api.endpoints.summoner.methods;



public class GetSummonerByName extends SummonerApiMethod {

	public GetSummonerByName(ApiConfig config, Platform platform, String summonerName) {
		super(config);
		setPlatform(platform);
		summonerName = RiotApiUtil.normalizeSummonerName(summonerName);

// Path: src/main/java/net/rithms/riot/api/endpoints/summoner/dto/Summoner.java
// public class Summoner extends Dto implements Serializable {
// 
// 	private static final long serialVersionUID = -8213488199644701555L;
// 
// 	private String accountId;
// 	private String id;
// 	private String puuid;
// 	private String name;
// 	private int profileIconId;
// 	private long revisionDate;
// 	private int summonerLevel;
// 
// 	public String getAccountId() {
// 		return accountId;
// 	}
// 
// 	public String getId() {
// 		return id;
// 	}
// 
// 	public String getPuuid() {
// 		return puuid;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public int getProfileIconId() {
// 		return profileIconId;
// 	}
// 
// 	public long getRevisionDate() {
// 		return revisionDate;
// 	}
// 
// 	public int getSummonerLevel() {
// 		return summonerLevel;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return getId() + ": " + getName();
// 	}
// }


// Path: src/main/java/net/rithms/riot/api/endpoints/summoner/methods/GetSummonerByName.java
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.logging.Level;
import net.rithms.riot.api.ApiConfig;
import net.rithms.riot.api.RiotApi;
import net.rithms.riot.api.endpoints.summoner.SummonerApiMethod;
import net.rithms.riot.api.endpoints.summoner.dto.Summoner;
import net.rithms.riot.constant.Platform;
import net.rithms.util.RiotApiUtil;

/*
 * Copyright 2016 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.
 */

package net.rithms.riot.api.endpoints.summoner.methods;



public class GetSummonerByName extends SummonerApiMethod {

	public GetSummonerByName(ApiConfig config, Platform platform, String summonerName) {
		super(config);
		setPlatform(platform);
		summonerName = RiotApiUtil.normalizeSummonerName(summonerName);

		setReturnType(Summoner.class);
