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.webhook.whatsapp; 024 025import java.util.ArrayList; 026import java.util.Date; 027import java.util.List; 028import com.restfb.Facebook; 029import com.restfb.types.whatsapp.platform.Metadata; 030import com.restfb.types.whatsapp.platform.group.GroupParticipant; 031 032public class GroupParticipantsUpdateValue extends AbstractWhatsappBaseChangeValue { 033 @Facebook("messaging_product") 034 private String messagingProduct; 035 @Facebook 036 private Metadata metadata; 037 @Facebook 038 private List<GroupEvent> groups = new ArrayList<>(); 039 040 041 public static class GroupEvent { 042 @Facebook 043 private Date timestamp; 044 @Facebook("group_id") 045 private String groupId; 046 @Facebook 047 private String type; 048 @Facebook("request_id") 049 private String requestId; 050 @Facebook("initiated_by") 051 private String initiatedBy; 052 @Facebook 053 private String reason; 054 @Facebook("join_request_id") 055 private String joinRequestId; 056 @Facebook("added_participants") 057 private List<GroupParticipant> addedParticipants = new ArrayList<>(); 058 @Facebook("removed_participants") 059 private List<GroupParticipant> removedParticipants = new ArrayList<>(); 060 @Facebook("wa_id") 061 private String waId; 062 @Facebook("user_id") 063 private String userId; 064 @Facebook("parent_user_id") 065 private String parentUserId; 066 @Facebook 067 private String username; 068 069 @java.lang.SuppressWarnings("all") 070 @lombok.Generated 071 public Date getTimestamp() { 072 return this.timestamp; 073 } 074 075 @java.lang.SuppressWarnings("all") 076 @lombok.Generated 077 public void setTimestamp(final Date timestamp) { 078 this.timestamp = timestamp; 079 } 080 081 @java.lang.SuppressWarnings("all") 082 @lombok.Generated 083 public String getGroupId() { 084 return this.groupId; 085 } 086 087 @java.lang.SuppressWarnings("all") 088 @lombok.Generated 089 public void setGroupId(final String groupId) { 090 this.groupId = groupId; 091 } 092 093 @java.lang.SuppressWarnings("all") 094 @lombok.Generated 095 public String getType() { 096 return this.type; 097 } 098 099 @java.lang.SuppressWarnings("all") 100 @lombok.Generated 101 public void setType(final String type) { 102 this.type = type; 103 } 104 105 @java.lang.SuppressWarnings("all") 106 @lombok.Generated 107 public String getRequestId() { 108 return this.requestId; 109 } 110 111 @java.lang.SuppressWarnings("all") 112 @lombok.Generated 113 public void setRequestId(final String requestId) { 114 this.requestId = requestId; 115 } 116 117 @java.lang.SuppressWarnings("all") 118 @lombok.Generated 119 public String getInitiatedBy() { 120 return this.initiatedBy; 121 } 122 123 @java.lang.SuppressWarnings("all") 124 @lombok.Generated 125 public void setInitiatedBy(final String initiatedBy) { 126 this.initiatedBy = initiatedBy; 127 } 128 129 @java.lang.SuppressWarnings("all") 130 @lombok.Generated 131 public String getReason() { 132 return this.reason; 133 } 134 135 @java.lang.SuppressWarnings("all") 136 @lombok.Generated 137 public void setReason(final String reason) { 138 this.reason = reason; 139 } 140 141 @java.lang.SuppressWarnings("all") 142 @lombok.Generated 143 public String getJoinRequestId() { 144 return this.joinRequestId; 145 } 146 147 @java.lang.SuppressWarnings("all") 148 @lombok.Generated 149 public void setJoinRequestId(final String joinRequestId) { 150 this.joinRequestId = joinRequestId; 151 } 152 153 @java.lang.SuppressWarnings("all") 154 @lombok.Generated 155 public List<GroupParticipant> getAddedParticipants() { 156 return this.addedParticipants; 157 } 158 159 @java.lang.SuppressWarnings("all") 160 @lombok.Generated 161 public void setAddedParticipants(final List<GroupParticipant> addedParticipants) { 162 this.addedParticipants = addedParticipants; 163 } 164 165 @java.lang.SuppressWarnings("all") 166 @lombok.Generated 167 public List<GroupParticipant> getRemovedParticipants() { 168 return this.removedParticipants; 169 } 170 171 @java.lang.SuppressWarnings("all") 172 @lombok.Generated 173 public void setRemovedParticipants(final List<GroupParticipant> removedParticipants) { 174 this.removedParticipants = removedParticipants; 175 } 176 177 @java.lang.SuppressWarnings("all") 178 @lombok.Generated 179 public String getWaId() { 180 return this.waId; 181 } 182 183 @java.lang.SuppressWarnings("all") 184 @lombok.Generated 185 public void setWaId(final String waId) { 186 this.waId = waId; 187 } 188 189 @java.lang.SuppressWarnings("all") 190 @lombok.Generated 191 public String getUserId() { 192 return this.userId; 193 } 194 195 @java.lang.SuppressWarnings("all") 196 @lombok.Generated 197 public void setUserId(final String userId) { 198 this.userId = userId; 199 } 200 201 @java.lang.SuppressWarnings("all") 202 @lombok.Generated 203 public String getParentUserId() { 204 return this.parentUserId; 205 } 206 207 @java.lang.SuppressWarnings("all") 208 @lombok.Generated 209 public void setParentUserId(final String parentUserId) { 210 this.parentUserId = parentUserId; 211 } 212 213 @java.lang.SuppressWarnings("all") 214 @lombok.Generated 215 public String getUsername() { 216 return this.username; 217 } 218 219 @java.lang.SuppressWarnings("all") 220 @lombok.Generated 221 public void setUsername(final String username) { 222 this.username = username; 223 } 224 } 225 226 @java.lang.SuppressWarnings("all") 227 @lombok.Generated 228 public String getMessagingProduct() { 229 return this.messagingProduct; 230 } 231 232 @java.lang.SuppressWarnings("all") 233 @lombok.Generated 234 public void setMessagingProduct(final String messagingProduct) { 235 this.messagingProduct = messagingProduct; 236 } 237 238 @java.lang.SuppressWarnings("all") 239 @lombok.Generated 240 public Metadata getMetadata() { 241 return this.metadata; 242 } 243 244 @java.lang.SuppressWarnings("all") 245 @lombok.Generated 246 public void setMetadata(final Metadata metadata) { 247 this.metadata = metadata; 248 } 249 250 @java.lang.SuppressWarnings("all") 251 @lombok.Generated 252 public List<GroupEvent> getGroups() { 253 return this.groups; 254 } 255 256 @java.lang.SuppressWarnings("all") 257 @lombok.Generated 258 public void setGroups(final List<GroupEvent> groups) { 259 this.groups = groups; 260 } 261}