-
public final class NewChallenge
-
-
Field Summary
Fields Modifier and Type Field Description private String
title
private String
description
private DateTime
startDate
private DateTime
endDate
private String
iconUrl
private CategoryDefinition
categoryDefinition
private CustomChallengeColor
customChallengeColor
private MenigaDecimal
targetAmount
private ChallengeInterval
recurringInterval
-
Constructor Summary
Constructors Constructor Description NewChallenge(String title, String description, DateTime startDate, DateTime endDate, String iconUrl, CategoryDefinition categoryDefinition, CustomChallengeColor customChallengeColor, MenigaDecimal targetAmount, ChallengeInterval recurringInterval)
-
Method Summary
-
-
Constructor Detail
-
NewChallenge
NewChallenge(String title, String description, DateTime startDate, DateTime endDate, String iconUrl, CategoryDefinition categoryDefinition, CustomChallengeColor customChallengeColor, MenigaDecimal targetAmount, ChallengeInterval recurringInterval)
- Parameters:
title
- The title of the challengedescription
- The description of the challengestartDate
- The date when this challenge startsendDate
- The date when this challenge endsiconUrl
- An optional url referring to an iconcategoryDefinition
- Definition of tracked categoriescustomChallengeColor
- Color of the challenge being createdtargetAmount
- The target amount for the challengerecurringInterval
- The interval between repeats, e.g.
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final DateTime component3()
-
component4
final DateTime component4()
-
component5
final String component5()
-
component6
final CategoryDefinition component6()
-
component7
final CustomChallengeColor component7()
-
component8
final MenigaDecimal component8()
-
component9
final ChallengeInterval component9()
-
copy
final NewChallenge copy(String title, String description, DateTime startDate, DateTime endDate, String iconUrl, CategoryDefinition categoryDefinition, CustomChallengeColor customChallengeColor, MenigaDecimal targetAmount, ChallengeInterval recurringInterval)
- Parameters:
title
- The title of the challengedescription
- The description of the challengestartDate
- The date when this challenge startsendDate
- The date when this challenge endsiconUrl
- An optional url referring to an iconcategoryDefinition
- Definition of tracked categoriescustomChallengeColor
- Color of the challenge being createdtargetAmount
- The target amount for the challengerecurringInterval
- The interval between repeats, e.g.
-
getDescription
final String getDescription()
-
getStartDate
final DateTime getStartDate()
-
getEndDate
final DateTime getEndDate()
-
getIconUrl
final String getIconUrl()
-
getCategoryDefinition
final CategoryDefinition getCategoryDefinition()
-
getCustomChallengeColor
final CustomChallengeColor getCustomChallengeColor()
-
getTargetAmount
final MenigaDecimal getTargetAmount()
-
getRecurringInterval
final ChallengeInterval getRecurringInterval()
-
setTitle
final Unit setTitle(@JvmField() String title)
- Parameters:
title
- The title of the challenge
-
setDescription
final Unit setDescription(@JvmField() String description)
- Parameters:
description
- The description of the challenge
-
setStartDate
final Unit setStartDate(@JvmField() DateTime startDate)
- Parameters:
startDate
- The date when this challenge starts
-
setEndDate
final Unit setEndDate(@JvmField() DateTime endDate)
- Parameters:
endDate
- The date when this challenge ends
-
setIconUrl
final Unit setIconUrl(@JvmField() String iconUrl)
- Parameters:
iconUrl
- An optional url referring to an icon
-
setCategoryDefinition
final Unit setCategoryDefinition(@JvmField() CategoryDefinition categoryDefinition)
- Parameters:
categoryDefinition
- Definition of tracked categories
-
setCustomChallengeColor
final Unit setCustomChallengeColor(@JvmField() CustomChallengeColor customChallengeColor)
- Parameters:
customChallengeColor
- Color of the challenge being created
-
setTargetAmount
final Unit setTargetAmount(@JvmField() MenigaDecimal targetAmount)
- Parameters:
targetAmount
- The target amount for the challenge
-
setRecurringInterval
final Unit setRecurringInterval(@JvmField() ChallengeInterval recurringInterval)
- Parameters:
recurringInterval
- The interval between repeats, e.g.
-
-
-
-