-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2609 [BE] rename statistic to statistics (#2636)
Co-authored-by: Elena Moshnikova <[email protected]>
- Loading branch information
Showing
54 changed files
with
332 additions
and
332 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
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
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
6 changes: 3 additions & 3 deletions
6
...dto/response/SubGroupStatisticResponse.kt → ...to/response/SubGroupStatisticsResponse.kt
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package com.epam.brn.dto.response | ||
|
||
import com.epam.brn.dto.statistic.Statistic | ||
import com.epam.brn.dto.statistics.Statistics | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
*/ | ||
data class SubGroupStatisticResponse( | ||
data class SubGroupStatisticsResponse( | ||
val subGroupId: Long, | ||
val completedExercises: Int = 0, | ||
val totalExercises: Int | ||
) : Statistic(progress = null) | ||
) : Statistics(progress = null) |
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
2 changes: 1 addition & 1 deletion
2
...brn/dto/statistic/DayStudyStatisticDto.kt → ...rn/dto/statistics/DayStudyStatisticDto.kt
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
6 changes: 3 additions & 3 deletions
6
...am/brn/dto/statistic/DayStudyStatistic.kt → .../brn/dto/statistics/DayStudyStatistics.kt
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
2 changes: 1 addition & 1 deletion
2
...n/dto/statistic/MonthStudyStatisticDto.kt → .../dto/statistics/MonthStudyStatisticDto.kt
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
6 changes: 3 additions & 3 deletions
6
.../brn/dto/statistic/MonthStudyStatistic.kt → ...rn/dto/statistics/MonthStudyStatistics.kt
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
4 changes: 2 additions & 2 deletions
4
...n/com/epam/brn/dto/statistic/Statistic.kt → ...com/epam/brn/dto/statistics/Statistics.kt
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package com.epam.brn.dto.statistic | ||
package com.epam.brn.dto.statistics | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
*/ | ||
abstract class Statistic( | ||
abstract class Statistics( | ||
progress: UserExercisingProgressStatus? | ||
) |
2 changes: 1 addition & 1 deletion
2
...m/brn/dto/statistic/StatusRequirements.kt → .../brn/dto/statistics/StatusRequirements.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.epam.brn.dto.statistic | ||
package com.epam.brn.dto.statistics | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
|
2 changes: 1 addition & 1 deletion
2
...statistic/UserDailyDetailStatisticsDto.kt → ...tatistics/UserDailyDetailStatisticsDto.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.epam.brn.dto.statistic | ||
package com.epam.brn.dto.statistics | ||
|
||
import kotlin.time.Duration | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...brn/dto/statistic/UserExercisingPeriod.kt → ...rn/dto/statistics/UserExercisingPeriod.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.epam.brn.dto.statistic | ||
package com.epam.brn.dto.statistics | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
|
2 changes: 1 addition & 1 deletion
2
...statistic/UserExercisingProgressStatus.kt → ...tatistics/UserExercisingProgressStatus.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.epam.brn.dto.statistic | ||
package com.epam.brn.dto.statistics | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
|
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
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/com/epam/brn/service/statistic/UserPeriodStatisticService.kt
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
src/main/kotlin/com/epam/brn/service/statistics/UserPeriodStatisticsService.kt
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,19 @@ | ||
package com.epam.brn.service.statistics | ||
|
||
import com.epam.brn.dto.statistics.Statistics | ||
import java.time.LocalDateTime | ||
|
||
/** | ||
*@author Nikolai Lazarev | ||
*/ | ||
interface UserPeriodStatisticsService<T : Statistics> { | ||
|
||
/** | ||
* Should return statistics as Statistics implementation for period for from to to date | ||
* @param from - beginning date of the period | ||
* @param to - ending date of the period | ||
* @param userId - id of the user for how get statistics | ||
* @return list of implementations of Statistics | ||
*/ | ||
fun getStatisticsForPeriod(from: LocalDateTime, to: LocalDateTime, userId: Long? = null): List<T> | ||
} |
Oops, something went wrong.