Server Statistics - #49
Merged
Merged
Conversation
…tistics # Conflicts: # src/main/java/com/mycompany/tictactoeserver/datasource/database/dao/SessionDAO.java # src/main/java/com/mycompany/tictactoeserver/datasource/model/Session.java # src/main/java/com/mycompany/tictactoeserver/domain/services/statistics/ActivityService.java # src/main/java/com/mycompany/tictactoeserver/domain/services/statistics/StatisticsManager.java # src/main/java/com/mycompany/tictactoeserver/domain/services/statistics/StatisticsManagerImpl.java # src/main/java/com/mycompany/tictactoeserver/domain/utils/exception/ActivityNotFoundException.java # src/main/java/com/mycompany/tictactoeserver/domain/utils/exception/SessionNotFoundException.java
tasneem-hakeem
requested review from
Hazem-0,
MahmoudRafaat,
SherifAshraf2020 and
ZeiadT
January 6, 2026 23:05
Hazem-0
approved these changes
Jan 7, 2026
tasneem-hakeem
marked this pull request as draft
January 7, 2026 20:51
MahmoudRafaat
approved these changes
Jan 8, 2026
tasneem-hakeem
marked this pull request as ready for review
January 8, 2026 06:14
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces:
Session refactor: Renamed ActivityDAO to SessionDAO and updated all related terms.
Model update: Renamed ActivityPoint model class to Session.
Hourly tracking entity: Created ActivityPoint entity specifically for tracking hourly player counts.
Player entity: Added PlayerEntity class for domain-layer player representation.
Player service: Created PlayerService for player-related operations.
Login enhancement: Integrated PlayerSessionService to start sessions on successful login.
Online tracking: Added method to GameServerManager to get the current online player count.
Offline tracking: Added a method to calculate the offline player count.
closes Server Statistics Feature #12