Package-level declarations

Types

Link copied to clipboard
class Activity(var type: ActivityType = ActivityType.UNRECOGNIZED, var statusType: ActivityStatus = ActivityStatus.IGNORE, var date: String, var name: String? = null, var iconRes: String? = null, var dateTimeUtc: String? = null, var metaData: ActivityMetaData? = null, var message: String? = null)

Activity model — a normalized record that has been accepted by the Mobile API.

Link copied to clipboard
class ActivityMetaData(var facilityId: Int? = null, var facilityName: String? = null, var address: String? = null, var city: String? = null, var state: String? = null, var details: String? = null, var timeSpent: Int? = null, var steps: Int? = null, var distance: Double? = null, var distanceUnit: String? = null, var calories: Double? = null, var activeMinutes: Int? = null, var lastSync: String? = null)

It contains metadata about the activity, most of the parameters can be null, with this information the activity data can be represented on a card

Link copied to clipboard

Represents the various statuses that an activity can have within the system. Each status corresponds to a specific state in the activity's lifecycle.

Link copied to clipboard

Represents the type of activity that was recorded. Each activity type has a unique identifier and a string representation.

Link copied to clipboard
class AFActivitiesSummary(var monthlySummary: MonthlySummary, var activities: List<Activity> = emptyList())

AFActivitiesSummary — container for activities data returned by com.advantahealth.api.activities.Activities.

Link copied to clipboard
class AFResult(var status: Boolean = false, var statusMessage: String? = null, var messageCode: String? = null, var exception: AFException? = null)

Data class representing the result of an activity submission.

Link copied to clipboard
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)

A summary of all the recorded activities within the month/year period, it does not contain the metadata of each activity

Link copied to clipboard

Represents the type of a recorded visit, indicating how the visit was captured.