Class Challenge

java.lang.Object
web.sportflow.challenge.Challenge

@Entity public class Challenge extends Object
  • Constructor Details

  • Method Details

    • getId

      public Long getId()
    • getTitle

      public String getTitle()
    • getDescription

      public String getDescription()
    • getType

      public ChallengeType getType()
    • getTargetValue

      public Double getTargetValue()
    • getStartDate

      public LocalDate getStartDate()
    • getEndDate

      public LocalDate getEndDate()
    • getCreator

      public User getCreator()
    • isOfficial

      public boolean isOfficial()
    • getSports

      public List<Sport> getSports()
    • getBadges

      public List<Badge> getBadges()
    • getParticipants

      public List<User> getParticipants()
    • getBadgeNames

      public String getBadgeNames()
    • getParticipantNames

      public String getParticipantNames()
    • getSportNames

      public String getSportNames()
    • hasSportId

      public boolean hasSportId(Long sportId)
    • hasBadgeId

      public boolean hasBadgeId(Long badgeId)
    • hasParticipantId

      public boolean hasParticipantId(Long userId)
    • isActive

      public boolean isActive()
    • getStartDateShortUs

      public String getStartDateShortUs()
    • getEndDateShortUs

      public String getEndDateShortUs()
    • getRemainingTimePercent

      public int getRemainingTimePercent()
    • getRemainingDays

      public long getRemainingDays()
    • setId

      public void setId(Long id)
    • setTitle

      public void setTitle(String title)
    • setDescription

      public void setDescription(String description)
    • setType

      public void setType(ChallengeType type)
    • setTargetValue

      public void setTargetValue(Double targetValue)
    • setStartDate

      public void setStartDate(LocalDate startDate)
    • setEndDate

      public void setEndDate(LocalDate endDate)
    • setCreator

      public void setCreator(User creator)
    • setOfficial

      public void setOfficial(boolean official)
    • setSports

      public void setSports(List<Sport> sports)
    • setBadges

      public void setBadges(List<Badge> badges)
    • setParticipants

      public void setParticipants(List<User> participants)