001// Generated by delombok at Sun Apr 14 14:59:49 CEST 2024
002/*
003 * Copyright (c) 2010-2024 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;
024
025import java.util.ArrayList;
026import java.util.List;
027import com.restfb.Facebook;
028import com.restfb.types.AbstractFacebookType;
029
030public class SuccessfulResponse extends AbstractFacebookType {
031  @Facebook("messaging_product")
032  private String messagingProduct;
033  @Facebook
034  private List<MessageContact> contacts = new ArrayList<>();
035  @Facebook
036  private List<MessageResponse> messages = new ArrayList<>();
037
038
039  public static class MessageResponse extends AbstractFacebookType {
040    @Facebook
041    private String id;
042
043    @java.lang.SuppressWarnings("all")
044    public String getId() {
045      return this.id;
046    }
047
048    @java.lang.SuppressWarnings("all")
049    public void setId(final String id) {
050      this.id = id;
051    }
052  }
053
054
055  public static class MessageContact extends AbstractFacebookType {
056    @Facebook
057    private String input;
058    @Facebook("wa_id")
059    private String waId;
060
061    @java.lang.SuppressWarnings("all")
062    public String getInput() {
063      return this.input;
064    }
065
066    @java.lang.SuppressWarnings("all")
067    public void setInput(final String input) {
068      this.input = input;
069    }
070
071    @java.lang.SuppressWarnings("all")
072    public String getWaId() {
073      return this.waId;
074    }
075
076    @java.lang.SuppressWarnings("all")
077    public void setWaId(final String waId) {
078      this.waId = waId;
079    }
080  }
081
082  @java.lang.SuppressWarnings("all")
083  public String getMessagingProduct() {
084    return this.messagingProduct;
085  }
086
087  @java.lang.SuppressWarnings("all")
088  public void setMessagingProduct(final String messagingProduct) {
089    this.messagingProduct = messagingProduct;
090  }
091
092  @java.lang.SuppressWarnings("all")
093  public List<MessageContact> getContacts() {
094    return this.contacts;
095  }
096
097  @java.lang.SuppressWarnings("all")
098  public void setContacts(final List<MessageContact> contacts) {
099    this.contacts = contacts;
100  }
101
102  @java.lang.SuppressWarnings("all")
103  public List<MessageResponse> getMessages() {
104    return this.messages;
105  }
106
107  @java.lang.SuppressWarnings("all")
108  public void setMessages(final List<MessageResponse> messages) {
109    this.messages = messages;
110  }
111}