Skip to content

Commit

Permalink
Merge pull request #13 from taboola/fix-campaign-summary-wrong-field-…
Browse files Browse the repository at this point in the history
…name

Renaming 'block_level' to 'blocking_level' based on spec
  • Loading branch information
vladimanaev committed Mar 5, 2019
2 parents 6d5f690 + 68e7956 commit 0c3b09f
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CampaignSummaryRow implements DynamicRow {
private String countryName;
private String platform;
private String platformName;
private BlockingLevelType blockLevel;
private BlockingLevelType blockingLevel;
private Double roas;

// dynamic
Expand Down Expand Up @@ -242,13 +242,12 @@ public CampaignSummaryRow setPlatformName(String platformName) {
return this;
}

public BlockingLevelType getBlockLevel() {
return blockLevel;
public BlockingLevelType getBlockingLevel() {
return blockingLevel;
}

public CampaignSummaryRow setBlockLevel(BlockingLevelType blockLevel) {
this.blockLevel = blockLevel;
return this;
public void setBlockingLevel(BlockingLevelType blockingLevel) {
this.blockingLevel = blockingLevel;
}

public Integer getSiteId() {
Expand Down Expand Up @@ -306,7 +305,7 @@ public boolean equals(Object o) {
Objects.equals(countryName, that.countryName) &&
Objects.equals(platform, that.platform) &&
Objects.equals(platformName, that.platformName) &&
blockLevel == that.blockLevel &&
Objects.equals(blockingLevel, that.blockingLevel) &&
Objects.equals(roas, that.roas) &&
Objects.equals(dynamicFields, that.dynamicFields);
}
Expand All @@ -316,7 +315,7 @@ public int hashCode() {
return Objects.hash(impressions, ctr, clicks, cpc, cpm, cpaConversionRate, cpaActionsNum, spent,
currency, date, dateEndPeriod, contentProvider, contentProviderName,
campaignsNum, campaign, campaignName, site, siteName, siteId, country,
countryName, platform, platformName, blockLevel, roas, dynamicFields);
countryName, platform, platformName, blockingLevel, roas, dynamicFields);
}

@Override
Expand Down Expand Up @@ -345,7 +344,7 @@ public String toString() {
", countryName='" + countryName + '\'' +
", platform='" + platform + '\'' +
", platformName='" + platformName + '\'' +
", blockLevel=" + blockLevel +
", blockingLevel=" + blockingLevel +
", roas=" + roas +
", dynamicFields=" + dynamicFields +
'}';
Expand Down

0 comments on commit 0c3b09f

Please sign in to comment.