All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.messenger4j.messengerprofile.targetaudience.WhitelistTargetAudience Maven / Gradle / Ivy

Go to download

The ultimate Java library for building Chatbots on the Facebook Messenger Platform

There is a newer version: 1.1.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy