AFActivitiesSummary

class AFActivitiesSummary(var monthlySummary: MonthlySummary, var activities: List<Activity> = emptyList())

AFActivitiesSummary — container for activities data returned by com.advantahealth.api.activities.Activities.

This model combines:

  • A MonthlySummary with aggregated stats (totals, progress).

  • A list of Activity records (all statuses, all days).

When it's used

Returned by:

Notes

  • activities includes all statuses (accepted, pending, rejected, completed).

Example (Kotlin)

val august = AFCore.activities.get(month = 8, year = 2025)
val accepted = august.activities.filter { it.status == "Accepted" }
println("Accepted activities in August: ${accepted.size}")

Constructors

Link copied to clipboard
constructor(monthlySummary: MonthlySummary, activities: List<Activity> = emptyList())

Properties

Link copied to clipboard

All Activity records for the requested month across every status (accepted, pending, rejected, completed) and every type (visits, self-reports, SmartWalking, partner activities), in backend order; filter or group client-side as needed. Empty when the month has no records.

Link copied to clipboard

Aggregated roll-up counts for the requested month (visit-goal progress and accepted/pending/rejected totals) used to render the calendar's progress header.

Functions

Link copied to clipboard
open override fun toString(): String