Package 

Class Fitness

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class Fitness
    extends Record
                        

    Fitness records return data for activities that are undertaken with the express purpose of exercising. These activities have a defined duration (time, distance, elevation, etc.).

    • Constructor Summary

      Constructors 
      Constructor Description
      Fitness() Fitness records return data for activities that are undertaken with the express purpose of exercising.
      Fitness(Peripheral peripheral) Base class for all objects that represent health records initialized with a BluetoothPeripheral.
    • Method Summary

      Modifier and Type Method Description
      String getActivityCategory()
      void setActivityCategory(String activityCategory)
      String getType() Type of fitness activity: Walking, Running, Swimming, etc.
      void setType(String type) Type of fitness activity: Walking, Running, Swimming, etc.
      String getIntensity() Subjective intensity with which an activity was performed.
      void setIntensity(String intensity) Subjective intensity with which an activity was performed.
      void setStartTime(Date startTime) Timestamp of when fitness activity started in ISO08601 format
      BigDecimal getDistance() Distance in meters
      void setDistance(BigDecimal distance) Distance in meters
      BigDecimal getDuration() Duration of fitness activity in seconds
      void setDuration(BigDecimal duration) Duration of fitness activity in seconds
      BigDecimal getCalories() Calories burned during fitness activity
      void setCalories(BigDecimal calories) Calories burned during fitness activity
      • Methods inherited from class com.validic.mobile.record.Record

        createSummary, getActivityID, getComment, getExtra, getExtras, getHashedString, getIdentifier, getIntermediarySource, getLastUpdated, getMedia, getOriginalSource, getPeripheral, getQueueId, getRecordID, getRecordType, getSource, getSourceName, getSourcePeripheral, getTimestamp, getUtcOffset, getValidated, isSHealthRecord, newRecordFromPeripheral, newRecordWithType, setActivityID, setComment, setHashedActivityId, setIntermediarySource, setLastUpdated, setMedia, setOriginalSource, setPeripheral, setRecordID, setRecordType, setSource, setSourceName, setSourcePeripheral, setTimeStampToMidnight, setTimestamp, setTimestamp, setUtcOffset, setValidated
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Fitness

        Fitness()
        Fitness records return data for activities that are undertaken with the express purpose of exercising.
      • Fitness

        Fitness(Peripheral peripheral)
        Base class for all objects that represent health records initialized with a BluetoothPeripheral.