getStrategy method
Implementation
DefaultStrategy getStrategy() {
switch (Flagship.getStatus()) {
case Status.NOT_INITIALIZED:
return NotReadyStrategy(visitor);
case Status.PANIC_ON:
return PanicStrategy(visitor);
case Status.READY:
if (visitor.getConsent() == false) {
// Return non consented
return NoConsentStrategy(visitor);
} else {
return DefaultStrategy(visitor);
}
}
}