AFResult

class AFResult(var status: Boolean = false, var statusMessage: String? = null, var messageCode: String? = null, var exception: AFException? = null, var queued: Boolean = false)

Data class representing the result of an activity submission.

Constructors

Link copied to clipboard
constructor(status: Boolean = false, statusMessage: String? = null, messageCode: String? = null, exception: AFException? = null, queued: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

An optional code associated with the submission status.

Link copied to clipboard

true when the submission was deferred to the offline outbox because the device had no usable network path. The event will be delivered automatically on the next connectivity restore, app launch, or background flush — callers do not need to retry. status is true in this case (we accepted responsibility for the submission); read queued to differentiate "submitted online" from "queued for later delivery".

Link copied to clipboard

A boolean indicating whether the submission was successful. A submission can be false when there is a duplicate activity or an agreement is not granted yet.

Link copied to clipboard

A message describing the status of the submission, if any.

Functions

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