Package de.espirit.firstspirit.agency
Interface UserStatisticsAgent
public interface UserStatisticsAgent
Definition for an agent providing access to user statistics.
- Since:
- 5.2.1607
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SpecialistType<UserStatisticsAgent>
An agent providing access to user statistics. -
Method Summary
Modifier and TypeMethodDescriptiongetLastLogin
(long userId) Returns the date of the last login to the FirstSpirit server performed by this user.@Nullable Date
getLastLoginAsDate
(long userId) Deprecated.
-
Field Details
-
TYPE
An agent providing access to user statistics.- Since:
- 5.2.1607
-
-
Method Details
-
getLastLoginAsDate
Deprecated.since 5.2.180703 - usegetLastLogin(long)
insteadReturns the date of the last login to the FirstSpirit server performed by this user. The time of the returned object will always be set to midnight.- Parameters:
userId
- the id of the user to retrieve the login date for.- Returns:
- the date of the last login or
null
if unknown. - Since:
- 5.2.1607
-
getLastLogin
Returns the date of the last login to the FirstSpirit server performed by this user.- Parameters:
userId
- the id of the user to retrieve the login date for.- Returns:
- the date of the last login or an empty
Optional
if unknown. - Since:
- 5.2.180703
-
getLastLogin(long)
instead