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)

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)

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

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 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.

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