Android Open Source - Game-of-thrones-trivia High Score






From Project

Back to project page Game-of-thrones-trivia.

License

The source code is released under:

MIT License

If you think the Android project Game-of-thrones-trivia listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.GameOfThrones.Trivia.core;
/*  ww w.ja v a2  s  .co m*/
/**
 * Score that a user obtain at the end of a game.
 * 
 * @author andre
 * 
 */
public class HighScore {
  /** unique identifier */
  protected int id;
  /** date the scoreView was obtained */
  protected String date;
  /** numeric value of scoreView */
  protected int score;

  /**
   * Construtor
   * 
   * @param id
   *            - unique identifier
   * @param date
   *            - date the scoreView was obtained
   * @param scoreView
   *            - int - value of scoreView
   */
  public HighScore(int id, String date, int score) {
    this.id = id;
    this.date = date;
    this.score = score;
  }

  /**
   * id getter
   * 
   * @return
   */
  public int getId() {
    return id;
  }

  /**
   * id setter
   * 
   * @param id
   */
  public void setId(int id) {
    this.id = id;
  }

  /**
   * date getter
   * 
   * @return
   */
  public String getDate() {
    return date;
  }

  /**
   * date setter
   * 
   * @param date
   */
  public void setDate(String date) {
    this.date = date;
  }

  /**
   * scoreView getter
   * 
   * @return
   */
  public int getScore() {
    return score;
  }

  /**
   * scoreView setter
   * 
   * @param scoreView
   */
  public void setScore(int score) {
    this.score = score;
  }

  /*
   * (non-Javadoc)
   * 
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    return "Entry=" + id + ", date=" + date + ", scoreView=" + score;
  }

}




Java Source Code List

com.GameOfThrones.Trivia.core.CharacterToQuestionsMap.java
com.GameOfThrones.Trivia.core.GameCharacter.java
com.GameOfThrones.Trivia.core.HighScore.java
com.GameOfThrones.Trivia.core.OutOfQuestionsException.java
com.GameOfThrones.Trivia.core.QuestionCollection.java
com.GameOfThrones.Trivia.core.Question.java
com.GameOfThrones.Trivia.core.Session.java
com.GameOfThrones.Trivia.core.SimpleIterator.java
com.GameOfThrones.Trivia.core.TriviaGame.java
com.GameOfThrones.Trivia.data.HighScorePrefs.java
com.GameOfThrones.Trivia.data.RequestWebService.java
com.GameOfThrones.Trivia.data.StringsXMLFileData.java
com.GameOfThrones.Trivia.ui.AboutActivity.java
com.GameOfThrones.Trivia.ui.DynamicBackgroundActivity.java
com.GameOfThrones.Trivia.ui.GameActivity.java
com.GameOfThrones.Trivia.ui.HighScoreActivity.java
com.GameOfThrones.Trivia.ui.MainMenuActivity.java
com.GameOfThrones.Trivia.ui.ResultsActivity.java
com.GameOfThrones.Trivia.ui.TriviaSelectionActivity.java
com.GameOfThrones.Trivia.ui.music.MusicService.java
com.GameOfThrones.Trivia.util.GeneralAlgorithms.java
com.Spartacus.TriviaTest.TriviaMenuActivityTest.java
com.Spartacus.Trivia.utilTest.GeneralAlgorithmsTest.java