/* Options: Date: 2026-03-26 02:30:44 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //Package: //GlobalNamespace: BackofficeApi //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: GetInsightsRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class BackofficeApi { @Route(Path="/insights", Verbs="GET") public static class GetInsightsRequest implements IReturn, IGet { public InsightTimeFilter timeFilter = null; public Long cacheVersion = null; public InsightTimeFilter getTimeFilter() { return timeFilter; } public GetInsightsRequest setTimeFilter(InsightTimeFilter value) { this.timeFilter = value; return this; } public Long getCacheVersion() { return cacheVersion; } public GetInsightsRequest setCacheVersion(Long value) { this.cacheVersion = value; return this; } private static Object responseType = GetInsightsResponse.class; public Object getResponseType() { return responseType; } } public static class GetInsightsResponse { public InsightsOverview overview = null; public ArrayList inviteFriendsSeries = new ArrayList(); public InsightsSeriesTotal inviteFriendsTotals = null; public ArrayList inviteAcceptedSeries = new ArrayList(); public InsightsSeriesTotal inviteAcceptedTotals = null; public ArrayList signUpsSeries = new ArrayList(); public InsightsSeriesTotal signUpsTotals = null; public ArrayList optOutsSeries = new ArrayList(); public InsightsSeriesTotal optOutsTotals = null; public ArrayList churnSeries = new ArrayList(); public InsightsSeriesTotal churnTotals = null; public ArrayList activeUsersSeries = new ArrayList(); public InsightsSeriesTotal activeUsersTotals = null; public ArrayList demographics = new ArrayList(); public InsightsDemographicsTotals demographicsTotals = null; public Long lotteryUniqueParticipants = null; public Long lotteryTotalPoints = null; public ArrayList rewardPointsBreakdown = new ArrayList(); public Long rewardPointsTotalAll = null; public Long rewardPointsUniqueUsersAll = null; public InsightsOverview getOverview() { return overview; } public GetInsightsResponse setOverview(InsightsOverview value) { this.overview = value; return this; } public ArrayList getInviteFriendsSeries() { return inviteFriendsSeries; } public GetInsightsResponse setInviteFriendsSeries(ArrayList value) { this.inviteFriendsSeries = value; return this; } public InsightsSeriesTotal getInviteFriendsTotals() { return inviteFriendsTotals; } public GetInsightsResponse setInviteFriendsTotals(InsightsSeriesTotal value) { this.inviteFriendsTotals = value; return this; } public ArrayList getInviteAcceptedSeries() { return inviteAcceptedSeries; } public GetInsightsResponse setInviteAcceptedSeries(ArrayList value) { this.inviteAcceptedSeries = value; return this; } public InsightsSeriesTotal getInviteAcceptedTotals() { return inviteAcceptedTotals; } public GetInsightsResponse setInviteAcceptedTotals(InsightsSeriesTotal value) { this.inviteAcceptedTotals = value; return this; } public ArrayList getSignUpsSeries() { return signUpsSeries; } public GetInsightsResponse setSignUpsSeries(ArrayList value) { this.signUpsSeries = value; return this; } public InsightsSeriesTotal getSignUpsTotals() { return signUpsTotals; } public GetInsightsResponse setSignUpsTotals(InsightsSeriesTotal value) { this.signUpsTotals = value; return this; } public ArrayList getOptOutsSeries() { return optOutsSeries; } public GetInsightsResponse setOptOutsSeries(ArrayList value) { this.optOutsSeries = value; return this; } public InsightsSeriesTotal getOptOutsTotals() { return optOutsTotals; } public GetInsightsResponse setOptOutsTotals(InsightsSeriesTotal value) { this.optOutsTotals = value; return this; } public ArrayList getChurnSeries() { return churnSeries; } public GetInsightsResponse setChurnSeries(ArrayList value) { this.churnSeries = value; return this; } public InsightsSeriesTotal getChurnTotals() { return churnTotals; } public GetInsightsResponse setChurnTotals(InsightsSeriesTotal value) { this.churnTotals = value; return this; } public ArrayList getActiveUsersSeries() { return activeUsersSeries; } public GetInsightsResponse setActiveUsersSeries(ArrayList value) { this.activeUsersSeries = value; return this; } public InsightsSeriesTotal getActiveUsersTotals() { return activeUsersTotals; } public GetInsightsResponse setActiveUsersTotals(InsightsSeriesTotal value) { this.activeUsersTotals = value; return this; } public ArrayList getDemographics() { return demographics; } public GetInsightsResponse setDemographics(ArrayList value) { this.demographics = value; return this; } public InsightsDemographicsTotals getDemographicsTotals() { return demographicsTotals; } public GetInsightsResponse setDemographicsTotals(InsightsDemographicsTotals value) { this.demographicsTotals = value; return this; } public Long getLotteryUniqueParticipants() { return lotteryUniqueParticipants; } public GetInsightsResponse setLotteryUniqueParticipants(Long value) { this.lotteryUniqueParticipants = value; return this; } public Long getLotteryTotalPoints() { return lotteryTotalPoints; } public GetInsightsResponse setLotteryTotalPoints(Long value) { this.lotteryTotalPoints = value; return this; } public ArrayList getRewardPointsBreakdown() { return rewardPointsBreakdown; } public GetInsightsResponse setRewardPointsBreakdown(ArrayList value) { this.rewardPointsBreakdown = value; return this; } public Long getRewardPointsTotalAll() { return rewardPointsTotalAll; } public GetInsightsResponse setRewardPointsTotalAll(Long value) { this.rewardPointsTotalAll = value; return this; } public Long getRewardPointsUniqueUsersAll() { return rewardPointsUniqueUsersAll; } public GetInsightsResponse setRewardPointsUniqueUsersAll(Long value) { this.rewardPointsUniqueUsersAll = value; return this; } } public static enum InsightTimeFilter { Daily, Weekly, Monthly; } public static class InsightsOverview { public Long uniqueUsers = null; public Long signIns = null; public Long signUps = null; public Long invitesSent = null; public Long invitesClicked = null; public Long getUniqueUsers() { return uniqueUsers; } public InsightsOverview setUniqueUsers(Long value) { this.uniqueUsers = value; return this; } public Long getSignIns() { return signIns; } public InsightsOverview setSignIns(Long value) { this.signIns = value; return this; } public Long getSignUps() { return signUps; } public InsightsOverview setSignUps(Long value) { this.signUps = value; return this; } public Long getInvitesSent() { return invitesSent; } public InsightsOverview setInvitesSent(Long value) { this.invitesSent = value; return this; } public Long getInvitesClicked() { return invitesClicked; } public InsightsOverview setInvitesClicked(Long value) { this.invitesClicked = value; return this; } } public static class InsightsTimeBucket { public Date bucket = null; public Long value = null; public Date getBucket() { return bucket; } public InsightsTimeBucket setBucket(Date value) { this.bucket = value; return this; } public Long getValue() { return value; } public InsightsTimeBucket setValue(Long value) { this.value = value; return this; } } public static class InsightsSeriesTotal { public Long total = null; public Double changePercent = null; public Long getTotal() { return total; } public InsightsSeriesTotal setTotal(Long value) { this.total = value; return this; } public Double getChangePercent() { return changePercent; } public InsightsSeriesTotal setChangePercent(Double value) { this.changePercent = value; return this; } } public static class InsightsAgeBucket { public String ageGroup = null; public String sex = null; public Long count = null; public String getAgeGroup() { return ageGroup; } public InsightsAgeBucket setAgeGroup(String value) { this.ageGroup = value; return this; } public String getSex() { return sex; } public InsightsAgeBucket setSex(String value) { this.sex = value; return this; } public Long getCount() { return count; } public InsightsAgeBucket setCount(Long value) { this.count = value; return this; } } public static class InsightsDemographicsTotals { public Long totalUsers = null; public Long maleCount = null; public Long femaleCount = null; public Long unspecifiedCount = null; public Long getTotalUsers() { return totalUsers; } public InsightsDemographicsTotals setTotalUsers(Long value) { this.totalUsers = value; return this; } public Long getMaleCount() { return maleCount; } public InsightsDemographicsTotals setMaleCount(Long value) { this.maleCount = value; return this; } public Long getFemaleCount() { return femaleCount; } public InsightsDemographicsTotals setFemaleCount(Long value) { this.femaleCount = value; return this; } public Long getUnspecifiedCount() { return unspecifiedCount; } public InsightsDemographicsTotals setUnspecifiedCount(Long value) { this.unspecifiedCount = value; return this; } } public static class PointsBreakdown { public String source = null; public Long totalPoints = null; public Long uniqueUsers = null; public String getSource() { return source; } public PointsBreakdown setSource(String value) { this.source = value; return this; } public Long getTotalPoints() { return totalPoints; } public PointsBreakdown setTotalPoints(Long value) { this.totalPoints = value; return this; } public Long getUniqueUsers() { return uniqueUsers; } public PointsBreakdown setUniqueUsers(Long value) { this.uniqueUsers = value; return this; } } }