com.github.messenger4j.messengerprofile.targetaudience.WhitelistTargetAudience Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messenger4j Show documentation
Show all versions of messenger4j Show documentation
The ultimate Java library for building Chatbots on the Facebook Messenger Platform
package com.github.messenger4j.messengerprofile.targetaudience;
import com.github.messenger4j.common.SupportedCountry;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public final class WhitelistTargetAudience extends TargetAudience {
private final List countries;
public static WhitelistTargetAudience create(@NonNull List countries) {
return new WhitelistTargetAudience(countries);
}
private WhitelistTargetAudience(List countries) {
super(Type.CUSTOM);
this.countries = countries;
}
public List countries() {
return countries;
}
}