Package de.murmelmeister.murmelapi.time
Interface JoinLogger
- All Known Implementing Classes:
JoinLoggerProvider
JoinLogger interface defines the contract for logging and managing join dates of users.
-
Method Summary
Modifier and TypeMethodDescriptionintcreateJoinDate(int userId) Logs the join date for a user identified by the given userId.voiddeleteUser(int userId) Deletes the user identified by the given userId from the system.getJoinDate(int timeId, int userId) Retrieves the join date for a user identified by the given userId and timeId.longgetJoinTime(int timeId, int userId) Retrieves the join time for a user identified by the given userId and timeId.getTimeIds(int userId) Retrieves a list of time IDs associated with a specific user.
-
Method Details
-
createJoinDate
int createJoinDate(int userId) Logs the join date for a user identified by the given userId.- Parameters:
userId- The ID of the user whose join date is to be recorded
-
deleteUser
void deleteUser(int userId) Deletes the user identified by the given userId from the system.- Parameters:
userId- The ID of the user to be deleted.
-
getTimeIds
Retrieves a list of time IDs associated with a specific user.- Parameters:
userId- The ID of the user whose time IDs are to be retrieved.- Returns:
- A list of time IDs associated with the given user ID.
-
getJoinTime
long getJoinTime(int timeId, int userId) Retrieves the join time for a user identified by the given userId and timeId.- Parameters:
timeId- The ID of the time record.userId- The ID of the user whose join time is being retrieved.- Returns:
- The join time in milliseconds since epoch for the specified user and timeId.
-
getJoinDate
Retrieves the join date for a user identified by the given userId and timeId.- Parameters:
timeId- The ID of the time record.userId- The ID of the user whose join date is being retrieved.- Returns:
- The formatted join date string for the specified user and timeId.
-