public final class NotificationConfiguration
extends java.lang.Object
Constructor and Description |
---|
NotificationConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ExecutionPolicy |
getExecutionPolicy()
Returns when to show the notification.
|
java.lang.Integer |
getNumberOfTotalViews()
Returns the number of times the notification is shown in regards to executionPolicy (null=infinite).
|
java.util.Date |
getStartShowingDate() |
VersionCodePolicy |
getVersionCodePolicy()
Returns the app version on which the notification is shown.
|
int |
hashCode() |
void |
setExecutionPolicy(ExecutionPolicy executionPolicy)
Sets the
ExecutionPolicy when to show the notification. |
void |
setNumberOfTotalViews(java.lang.Integer numberOfTotalViews)
Sets the number of times the notification is shown in regards to executionPolicy (null=infinite).
|
void |
setStartShowingDate(java.util.Date startShowingDate)
Set the date from which the notification will be shown.
|
void |
setVersionCodePolicy(VersionCodePolicy versionCodePolicy)
Sets the app version on which the notification is shown.
|
public java.util.Date getStartShowingDate()
public void setStartShowingDate(java.util.Date startShowingDate)
null
notification will be shown immediately (if
ExecutionPolicy
strikes).startShowingDate
- the date to start showing the notificationpublic ExecutionPolicy getExecutionPolicy()
public void setExecutionPolicy(ExecutionPolicy executionPolicy)
ExecutionPolicy
when to show the notification. If null
the notification will be shown
ExecutionPolicy.ALWAYS
. This will be evaluated only after startShowingDate
(if not null
).executionPolicy
- when to show the notificationpublic java.lang.Integer getNumberOfTotalViews()
public void setNumberOfTotalViews(java.lang.Integer numberOfTotalViews)
numberOfTotalViews
- the number of times the notification is shown in regards to executionPolicy (null=infinite).public VersionCodePolicy getVersionCodePolicy()
null
notification will be shown on all
versions.VersionCodePolicy
public void setVersionCodePolicy(VersionCodePolicy versionCodePolicy)
null
notification will be shown on all
versions.versionCodePolicy
- the VersionCodePolicy
to restrict the app versionspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object