package no.stelar7.api.l4j8.basic;

import no.stelar7.api.l4j8.basic.constants.api.*;

public class APICredentials
{
    String API_KEY;
    String TOURNAMENT_KEY;

    /**
     * Instantiates new API credentials.
     *
     * @param api
     *            the api key
     */
    public APICredentials(final String key, final APIType type)
    {
        switch (type)
        {
            case NORMAL:
                this.API_KEY = key;
                break;
            case TOURNAMENT:
                this.TOURNAMENT_KEY = key;
                break;
        }
    }

    /**
     * Instantiates new API credentials.
     *
     * @param api
     *            the api key
     * @param tournament
     *            the tournament key
     */
    public APICredentials(final String api, final String tournament)
    {
        this.API_KEY = api;
        this.TOURNAMENT_KEY = tournament;
    }

    /**
     * Gets the api key.
     *
     * @return the key
     */
    public String getAPI()
    {
        if (this.API_KEY == null)
        {
            throw new RuntimeException("API key not set!");
        }
        return this.API_KEY;
    }

    /**
     * Gets the tournament key.
     *
     * @return the key
     */
    public String getTournament()
    {
        if (this.TOURNAMENT_KEY == null)
        {
            throw new RuntimeException("TOURNAMENT key not set!");
        }
        return this.TOURNAMENT_KEY;
    }

}

@@ -159,22 +159,26 @@
 RNAMENT_
+API_
 KEY;%0D%0A
-
 %0D%0A    /*
@@ -540,24 +540,28 @@
 .TOURNAMENT_
+API_
 KEY = key;%0D%0A
@@ -912,24 +912,28 @@
 .TOURNAMENT_
+API_
 KEY = tourna
@@ -1369,16 +1369,20 @@
 RNAMENT_
+API_
 KEY == n
@@ -1469,32 +1469,32 @@
 %22);%0D%0A        %7D%0D%0A
-
         return t
@@ -1508,16 +1508,20 @@
 RNAMENT_
+API_
 KEY;%0D%0A  

Make local repo up-to-date