AFActivities Summary
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:
com.advantahealth.api.activities.Activities.get → monthly summary for a calendar view.
Notes
activitiesincludes 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
The 1.11 constructor. Kotlin default arguments do not reach Swift, so without it a Swift caller written against 1.11 (a preview, a test fake) would stop compiling.
Properties
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.
The month's SmartWalking entries rolled up to one DailyWalkingSummary per day, oldest day first — the chart-ready view of the same data activities carries per sync window. Days the member did not sync are absent, not zeroed. Empty when the month has no SmartWalking activity.
Aggregated roll-up counts for the requested month (visit-goal progress and accepted/pending/rejected totals) used to render the calendar's progress header.