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 java.util.ArrayList; 026import java.util.List; 027import com.restfb.Facebook; 028import com.restfb.types.AbstractFacebookType; 029 030/** 031 * Text attachment for Threads posts. As defined here: 032 * https://developers.facebook.com/docs/threads/create-posts/text-attachments 033 */ 034public class TdTextAttachment extends AbstractFacebookType { 035 private static final long serialVersionUID = 1L; 036 @Facebook 037 private String plaintext; 038 @Facebook("link_attachment_url") 039 private String linkAttachmentUrl; 040 @Facebook("text_with_styling_info") 041 private List<TextWithStylingInfo> textWithStylingInfo = new ArrayList<>(); 042 043 044 public static class TextWithStylingInfo extends AbstractFacebookType { 045 private static final long serialVersionUID = 1L; 046 @Facebook 047 private Integer offset; 048 @Facebook 049 private Integer length; 050 @Facebook("styling_info") 051 private List<String> stylingInfo = new ArrayList<>(); 052 053 @java.lang.SuppressWarnings("all") 054 @lombok.Generated 055 public Integer getOffset() { 056 return this.offset; 057 } 058 059 @java.lang.SuppressWarnings("all") 060 @lombok.Generated 061 public void setOffset(final Integer offset) { 062 this.offset = offset; 063 } 064 065 @java.lang.SuppressWarnings("all") 066 @lombok.Generated 067 public Integer getLength() { 068 return this.length; 069 } 070 071 @java.lang.SuppressWarnings("all") 072 @lombok.Generated 073 public void setLength(final Integer length) { 074 this.length = length; 075 } 076 077 @java.lang.SuppressWarnings("all") 078 @lombok.Generated 079 public List<String> getStylingInfo() { 080 return this.stylingInfo; 081 } 082 083 @java.lang.SuppressWarnings("all") 084 @lombok.Generated 085 public void setStylingInfo(final List<String> stylingInfo) { 086 this.stylingInfo = stylingInfo; 087 } 088 } 089 090 @java.lang.SuppressWarnings("all") 091 @lombok.Generated 092 public String getPlaintext() { 093 return this.plaintext; 094 } 095 096 @java.lang.SuppressWarnings("all") 097 @lombok.Generated 098 public void setPlaintext(final String plaintext) { 099 this.plaintext = plaintext; 100 } 101 102 @java.lang.SuppressWarnings("all") 103 @lombok.Generated 104 public String getLinkAttachmentUrl() { 105 return this.linkAttachmentUrl; 106 } 107 108 @java.lang.SuppressWarnings("all") 109 @lombok.Generated 110 public void setLinkAttachmentUrl(final String linkAttachmentUrl) { 111 this.linkAttachmentUrl = linkAttachmentUrl; 112 } 113 114 @java.lang.SuppressWarnings("all") 115 @lombok.Generated 116 public List<TextWithStylingInfo> getTextWithStylingInfo() { 117 return this.textWithStylingInfo; 118 } 119 120 @java.lang.SuppressWarnings("all") 121 @lombok.Generated 122 public void setTextWithStylingInfo(final List<TextWithStylingInfo> textWithStylingInfo) { 123 this.textWithStylingInfo = textWithStylingInfo; 124 } 125}