package no.stelar7.api.l4j8.basic;

import no.stelar7.api.l4j8.basic.exceptions.APIUnsupportedActionException;

public class APICredentials
{
    private String lolAPIKey;
    private String TFTAPIKey;
    private String tournamentApiKey;
    
    /**
     * Instantiates new API credentials.
     *
     * @param api        the api key
     * @param tft        the tft api key
     * @param tournament the tournament key
     */
    public APICredentials(final String api, final String tft, final String tournament)
    {
        this.lolAPIKey = api;
        this.TFTAPIKey = tft;
        this.tournamentApiKey = tournament;
    }
    
    /**
     * Instantiates new API credentials.
     *
     * @param api        the api key
     * @param tournament the tournament key
     */
    public APICredentials(final String api, final String tournament)
    {
        this.lolAPIKey = api;
        this.TFTAPIKey = api;
        this.tournamentApiKey = tournament;
    }
    
    /**
     * Instantiates new API credentials.
     *
     * @param api the api key
     */
    public APICredentials(final String api)
    {
        this.lolAPIKey = api;
        this.TFTAPIKey = api;
        this.tournamentApiKey = api;
    }
    
    /**
     * Gets the api key.
     *
     * @return the key
     */
    public String getLoLAPIKey()
    {
        if (this.lolAPIKey == null)
        {
            throw new APIUnsupportedActionException("API key not set!");
        }
        return this.lolAPIKey;
    }
    
    /**
     * Gets the tft key.
     *
     * @return the key
     */
    public String getTFTAPIKey()
    {
        if (this.TFTAPIKey == null)
        {
            throw new APIUnsupportedActionException("API key not set!");
        }
        return this.TFTAPIKey;
    }
    
    /**
     * Gets the tournament key.
     *
     * @return the key
     */
    public String getTournamentAPIKey()
    {
        if (this.tournamentApiKey == null)
        {
            throw new APIUnsupportedActionException("TOURNAMENT key not set!");
        }
        return this.tournamentApiKey;
    }
    
    public String getUniqueKeyCombination()
    {
        return lolAPIKey + TFTAPIKey + tournamentApiKey;
    }
    
}

@@ -299,35 +299,35 @@
 *%0A     * @param 
-api
+lol
         the api 
@@ -314,35 +314,35 @@
  lol        the 
-api
+lol
  key%0A     * @par
@@ -363,19 +363,19 @@
 the tft 
-api
+lol
  key%0A   
@@ -454,35 +454,35 @@
 ls(final String 
-api
+lol
 , final String t
@@ -533,35 +533,35 @@
 his.lolAPIKey = 
-api
+lol
 ;%0A        this.T
@@ -701,19 +701,19 @@
  @param 
-api
+lol
         
@@ -712,27 +712,27 @@
         the 
-api
+lol
  key%0A     * 
@@ -815,19 +815,19 @@
  String 
-api
+lol
 , final 
@@ -868,35 +868,35 @@
 his.lolAPIKey = 
-api
+lol
 ;%0A        this.T
@@ -898,35 +898,35 @@
 his.TFTAPIKey = 
-api
+lol
 ;%0A        this.t

rename stuff