cordova-plugin-qonversion
Version:
Qonversion Cordova Plugin
20 lines (19 loc) • 645 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoteConfigList = void 0;
class RemoteConfigList {
remoteConfigs;
constructor(remoteConfigs) {
this.remoteConfigs = remoteConfigs;
}
remoteConfigForContextKey(contextKey) {
return this.findRemoteConfigForContextKey(contextKey);
}
remoteConfigForEmptyContextKey() {
return this.findRemoteConfigForContextKey(null);
}
findRemoteConfigForContextKey(contextKey) {
return this.remoteConfigs.find(config => config.source.contextKey == contextKey);
}
}
exports.RemoteConfigList = RemoteConfigList;