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
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if this is a Live poll with open voting and the card hides after votingTrue if the poll should be open by default, false if it starts in a closed stateThe poll question textTrue if this is a Live poll and voting is open and there is a background gradient to highlight the voting cardTrue if this is a Live poll and voting is open and the results show after votingLive poll statusbooleanvoidsetCloseAfterVoting(Boolean closeAfterVoting) True if this is a Live poll with open voting and the card hides after votingvoidsetDefaultOpen(Boolean defaultOpen) True if the poll should be open by default, false if it starts in a closed statevoidsetQuestion(String question) The poll question textvoidsetShowGradient(Boolean showGradient) True if this is a Live poll and voting is open and there is a background gradient to highlight the voting cardvoidsetShowResults(Boolean showResults) True if this is a Live poll and voting is open and the results show after votingvoidLive poll statusMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
VideoPoll
public VideoPoll()
-
-
Method Details
-
getPollOptions
-
addPollOption
-
removePollOption
-
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
True if this is a Live poll with open voting and the card hides after voting -
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
True if the poll should be open by default, false if it starts in a closed state -
getQuestion
The poll question text- Returns:
- The poll question text
-
setQuestion
The poll question text -
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
True if this is a Live poll and voting is open and there is a background gradient to highlight the voting card -
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
True if this is a Live poll and voting is open and the results show after voting -
getStatus
Live poll status- Returns:
- Live poll status
-
setStatus
Live poll status
-