MonthlySummary

class MonthlySummary(var month: Int = 0, var year: Int = 0, var acceptedVisitGoalDays: Int = 0, var acceptedVisitDays: Int = 0, var acceptedActivities: Int = 0, var pendingActivities: Int = 0, var rejectedActivities: Int = 0)

Aggregated counts for a single calendar month, used to drive progress headers and incentive meters above an activity calendar.

Delivered inside AFActivitiesSummary for the requested month/year; it holds only roll-up totals, not the per-activity records (those live in AFActivitiesSummary.activities). "Accepted" here covers the credited states (Approved / Accepted / Completed — see ActivityStatus.isApproved): for example acceptedVisitDays of 8 against an acceptedVisitGoalDays of 12 would render as "8 of 12 days" toward the month's incentive.

Constructors

Link copied to clipboard
constructor(month: Int = 0, year: Int = 0, acceptedVisitGoalDays: Int = 0, acceptedVisitDays: Int = 0, acceptedActivities: Int = 0, pendingActivities: Int = 0, rejectedActivities: Int = 0)

Properties

Link copied to clipboard

Total count of accepted (credited) activities in the month.

Link copied to clipboard

The number of distinct days in the month that had at least one accepted visit (progress toward acceptedVisitGoalDays).

Link copied to clipboard

The number of accepted-visit days required to earn the month's incentive (the goal / denominator of the progress meter).

Link copied to clipboard
var month: Int

The 1-based month number this summary covers (1 = January).

Link copied to clipboard

Total count of activities still awaiting review.

Link copied to clipboard

Total count of rejected/denied activities.

Link copied to clipboard
var year: Int

The four-digit year this summary covers, e.g. 2022.

Functions

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