AFActivitiesSummary

class AFActivitiesSummary(var monthlySummary: MonthlySummary, var activities: List<Activity> = emptyList(), var dailyWalking: List<DailyWalkingSummary> = 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(), dailyWalking: List<DailyWalkingSummary> = emptyList())
constructor(monthlySummary: MonthlySummary, activities: List<Activity>)

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

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

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.

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