use of com.redhat.cloud.notifications.routers.models.SettingsValues in project notifications-backend by RedHatInsights.
the class UserConfigResourceTest method createSettingsValue.
private SettingsValues createSettingsValue(String bundle, String application, Boolean daily, Boolean instant) {
ApplicationSettingsValue applicationSettingsValue = new ApplicationSettingsValue();
applicationSettingsValue.notifications.put(DAILY, daily);
applicationSettingsValue.notifications.put(INSTANT, instant);
BundleSettingsValue bundleSettingsValue = new BundleSettingsValue();
bundleSettingsValue.applications.put(application, applicationSettingsValue);
SettingsValues settingsValues = new SettingsValues();
settingsValues.bundles.put(bundle, bundleSettingsValue);
return settingsValues;
}
Aggregations