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.whatsapp.platform.message; 024 025import com.restfb.Facebook; 026import com.restfb.types.AbstractFacebookType; 027 028public class Interactive extends AbstractFacebookType { 029 @Facebook("list_reply") 030 private Reply listReply; 031 @Facebook("button_reply") 032 private Reply buttonReply; 033 @Facebook 034 private Type type; 035 036 public Reply getReply() { 037 if (buttonReply != null) { 038 return buttonReply; 039 } 040 if (listReply != null) { 041 return listReply; 042 } 043 return null; 044 } 045 046 public boolean isButtonReply() { 047 return buttonReply != null; 048 } 049 050 public boolean isListReply() { 051 return listReply != null; 052 } 053 054 055 public static class Reply extends AbstractFacebookType { 056 @Facebook 057 private String id; 058 @Facebook 059 private String title; 060 @Facebook 061 private String description; 062 063 @java.lang.SuppressWarnings("all") 064 @lombok.Generated 065 public String getId() { 066 return this.id; 067 } 068 069 @java.lang.SuppressWarnings("all") 070 @lombok.Generated 071 public void setId(final String id) { 072 this.id = id; 073 } 074 075 @java.lang.SuppressWarnings("all") 076 @lombok.Generated 077 public String getTitle() { 078 return this.title; 079 } 080 081 @java.lang.SuppressWarnings("all") 082 @lombok.Generated 083 public void setTitle(final String title) { 084 this.title = title; 085 } 086 087 @java.lang.SuppressWarnings("all") 088 @lombok.Generated 089 public String getDescription() { 090 return this.description; 091 } 092 093 @java.lang.SuppressWarnings("all") 094 @lombok.Generated 095 public void setDescription(final String description) { 096 this.description = description; 097 } 098 } 099 100 101 public enum Type { 102 list_reply, button_reply; 103 } 104 105 @java.lang.SuppressWarnings("all") 106 @lombok.Generated 107 public Reply getListReply() { 108 return this.listReply; 109 } 110 111 @java.lang.SuppressWarnings("all") 112 @lombok.Generated 113 public void setListReply(final Reply listReply) { 114 this.listReply = listReply; 115 } 116 117 @java.lang.SuppressWarnings("all") 118 @lombok.Generated 119 public Reply getButtonReply() { 120 return this.buttonReply; 121 } 122 123 @java.lang.SuppressWarnings("all") 124 @lombok.Generated 125 public void setButtonReply(final Reply buttonReply) { 126 this.buttonReply = buttonReply; 127 } 128 129 @java.lang.SuppressWarnings("all") 130 @lombok.Generated 131 public Type getType() { 132 return this.type; 133 } 134 135 @java.lang.SuppressWarnings("all") 136 @lombok.Generated 137 public void setType(final Type type) { 138 this.type = type; 139 } 140}