public class PollContent
extends java.lang.Object
Constructor and Description |
---|
PollContent() |
Modifier and Type | Method and Description |
---|---|
PollContent |
addPollOption(PollOptionContent pollOptionContent)
Add poll option the post.
|
PollContent |
addPollOptions(java.util.List<PollOptionContent> pollOptionContents)
Add multiple poll options the post.
|
java.lang.Boolean |
areMultipleVotesAllowed() |
java.util.Date |
getEndDate() |
java.util.List<PollOptionContent> |
getPollOptions() |
PollContent |
withAllowMultipleVotes(boolean allowMultipleVotes)
Set if multiple votes are allowed or not.
|
PollContent |
withEndDate(java.util.Date endDate)
Set end date of the poll.
|
public PollContent addPollOption(PollOptionContent pollOptionContent)
pollOptionContent
- poll option content.public PollContent addPollOptions(java.util.List<PollOptionContent> pollOptionContents)
pollOptionContents
- poll option content.public PollContent withEndDate(java.util.Date endDate)
endDate
- post end date.public PollContent withAllowMultipleVotes(boolean allowMultipleVotes)
allowMultipleVotes
- allow multiple votes or not.public java.lang.Boolean areMultipleVotesAllowed()
public java.util.List<PollOptionContent> getPollOptions()
public java.util.Date getEndDate()
(c) Copyright GetSocial BV, 2022. All Rights Reserved.