io.github.mngsk.devicedetector.client.bot.Bot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of device-detector Show documentation
Show all versions of device-detector Show documentation
The Universal Device Detection library that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models.
package io.github.mngsk.devicedetector.client.bot;
import java.util.Optional;
import io.github.mngsk.devicedetector.client.Client;
public class Bot extends Client {
private final String category;
private final String url;
private final BotProducer producer;
public Bot(String name, String category, String url, BotProducer producer) {
super("bot", name, null);
this.category = category;
this.url = url;
this.producer = producer;
}
public Optional getCategory() {
return Optional.ofNullable(this.category);
}
public Optional getUrl() {
return Optional.ofNullable(this.url);
}
public Optional getProducer() {
return Optional.ofNullable(this.producer);
}
}