Add endpoint for fetching boost amounts

This commit is contained in:
Ehren Kret
2021-10-21 13:56:35 -05:00
parent 3b764bed7a
commit 07cd69ab34
6 changed files with 80 additions and 14 deletions

View File

@@ -20,6 +20,7 @@ import org.whispersystems.textsecuregcm.configuration.ApnConfiguration;
import org.whispersystems.textsecuregcm.configuration.AppConfigConfiguration;
import org.whispersystems.textsecuregcm.configuration.AwsAttachmentsConfiguration;
import org.whispersystems.textsecuregcm.configuration.BadgesConfiguration;
import org.whispersystems.textsecuregcm.configuration.BoostConfiguration;
import org.whispersystems.textsecuregcm.configuration.CdnConfiguration;
import org.whispersystems.textsecuregcm.configuration.DatabaseConfiguration;
import org.whispersystems.textsecuregcm.configuration.DatadogConfiguration;
@@ -319,6 +320,11 @@ public class WhisperServerConfiguration extends Configuration {
// TODO: Mark as @NotNull when enabled for production.
private SubscriptionConfiguration subscription;
@Valid
@JsonProperty
// TODO: Mark as @NotNull when enabled for production.
private BoostConfiguration boost;
@Valid
@NotNull
@JsonProperty
@@ -552,6 +558,10 @@ public class WhisperServerConfiguration extends Configuration {
return subscription;
}
public BoostConfiguration getBoost() {
return boost;
}
public ReportMessageConfiguration getReportMessageConfiguration() {
return reportMessage;
}