getUserStats

abstract suspend fun getUserStats(userId: String? = null, venueId: String? = null, startTime: Long? = null, endTime: Long? = null): Stats

Retrieves the statistics for a user within a specified date range.

Return

A Stats object containing the retrieved resort statistics.

Parameters

userId

The ID of the user to retrieve statistics for, or null to use the current user ID.

venueId

The ID of the venue to retrieve statistics for, or null to retrieve statistics for all venues.

startTime

A Unix time in milliseconds. Restricts the retrieved results to be only those created after startTime. Defaults to null, which will retrieve: all results before the endTime parameter, or all results if endTime is also null.

endTime

A Unix time in milliseconds. Restricts the retrieved results to bo only those created before endTime. Defaults to null, which will retrieve: all results after the startTime parameter, or all results if startTime is also null.


abstract fun getUserStats(userId: String? = null, venueId: String? = null, startTime: Long? = null, endTime: Long? = null, completionCallback: CompletionCallback<Stats>)

Retrieves the statistics for a user and calls the specified completion callback when finished.

Parameters

userId

The ID of the user to retrieve statistics for, or null to use the current user ID.

venueId

The ID of the venue to retrieve statistics for, or null to retrieve statistics for all venues.

startTime

A Unix time in milliseconds. Restricts the retrieved results to only those created after startTime. Defaults to null, which will retrieve: all results before the endTime parameter, or all results if endTime is also null.

endTime

A Unix time in milliseconds. Restricts the retrieved results to only those created before endTime. Defaults to null, which will retrieve: all results after the startTime parameter, or all results if startTime is also null.

completionCallback

The completion callback to call when the statistics have been retrieved.