java.lang.Object
api.longpoll.bots.model.objects.basic.Poll

public class Poll extends Object
Object describes poll.
See Also:
  • Constructor Details

    • Poll

      public Poll()
  • Method Details

    • getId

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getOwnerId

      public Integer getOwnerId()
    • setOwnerId

      public void setOwnerId(Integer ownerId)
    • getCreated

      public Integer getCreated()
    • setCreated

      public void setCreated(Integer created)
    • getQuestion

      public String getQuestion()
    • setQuestion

      public void setQuestion(String question)
    • getVotes

      public Integer getVotes()
    • setVotes

      public void setVotes(Integer votes)
    • getAnswers

      public List<Poll.Answer> getAnswers()
    • setAnswers

      public void setAnswers(List<Poll.Answer> answers)
    • getAnonymous

      public Boolean getAnonymous()
    • setAnonymous

      public void setAnonymous(Boolean anonymous)
    • getMultiple

      public Boolean getMultiple()
    • setMultiple

      public void setMultiple(Boolean multiple)
    • getAnswerIds

      public List<Long> getAnswerIds()
    • setAnswerIds

      public void setAnswerIds(List<Long> answerIds)
    • getEndDate

      public Integer getEndDate()
    • setEndDate

      public void setEndDate(Integer endDate)
    • getClosed

      public Boolean getClosed()
    • setClosed

      public void setClosed(Boolean closed)
    • getBoard

      public Boolean getBoard()
    • setBoard

      public void setBoard(Boolean board)
    • getCanEdit

      public Boolean getCanEdit()
    • setCanEdit

      public void setCanEdit(Boolean canEdit)
    • getCanVote

      public Boolean getCanVote()
    • setCanVote

      public void setCanVote(Boolean canVote)
    • getCanReport

      public Boolean getCanReport()
    • setCanReport

      public void setCanReport(Boolean canReport)
    • getCanShare

      public Boolean getCanShare()
    • setCanShare

      public void setCanShare(Boolean canShare)
    • getAuthorId

      public Integer getAuthorId()
    • setAuthorId

      public void setAuthorId(Integer authorId)
    • getPhoto

      public Photo getPhoto()
    • setPhoto

      public void setPhoto(Photo photo)
    • getBackground

      public Poll.Background getBackground()
    • setBackground

      public void setBackground(Poll.Background background)
    • getFriends

      public List<Poll.Friend> getFriends()
    • setFriends

      public void setFriends(List<Poll.Friend> friends)
    • toString

      public String toString()
      Overrides:
      toString in class Object