#include "ConfigDeviceDetection.hpp"
using namespace FiftyoneDegrees::DeviceDetection;
ConfigDeviceDetection::ConfigDeviceDetection(
fiftyoneDegreesConfigDeviceDetection *config) :
ConfigBase(&config->b) {
this->config = config;
}
void ConfigDeviceDetection::setUpdateMatchedUserAgent(
bool shouldUpdate) {
config->updateMatchedUserAgent = shouldUpdate;
}
void ConfigDeviceDetection::setMaxMatchedUserAgentLength(
int length) {
config->maxMatchedUserAgentLength = length;
}
void ConfigDeviceDetection::setAllowUnmatched(bool allow) {
config->allowUnmatched = allow;
}
bool ConfigDeviceDetection::getUpdateMatchedUserAgent() {
return config->updateMatchedUserAgent;
}
int ConfigDeviceDetection::getMaxMatchedUserAgentLength() {
return (int)config->maxMatchedUserAgentLength;
}
bool ConfigDeviceDetection::getAllowUnmatched() {
return config->allowUnmatched;
}