get
Retrieves the member’s self-report data.
Includes a list of locations and self-report months mapped to the SelfReportData domain model.
Return
SelfReportData with the member’s reported visits. May be empty if no data exists.
Throws
if retrieval fails.
Android (Kotlin)
lifecycleScope.launch {
try {
val data = AFCore.selfReport().get()
showSelfReportHistory(data)
} catch (t: Throwable) {
showError("Could not load self-reports: ${t.message}")
}
}Content copied to clipboard
iOS (Swift)
Task {
do {
let data = try await AFCore.shared.selfReport().get()
self.showSelfReportHistory(data)
} catch {
self.showError("Could not load self-reports: \\(error.localizedDescription)")
}
}Content copied to clipboard