public class StatsEntity
extends java.lang.Object
This class is not thread-safe.
ManagementAPI
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apiToken |
protected okhttp3.HttpUrl |
baseUrl |
protected okhttp3.OkHttpClient |
client |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
formatDate(java.util.Date date) |
Request<java.lang.Integer> |
getActiveUsersCount()
Request the Active Users Count (logged in during the last 30 days).
|
Request<java.util.List<DailyStats>> |
getDailyStats(java.util.Date from,
java.util.Date to)
Request the Daily Stats for a given period.
|
protected final okhttp3.OkHttpClient client
protected final okhttp3.HttpUrl baseUrl
protected final java.lang.String apiToken
public Request<java.lang.Integer> getActiveUsersCount()
public Request<java.util.List<DailyStats>> getDailyStats(java.util.Date from, java.util.Date to)
from
- the first day of the period (inclusive). Time is not taken into account.to
- the last day of the period (inclusive). Time is not taken into account.protected java.lang.String formatDate(java.util.Date date)