-
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.
This feature gives statistical information about the following 1. total listings 2. rented listings 3. total income 4. Yearly income broken down by monthly earnins 5. Yearly listings broken down by monthly listing This gives the agent an overview of their performance.
- Loading branch information
Showing
5 changed files
with
197 additions
and
1 deletion.
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