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
FieldsModifier 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 DategetLastLoginAsDate(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
nullif 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
Optionalif unknown. - Since:
- 5.2.180703
-
getLastLogin(long)instead