Class LearnLevelAttempt
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.LearnLevelAttempt
-
public class LearnLevelAttempt extends Object
Holds data in the database for attempts of levels in Learn mode.
-
-
Constructor Summary
Constructors Constructor Description LearnLevelAttempt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCorrectCoins()
Returns the number of correct coins collected.int
getDifficulty()
Returns the difficulty of the attempted scale.long
getId()
Returns the auto-generated id for the Learn level attempt.int
getIncorrectCoins()
Returns the number of incorrect coins collected.long
getPlayerId()
Returns the player id associated with the Learn level attempt.long
getScaleId()
Returns the id for the attempted scale.Date
getTimestamp()
Returns the timestamp when the attempt was completed/saved to the database.void
setCorrectCoins(int correctCoins)
Sets the number of correct coins collected.void
setDifficulty(int difficulty)
Sets the difficulty of the attempted scale.void
setId(long id)
Sets the auto-generated id for the Learn level attempt.void
setIncorrectCoins(int incorrectCoins)
Sets the number of incorrect coins collected.void
setPlayerId(long playerId)
Sets the player id associated with the Learn level attempt.void
setScaleId(long scaleId)
Sets the id for the attempted scale.void
setTimestamp(Date timestamp)
Sets the timestamp when the attempt was completed/saved to the database.
-
-
-
Method Detail
-
getId
public long getId()
Returns the auto-generated id for the Learn level attempt.- Returns:
- The attempt id.
-
setId
public void setId(long id)
Sets the auto-generated id for the Learn level attempt.- Parameters:
id
- The id to be set.
-
getPlayerId
public long getPlayerId()
Returns the player id associated with the Learn level attempt.- Returns:
- The player's id.
-
setPlayerId
public void setPlayerId(long playerId)
Sets the player id associated with the Learn level attempt.- Parameters:
playerId
- The player id to be set.
-
getScaleId
public long getScaleId()
Returns the id for the attempted scale.- Returns:
- The scale's id.
-
setScaleId
public void setScaleId(long scaleId)
Sets the id for the attempted scale.- Parameters:
scaleId
- The id of the scale to be set.
-
getDifficulty
public int getDifficulty()
Returns the difficulty of the attempted scale.- Returns:
- The scale's difficulty.
-
setDifficulty
public void setDifficulty(int difficulty)
Sets the difficulty of the attempted scale.- Parameters:
difficulty
- The difficulty of the the attempted scale.
-
getTimestamp
@NonNull public Date getTimestamp()
Returns the timestamp when the attempt was completed/saved to the database.- Returns:
- The timestamp when the attempt was completed/saved.
-
setTimestamp
public void setTimestamp(@NonNull Date timestamp)
Sets the timestamp when the attempt was completed/saved to the database.- Parameters:
timestamp
- The timestamp when the attempt was completed/saved.
-
getCorrectCoins
public int getCorrectCoins()
Returns the number of correct coins collected.- Returns:
- The number of correct coins.
-
setCorrectCoins
public void setCorrectCoins(int correctCoins)
Sets the number of correct coins collected.- Parameters:
correctCoins
- The number of correct coins collected.
-
getIncorrectCoins
public int getIncorrectCoins()
Returns the number of incorrect coins collected.- Returns:
- The number of incorrect coins.
-
setIncorrectCoins
public void setIncorrectCoins(int incorrectCoins)
Sets the number of incorrect coins collected.- Parameters:
incorrectCoins
- The number of incorrect coins collected.
-
-