Package com.restfb.types
Class VideoPoll
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.VideoPoll
-
- All Implemented Interfaces:
Serializable
public class VideoPoll extends FacebookType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VideoPoll.VideoPollOption
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description VideoPoll()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPollOption(VideoPoll.VideoPollOption option)
Boolean
getCloseAfterVoting()
True if this is a Live poll with open voting and the card hides after votingBoolean
getDefaultOpen()
True if the poll should be open by default, false if it starts in a closed stateList<VideoPoll.VideoPollOption>
getPollOptions()
String
getQuestion()
The poll question textBoolean
getShowGradient()
True if this is a Live poll and voting is open and there is a background gradient to highlight the voting cardBoolean
getShowResults()
True if this is a Live poll and voting is open and the results show after votingString
getStatus()
Live poll statusboolean
removePollOption(VideoPoll.VideoPollOption option)
void
setCloseAfterVoting(Boolean closeAfterVoting)
True if this is a Live poll with open voting and the card hides after votingvoid
setDefaultOpen(Boolean defaultOpen)
True if the poll should be open by default, false if it starts in a closed statevoid
setQuestion(String question)
The poll question textvoid
setShowGradient(Boolean showGradient)
True if this is a Live poll and voting is open and there is a background gradient to highlight the voting cardvoid
setShowResults(Boolean showResults)
True if this is a Live poll and voting is open and the results show after votingvoid
setStatus(String status)
Live poll status-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
VideoPoll
public VideoPoll()
-
-
Method Detail
-
getPollOptions
public List<VideoPoll.VideoPollOption> getPollOptions()
-
addPollOption
public boolean addPollOption(VideoPoll.VideoPollOption option)
-
removePollOption
public boolean removePollOption(VideoPoll.VideoPollOption option)
-
getCloseAfterVoting
public Boolean getCloseAfterVoting()
True if this is a Live poll with open voting and the card hides after voting- Returns:
- True if this is a Live poll with open voting and the card hides after voting
-
setCloseAfterVoting
public void setCloseAfterVoting(Boolean closeAfterVoting)
True if this is a Live poll with open voting and the card hides after voting
-
getDefaultOpen
public Boolean getDefaultOpen()
True if the poll should be open by default, false if it starts in a closed state- Returns:
- True if the poll should be open by default, false if it starts in a closed state
-
setDefaultOpen
public void setDefaultOpen(Boolean defaultOpen)
True if the poll should be open by default, false if it starts in a closed state
-
getQuestion
public String getQuestion()
The poll question text- Returns:
- The poll question text
-
setQuestion
public void setQuestion(String question)
The poll question text
-
getShowGradient
public Boolean getShowGradient()
True if this is a Live poll and voting is open and there is a background gradient to highlight the voting card- Returns:
- True if this is a Live poll and voting is open and there is a background gradient to highlight the voting card
-
setShowGradient
public void setShowGradient(Boolean showGradient)
True if this is a Live poll and voting is open and there is a background gradient to highlight the voting card
-
getShowResults
public Boolean getShowResults()
True if this is a Live poll and voting is open and the results show after voting- Returns:
- True if this is a Live poll and voting is open and the results show after voting
-
setShowResults
public void setShowResults(Boolean showResults)
True if this is a Live poll and voting is open and the results show after voting
-
-