All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dto.game.Game Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014 Adam Alyyan
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
 * and associated documentation files (the "Software"), to deal in the Software without restriction,
 *  including without limitation the rights to use, copy, modify, merge, publish, distribute,
 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
 * is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or
 * substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package dto.game;

import java.util.List;

public class Game {

    private int championId;
    private long createDate;
    private List fellowPlayers;
    private long gameId;
    private String gameMode;
    private String gameType;
    private boolean invalid;
    private int ipEarned;
    private int level;
    private int mapId;
    private int spell1;
    private int spell2;
    private RawStats stats;
    private String subType;
    private int teamId;


    /**
     * @return  champion ID associated with the game
     */
    public int getChampionId() {
        return championId;
    }

    /**
     * @return date that the game data was recorded, specified as epoch milliseconds
     */
    public long getCreateDate() {
        return createDate;
    }

    /**
     * @return  a {@link java.util.List} of {@link dto.game.Player} representing the other players associated
     *          with the game
     */
    public List getFellowPlayers() {
        return fellowPlayers;
    }

    public long getGameId() {
        return gameId;
    }

    /**
     * @return  a {@link java.lang.String} representing the game mode, legal values are:
     *          CLASSIC, ODIN, ARAM, TUTORIAL, ONEFORALL, ASCENSION, FIRSTBLOOD
     */
    public String getGameMode() {
        return gameMode;
    }

    /**
     * @return  a {@link java.lang.String} representing the game type, legal values are:
     *          CUSTOM_GAME, MATCHED_GAME, TUTORIAL_GAME
     */
    public String getGameType() {
        return gameType;
    }

    public boolean isInvalid() {
        return invalid;
    }

    public int getIpEarned() {
        return ipEarned;
    }

    public int getLevel() {
        return level;
    }

    public int getMapId() {
        return mapId;
    }

    /**
     * @return the ID of the first summoner spell
     */
    public int getSpell1() {
        return spell1;
    }

    /**
     * @return the ID of the second summoner spell
     */
    public int getSpell2() {
        return spell2;
    }

    /**
     * @return  a {@link dto.game.RawStats} objects representing statistics for the summoner in this game
     */
    public RawStats getStats() {
        return stats;
    }

    /**
     * @return  a {@link java.lang.String} representing the game sub-type, legal values are:
     *          NONE, NORMAL, BOT, RANKED_SOLO_5x5, RANKED_PREMADE_3x3, RANKED_PREMADE_5x5, ODIN_UNRANKED,
     *          RANKED_TEAM_3x3, RANKED_TEAM_5x5, NORMAL_3x3, BOT_3x3, CAP_5x5, ARAM_UNRANKED_5x5, ONEFORALL_5x5,
     *          FIRSTBLOOD_1x1, FIRSTBLOOD_2x2, SR_6x6, URF, URF_BOT, NIGHTMARE_BOT, ASCENSION, HEXAKILL
     */
    public String getSubType() {
        return subType;
    }

    public int getTeamId() {
        return teamId;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy