Interface UserStats
public interface UserStats
-
Method Summary
Modifier and TypeMethodDescriptionlongintbooleanisOnline()@Nullable LocalDateTimestatic @NotNull UserStatsof(int userId, long playTime, int dailyStreak, @Nullable LocalDateTime lastSeenAt, boolean isOnline) longplayTime()intuserId()
-
Method Details
-
userId
int userId() -
playTime
long playTime() -
dailyStreak
int dailyStreak() -
lastSeenAt
-
isOnline
boolean isOnline() -
currentPlayTime
long currentPlayTime() -
of
@NotNull static @NotNull UserStats of(int userId, long playTime, int dailyStreak, @Nullable @Nullable LocalDateTime lastSeenAt, boolean isOnline)
-