SelfReportMonth

class SelfReportMonth(val month: Int? = 0, val year: Int? = 0, val visits: List<SelfReportVisit> = emptyList())

One month's worth of self-reported visits within a SelfReportData history.

Received as part of SelfReportData.selfReportMonths; groups the member's SelfReportVisit entries by calendar month so a consumer can render them onto a per-month calendar. Each contained visit carries its own day-of-month.

Constructors

Link copied to clipboard
constructor(month: Int? = 0, year: Int? = 0, visits: List<SelfReportVisit> = emptyList())

Properties

Link copied to clipboard
val month: Int?

The 1-based month number (1 = January, 12 = December), or null when the backend omitted it.

Link copied to clipboard

The self-reported visits that fall within this month; defaults to an empty list when there are none.

Link copied to clipboard
val year: Int?

The four-digit year, or null when omitted.

Functions

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