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.message; 024 025import java.util.List; 026import com.restfb.Facebook; 027import com.restfb.types.AbstractFacebookType; 028 029/** 030 * Contact type used in the Message object 031 */ 032public class MessageContact extends AbstractFacebookType { 033 private static final long serialVersionUID = 1L; 034 @Facebook 035 private ContactName name; 036 @Facebook 037 private List<ContactPhone> phones; 038 039 040 public static class ContactName extends AbstractFacebookType { 041 private static final long serialVersionUID = 1L; 042 @Facebook("first_name") 043 private String firstName; 044 @Facebook("last_name") 045 private String lastName; 046 @Facebook("formatted_name") 047 private String formattedName; 048 049 @java.lang.SuppressWarnings("all") 050 public String getFirstName() { 051 return this.firstName; 052 } 053 054 @java.lang.SuppressWarnings("all") 055 public void setFirstName(final String firstName) { 056 this.firstName = firstName; 057 } 058 059 @java.lang.SuppressWarnings("all") 060 public String getLastName() { 061 return this.lastName; 062 } 063 064 @java.lang.SuppressWarnings("all") 065 public void setLastName(final String lastName) { 066 this.lastName = lastName; 067 } 068 069 @java.lang.SuppressWarnings("all") 070 public String getFormattedName() { 071 return this.formattedName; 072 } 073 074 @java.lang.SuppressWarnings("all") 075 public void setFormattedName(final String formattedName) { 076 this.formattedName = formattedName; 077 } 078 } 079 080 081 public static class ContactPhone extends AbstractFacebookType { 082 private static final long serialVersionUID = 1L; 083 @Facebook("phone") 084 private String phone; 085 @Facebook("type") 086 private String type; 087 @Facebook("wa_id") 088 private String waId; 089 090 @java.lang.SuppressWarnings("all") 091 public String getPhone() { 092 return this.phone; 093 } 094 095 @java.lang.SuppressWarnings("all") 096 public void setPhone(final String phone) { 097 this.phone = phone; 098 } 099 100 @java.lang.SuppressWarnings("all") 101 public String getType() { 102 return this.type; 103 } 104 105 @java.lang.SuppressWarnings("all") 106 public void setType(final String type) { 107 this.type = type; 108 } 109 110 @java.lang.SuppressWarnings("all") 111 public String getWaId() { 112 return this.waId; 113 } 114 115 @java.lang.SuppressWarnings("all") 116 public void setWaId(final String waId) { 117 this.waId = waId; 118 } 119 } 120 121 @java.lang.SuppressWarnings("all") 122 public ContactName getName() { 123 return this.name; 124 } 125 126 @java.lang.SuppressWarnings("all") 127 public void setName(final ContactName name) { 128 this.name = name; 129 } 130 131 @java.lang.SuppressWarnings("all") 132 public List<ContactPhone> getPhones() { 133 return this.phones; 134 } 135 136 @java.lang.SuppressWarnings("all") 137 public void setPhones(final List<ContactPhone> phones) { 138 this.phones = phones; 139 } 140}