001// Generated by delombok at Fri Mar 17 23:20:37 UTC 2023 002/* 003 * Copyright (c) 2010-2023 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; 024 025import java.util.List; 026import com.restfb.Facebook; 027 028public class WhatsAppMessageTemplateComponent { 029 @Facebook 030 private Type type; 031 @Facebook 032 private Format format; 033 @Facebook 034 private String text; 035 @Facebook 036 private List<Button> buttons; 037 038 039 public enum Type { 040 HEADER, BODY, FOOTER, BUTTONS; 041 } 042 043 044 public enum Format { 045 TEXT, IMAGE, DOCUMENT, VIDEO, LOCATION; 046 } 047 048 049 public enum ButtonType { 050 QUICK_REPLY, URL, PHONE_NUMBER; 051 } 052 053 054 public static class Button { 055 @Facebook 056 private ButtonType type; 057 @Facebook 058 private String text; 059 @Facebook 060 private String url; 061 @Facebook("phone_number") 062 private String phoneNumber; 063 064 @java.lang.SuppressWarnings("all") 065 public ButtonType getType() { 066 return this.type; 067 } 068 069 @java.lang.SuppressWarnings("all") 070 public void setType(final ButtonType type) { 071 this.type = type; 072 } 073 074 @java.lang.SuppressWarnings("all") 075 public String getText() { 076 return this.text; 077 } 078 079 @java.lang.SuppressWarnings("all") 080 public void setText(final String text) { 081 this.text = text; 082 } 083 084 @java.lang.SuppressWarnings("all") 085 public String getUrl() { 086 return this.url; 087 } 088 089 @java.lang.SuppressWarnings("all") 090 public void setUrl(final String url) { 091 this.url = url; 092 } 093 094 @java.lang.SuppressWarnings("all") 095 public String getPhoneNumber() { 096 return this.phoneNumber; 097 } 098 099 @java.lang.SuppressWarnings("all") 100 public void setPhoneNumber(final String phoneNumber) { 101 this.phoneNumber = phoneNumber; 102 } 103 } 104 105 @java.lang.SuppressWarnings("all") 106 public Type getType() { 107 return this.type; 108 } 109 110 @java.lang.SuppressWarnings("all") 111 public void setType(final Type type) { 112 this.type = type; 113 } 114 115 @java.lang.SuppressWarnings("all") 116 public Format getFormat() { 117 return this.format; 118 } 119 120 @java.lang.SuppressWarnings("all") 121 public void setFormat(final Format format) { 122 this.format = format; 123 } 124 125 @java.lang.SuppressWarnings("all") 126 public String getText() { 127 return this.text; 128 } 129 130 @java.lang.SuppressWarnings("all") 131 public void setText(final String text) { 132 this.text = text; 133 } 134 135 @java.lang.SuppressWarnings("all") 136 public List<Button> getButtons() { 137 return this.buttons; 138 } 139 140 @java.lang.SuppressWarnings("all") 141 public void setButtons(final List<Button> buttons) { 142 this.buttons = buttons; 143 } 144}