StatsService

abstract class StatsService(context: Context) : BaseService

This class provides methods for retrieving statistics for a user and/or venue.

Parameters

context

The context used to create the service.

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
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.

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.