001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026 002/* 003 * Copyright (c) 2010-2026 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. As defined here: https://developers.facebook.com/docs/threads/create-posts/polls 031 */ 032public class TdPollAttachment extends AbstractFacebookType { 033 private static final long serialVersionUID = 1L; 034 @Facebook("option_a") 035 private String optionA; 036 @Facebook("option_b") 037 private String optionB; 038 @Facebook("option_c") 039 private String optionC; 040 @Facebook("option_d") 041 private String optionD; 042 @Facebook("option_a_votes_percentage") 043 private Double optionAVotesPercentage; 044 @Facebook("option_b_votes_percentage") 045 private Double optionBVotesPercentage; 046 @Facebook("option_c_votes_percentage") 047 private Double optionCVotesPercentage; 048 @Facebook("option_d_votes_percentage") 049 private Double optionDVotesPercentage; 050 @Facebook("expiration_timestamp") 051 private Date expirationTimestamp; 052 053 @java.lang.SuppressWarnings("all") 054 @lombok.Generated 055 public String getOptionA() { 056 return this.optionA; 057 } 058 059 @java.lang.SuppressWarnings("all") 060 @lombok.Generated 061 public void setOptionA(final String optionA) { 062 this.optionA = optionA; 063 } 064 065 @java.lang.SuppressWarnings("all") 066 @lombok.Generated 067 public String getOptionB() { 068 return this.optionB; 069 } 070 071 @java.lang.SuppressWarnings("all") 072 @lombok.Generated 073 public void setOptionB(final String optionB) { 074 this.optionB = optionB; 075 } 076 077 @java.lang.SuppressWarnings("all") 078 @lombok.Generated 079 public String getOptionC() { 080 return this.optionC; 081 } 082 083 @java.lang.SuppressWarnings("all") 084 @lombok.Generated 085 public void setOptionC(final String optionC) { 086 this.optionC = optionC; 087 } 088 089 @java.lang.SuppressWarnings("all") 090 @lombok.Generated 091 public String getOptionD() { 092 return this.optionD; 093 } 094 095 @java.lang.SuppressWarnings("all") 096 @lombok.Generated 097 public void setOptionD(final String optionD) { 098 this.optionD = optionD; 099 } 100 101 @java.lang.SuppressWarnings("all") 102 @lombok.Generated 103 public Double getOptionAVotesPercentage() { 104 return this.optionAVotesPercentage; 105 } 106 107 @java.lang.SuppressWarnings("all") 108 @lombok.Generated 109 public void setOptionAVotesPercentage(final Double optionAVotesPercentage) { 110 this.optionAVotesPercentage = optionAVotesPercentage; 111 } 112 113 @java.lang.SuppressWarnings("all") 114 @lombok.Generated 115 public Double getOptionBVotesPercentage() { 116 return this.optionBVotesPercentage; 117 } 118 119 @java.lang.SuppressWarnings("all") 120 @lombok.Generated 121 public void setOptionBVotesPercentage(final Double optionBVotesPercentage) { 122 this.optionBVotesPercentage = optionBVotesPercentage; 123 } 124 125 @java.lang.SuppressWarnings("all") 126 @lombok.Generated 127 public Double getOptionCVotesPercentage() { 128 return this.optionCVotesPercentage; 129 } 130 131 @java.lang.SuppressWarnings("all") 132 @lombok.Generated 133 public void setOptionCVotesPercentage(final Double optionCVotesPercentage) { 134 this.optionCVotesPercentage = optionCVotesPercentage; 135 } 136 137 @java.lang.SuppressWarnings("all") 138 @lombok.Generated 139 public Double getOptionDVotesPercentage() { 140 return this.optionDVotesPercentage; 141 } 142 143 @java.lang.SuppressWarnings("all") 144 @lombok.Generated 145 public void setOptionDVotesPercentage(final Double optionDVotesPercentage) { 146 this.optionDVotesPercentage = optionDVotesPercentage; 147 } 148 149 @java.lang.SuppressWarnings("all") 150 @lombok.Generated 151 public Date getExpirationTimestamp() { 152 return this.expirationTimestamp; 153 } 154 155 @java.lang.SuppressWarnings("all") 156 @lombok.Generated 157 public void setExpirationTimestamp(final Date expirationTimestamp) { 158 this.expirationTimestamp = expirationTimestamp; 159 } 160}