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

io.ipinfo.api.model.Privacy Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package io.ipinfo.api.model;

public class Privacy {
    private final boolean vpn;
    private final boolean proxy;
    private final boolean tor;
    private final boolean hosting;

    public Privacy(
            boolean vpn,
            boolean proxy,
            boolean tor,
            boolean hosting
    ) {
        this.vpn = vpn;
        this.proxy = proxy;
        this.tor = tor;
        this.hosting = hosting;
    }

    public boolean getVpn() {
        return vpn;
    }

    public boolean getProxy() {
        return proxy;
    }

    public boolean getTor() {
        return tor;
    }

    public boolean getHosting() {
        return hosting;
    }

    @Override
    public String toString() {
        return "Privacy{" +
                "vpn=" + vpn +
                ", proxy=" + proxy +
                ", tor=" + tor +
                ", hosting=" + hosting +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy