Package de.murmelmeister.murmelapi.time
Class JoinLoggerProvider
java.lang.Object
de.murmelmeister.murmelapi.time.JoinLoggerProvider
- All Implemented Interfaces:
JoinLogger
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
JoinLoggerProvider
public JoinLoggerProvider()
-
-
Method Details
-
createJoinDate
public int createJoinDate(int userId) Description copied from interface:JoinLoggerLogs the join date for a user identified by the given userId.- Specified by:
createJoinDatein interfaceJoinLogger- Parameters:
userId- The ID of the user whose join date is to be recorded
-
deleteUser
public void deleteUser(int userId) Description copied from interface:JoinLoggerDeletes the user identified by the given userId from the system.- Specified by:
deleteUserin interfaceJoinLogger- Parameters:
userId- The ID of the user to be deleted.
-
getTimeIds
Description copied from interface:JoinLoggerRetrieves a list of time IDs associated with a specific user.- Specified by:
getTimeIdsin interfaceJoinLogger- 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
public long getJoinTime(int timeId, int userId) Description copied from interface:JoinLoggerRetrieves the join time for a user identified by the given userId and timeId.- Specified by:
getJoinTimein interfaceJoinLogger- 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
Description copied from interface:JoinLoggerRetrieves the join date for a user identified by the given userId and timeId.- Specified by:
getJoinDatein interfaceJoinLogger- 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.
-