Migrate APIs
In general, to migrate from Thunderhead ONE public APIs to Medallia Experience Orchestration public APIs, follow the steps below:
For example, for configuring logging, instead of using:
import com.thunderhead.mobile.logging.OneLogComponent
import com.thunderhead.mobile.logging.OneLogLevel
import com.thunderhead.mobile.oneConfigureLogging
oneConfigureLogging {
levels = mutableSetOf(OneLogLevel.VERBOSE)
components = mutableSetOf(OneLogComponent.ANY)
}
import com.thunderhead.mobile.logging.OneLogComponent;
import com.thunderhead.mobile.logging.OneLogLevel;
import com.thunderhead.mobile.logging.OneLoggingConfiguration;
final OneLoggingConfiguration oneLoggingConfiguration = OneLoggingConfiguration.builder()
.log(OneLogLevel.VERBOSE)
.log(OneLogComponent.ANY)
.build();
One.setLoggingConfiguration(oneLoggingConfiguration);
use the following:
import com.medallia.mxo.logging.MXOLogComponent
import com.medallia.mxo.logging.MXOLogLevel
import com.medallia.mxo.mxoConfigureLogging
mxoConfigureLogging {
levels = mutableSetOf(MXOLogLevel.VERBOSE)
components = mutableSetOf(MXOLogComponent.ANY)
}
import com.medallia.mxo.MedalliaMXO;
import com.medallia.mxo.logging.MXOLogComponent;
import com.medallia.mxo.logging.MXOLogLevel;
import com.medallia.mxo.logging.MXOLoggingConfiguration;
final MXOLoggingConfiguration mxoLoggingConfiguration=MXOLoggingConfiguration.builder()
.log(MXOLogLevel.VERBOSE)
.log(MXOLogComponent.ANY)
.build();
MedalliaMXO.setLoggingConfiguration(mxoLoggingConfiguration);