-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from Hoxtygen/feat-show-user-listings-total-in…
…come-rented-HOM-143 Feat: show user listings total income rented (HOM-143)
- Loading branch information
Showing
7 changed files
with
199 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/com/codeplanks/home360/domain/listing/AggregateListingStatistics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.codeplanks.home360.domain.listing; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class AggregateListingStatistics { | ||
private Integer total_listings; | ||
private Integer rented_listings; | ||
private Integer total_income; | ||
private List<MonthlyIncome> income; | ||
private List<MonthlyListings> listings; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/codeplanks/home360/domain/listing/MonthlyIncome.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.codeplanks.home360.domain.listing; | ||
|
||
import java.util.Map; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class MonthlyIncome { | ||
private int year; | ||
private Map<String, Integer> months; | ||
|
||
@Override | ||
public String toString() { | ||
return "MonthlyIncome{" + "year=" + year + ", months=" + months + '}'; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/codeplanks/home360/domain/listing/MonthlyListings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.codeplanks.home360.domain.listing; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.util.Map; | ||
|
||
@Getter | ||
@Setter | ||
public class MonthlyListings { | ||
private int year; | ||
private Map<String, Integer> months; | ||
|
||
@Override | ||
public String toString() { | ||
return "MonthlyListings{" + | ||
"year=" + year + | ||
", months=" + months + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters