001// Generated by delombok at Sat May 10 20:59:56 UTC 2025
002/*
003 * Copyright (c) 2010-2025 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types.threads;
024
025import com.restfb.Facebook;
026import com.restfb.types.AbstractFacebookType;
027import java.util.Date;
028
029/**
030 * Poll attachment for threads.
031 * As defined here: https://developers.facebook.com/docs/threads/create-posts/polls
032 */
033public class TdPollAttachment extends AbstractFacebookType {
034  private static final long serialVersionUID = 1L;
035  @Facebook("option_a")
036  private String optionA;
037  @Facebook("option_b")
038  private String optionB;
039  @Facebook("option_c")
040  private String optionC;
041  @Facebook("option_d")
042  private String optionD;
043  @Facebook("option_a_votes_percentage")
044  private Double optionAVotesPercentage;
045  @Facebook("option_b_votes_percentage")
046  private Double optionBVotesPercentage;
047  @Facebook("option_c_votes_percentage")
048  private Double optionCVotesPercentage;
049  @Facebook("option_d_votes_percentage")
050  private Double optionDVotesPercentage;
051  @Facebook("expiration_timestamp")
052  private Date expirationTimestamp;
053
054  @java.lang.SuppressWarnings("all")
055  public String getOptionA() {
056    return this.optionA;
057  }
058
059  @java.lang.SuppressWarnings("all")
060  public void setOptionA(final String optionA) {
061    this.optionA = optionA;
062  }
063
064  @java.lang.SuppressWarnings("all")
065  public String getOptionB() {
066    return this.optionB;
067  }
068
069  @java.lang.SuppressWarnings("all")
070  public void setOptionB(final String optionB) {
071    this.optionB = optionB;
072  }
073
074  @java.lang.SuppressWarnings("all")
075  public String getOptionC() {
076    return this.optionC;
077  }
078
079  @java.lang.SuppressWarnings("all")
080  public void setOptionC(final String optionC) {
081    this.optionC = optionC;
082  }
083
084  @java.lang.SuppressWarnings("all")
085  public String getOptionD() {
086    return this.optionD;
087  }
088
089  @java.lang.SuppressWarnings("all")
090  public void setOptionD(final String optionD) {
091    this.optionD = optionD;
092  }
093
094  @java.lang.SuppressWarnings("all")
095  public Double getOptionAVotesPercentage() {
096    return this.optionAVotesPercentage;
097  }
098
099  @java.lang.SuppressWarnings("all")
100  public void setOptionAVotesPercentage(final Double optionAVotesPercentage) {
101    this.optionAVotesPercentage = optionAVotesPercentage;
102  }
103
104  @java.lang.SuppressWarnings("all")
105  public Double getOptionBVotesPercentage() {
106    return this.optionBVotesPercentage;
107  }
108
109  @java.lang.SuppressWarnings("all")
110  public void setOptionBVotesPercentage(final Double optionBVotesPercentage) {
111    this.optionBVotesPercentage = optionBVotesPercentage;
112  }
113
114  @java.lang.SuppressWarnings("all")
115  public Double getOptionCVotesPercentage() {
116    return this.optionCVotesPercentage;
117  }
118
119  @java.lang.SuppressWarnings("all")
120  public void setOptionCVotesPercentage(final Double optionCVotesPercentage) {
121    this.optionCVotesPercentage = optionCVotesPercentage;
122  }
123
124  @java.lang.SuppressWarnings("all")
125  public Double getOptionDVotesPercentage() {
126    return this.optionDVotesPercentage;
127  }
128
129  @java.lang.SuppressWarnings("all")
130  public void setOptionDVotesPercentage(final Double optionDVotesPercentage) {
131    this.optionDVotesPercentage = optionDVotesPercentage;
132  }
133
134  @java.lang.SuppressWarnings("all")
135  public Date getExpirationTimestamp() {
136    return this.expirationTimestamp;
137  }
138
139  @java.lang.SuppressWarnings("all")
140  public void setExpirationTimestamp(final Date expirationTimestamp) {
141    this.expirationTimestamp = expirationTimestamp;
142  }
143}