com.greenapi.client.pkg.models.notifications.messages.messageData.PollUpdateMessageData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whatsapp-api-client-java Show documentation
Show all versions of whatsapp-api-client-java Show documentation
WhatsApp java client Green API
package com.greenapi.client.pkg.models.notifications.messages.messageData;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class PollUpdateMessageData {
private String name;
private List votes;
private boolean multipleAnswers;
@Data
@AllArgsConstructor
@NoArgsConstructor
static class Vote {
private String optionName;
private List optionVoters;
}
@Data
@AllArgsConstructor
@NoArgsConstructor
static class Voter {
private String wid;
}
}