ActivityMetaData

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, var latitude: Double? = null, var longitude: Double? = null, var deviceType: DeviceType? = null, var facility: Facility? = 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

Constructors

Link copied to clipboard
constructor(facilityId: Int? = null, facilityName: String? = null, address: String? = null, city: String? = null, state: String? = null, details: String? = null, timeSpent: Int? = null, steps: Int? = null, distance: Double? = null, distanceUnit: String? = null, calories: Double? = null, activeMinutes: Int? = null, lastSync: String? = null, latitude: Double? = null, longitude: Double? = null, deviceType: DeviceType? = null, facility: Facility? = null)

Properties

Link copied to clipboard

Number of active minutes during the activity, used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard

The street where the facility is physically located

Link copied to clipboard

Number of calories burned during the activity, used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard
var city: String?

The full name of the city where the facility is physically located

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Total distance traveled, see distanceUnit for unit of length, used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard

Unit of length for the distance, can be 'Miles' or 'Kilometers', used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard

The full Facility record this activity was attributed to, hydrated client-side from the member's facility list. null when the activity has no facilityId, when the facility isn't in the member's current list (e.g. removed or blacklisted), or when the facility list could not be fetched (offline / server error — hydration is best-effort and never fails the activities call). When non-null, exposes radius, dwell, status, type, isPrimary, verified, and beacons for callers that need richer location context than the flat facilityId/facilityName/address fields on this metadata.

Link copied to clipboard

The unique identifier for the facility

Link copied to clipboard

A display-friendly name for the facility

Link copied to clipboard

The last datetime that the recorded activity was synchronized, used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The abbreviated name of the state of the city

Link copied to clipboard
var steps: Int?

Number of steps walked, used only for ActivityType.SMART_WALKING_ACTIVITY

Link copied to clipboard

Duration of the recorded activity in minutes

Functions

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