Package web.sportflow.challenge
Class Challenge
java.lang.Object
web.sportflow.challenge.Challenge
-
Constructor Summary
ConstructorsConstructorDescriptionChallenge(String title, String description, ChallengeType type, Double targetValue, LocalDate startDate, LocalDate endDate, User creator) Challenge(String title, String description, ChallengeType type, Double targetValue, LocalDate startDate, LocalDate endDate, User creator, boolean official) -
Method Summary
Modifier and TypeMethodDescriptiongetId()longintgetTitle()getType()booleanhasBadgeId(Long badgeId) booleanhasParticipantId(Long userId) booleanhasSportId(Long sportId) booleanisActive()booleanvoidvoidsetCreator(User creator) voidsetDescription(String description) voidsetEndDate(LocalDate endDate) voidvoidsetOfficial(boolean official) voidsetParticipants(List<User> participants) voidvoidsetStartDate(LocalDate startDate) voidsetTargetValue(Double targetValue) voidvoidsetType(ChallengeType type)
-
Constructor Details
-
Challenge
public Challenge() -
Challenge
-
Challenge
-
-
Method Details
-
getId
-
getTitle
-
getDescription
-
getType
-
getTargetValue
-
getStartDate
-
getEndDate
-
getCreator
-
isOfficial
public boolean isOfficial() -
getSports
-
getBadges
-
getParticipants
-
getBadgeNames
-
getParticipantNames
-
getSportNames
-
hasSportId
-
hasBadgeId
-
hasParticipantId
-
isActive
public boolean isActive() -
getStartDateShortUs
-
getEndDateShortUs
-
getRemainingTimePercent
public int getRemainingTimePercent() -
getRemainingDays
public long getRemainingDays() -
setId
-
setTitle
-
setDescription
-
setType
-
setTargetValue
-
setStartDate
-
setEndDate
-
setCreator
-
setOfficial
public void setOfficial(boolean official) -
setSports
-
setBadges
-
setParticipants
-