class ExerciseSegment


Represents particular exercise within an exercise session.

Each segment contains start and end time of the exercise, exercise type and optional number of repetitions.

Summary

Constants

const Int

Use this type for arm curls.

const Int

Use this type for back extensions.

const Int

Use this type for ball slams.

const Int

Use this type for barbel shoulder press.

const Int

Use this type for bench presses.

const Int

Use this type for bench sit up.

const Int

Use this type for biking.

const Int

Use this type for stationary biking.

const Int

Use this type for burpees.

const Int

Use this type for crunches.

const Int

Use this type for deadlifts.

const Int

Use this type for double arms triceps extensions.

const Int

Use this type for left arm dumbbell curl.

const Int
const Int

Use this type for right arm dumbbell curl.

const Int

Use this type for dumbbell lateral raises.

const Int

Use this type for dumbbells rows.

const Int

Use this type for left arm triceps extensions.

const Int

Use this type for right arm triceps extensions.

const Int

Use this type for two arms triceps extensions.

const Int

Use this type for elliptical workout.

const Int

Use this type for forward twists.

const Int

Use this type for front raises.

const Int

Use this type for high intensity training.

const Int

Use this type for hip thrusts.

const Int

Use this type for hula-hoops.

const Int

Use this type for jumping jacks.

const Int

Use this type for jump rope.

const Int

Use this type for kettlebell swings.

const Int

Use this type for lateral raises.

const Int

Use this type for lat pull-downs.

const Int

Use this type for leg curls.

const Int

Use this type for leg extensions.

const Int

Use this type for leg presses.

const Int

Use this type for leg raises.

const Int

Use this type for lunges.

const Int

Use this type for mountain climber.

const Int

Use this type for other workout.

const Int

Use this type for the pause.

const Int

Use this type for pilates.

const Int

Use this type for plank.

const Int

Use this type for pull-ups.

const Int

Use this type for punches.

const Int

Use this type for the rest.

const Int

Use this type for rowing machine workout.

const Int

Use this type for running.

const Int

Use this type for treadmill running.

const Int
const Int

Use this type for shoulder press.

const Int

Use this type for sit-ups.

const Int

Use this type for squats.

const Int

Use this type for stair climbing.

const Int

Use this type for stair climbing machine.

const Int

Use this type for stretching.

const Int

Use this type for backstroke swimming.

const Int

Use this type for breaststroke swimming.

const Int

Use this type for butterfly swimming.

const Int
const Int

Use this type for mixed swimming.

const Int

Use this type for swimming in open water.

const Int

Use this type if other swimming styles are not suitable.

const Int

Use this type for swimming in the pool.

const Int

Use this type if the type of the exercise segment is not known.

const Int

Use this type for upper twists.

const Int

Use this type for walking.

const Int

Use this type for weightlifting.

const Int

Use this type for wheelchair.

const Int

Use this type for yoga.

Public constructors

ExerciseSegment(
    startTime: Instant,
    endTime: Instant,
    segmentType: Int,
    repetitions: Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Instant
Int

Number of repetitions in the segment.

Int

Type of segment (e.g. biking, plank).

Instant

Constants

EXERCISE_SEGMENT_TYPE_ARM_CURL

const val EXERCISE_SEGMENT_TYPE_ARM_CURL = 1: Int

Use this type for arm curls.

EXERCISE_SEGMENT_TYPE_BACK_EXTENSION

const val EXERCISE_SEGMENT_TYPE_BACK_EXTENSION = 2: Int

Use this type for back extensions.

EXERCISE_SEGMENT_TYPE_BALL_SLAM

const val EXERCISE_SEGMENT_TYPE_BALL_SLAM = 3: Int

Use this type for ball slams.

EXERCISE_SEGMENT_TYPE_BARBELL_SHOULDER_PRESS

const val EXERCISE_SEGMENT_TYPE_BARBELL_SHOULDER_PRESS = 4: Int

Use this type for barbel shoulder press.

EXERCISE_SEGMENT_TYPE_BENCH_PRESS

const val EXERCISE_SEGMENT_TYPE_BENCH_PRESS = 5: Int

Use this type for bench presses.

EXERCISE_SEGMENT_TYPE_BENCH_SIT_UP

const val EXERCISE_SEGMENT_TYPE_BENCH_SIT_UP = 6: Int

Use this type for bench sit up.

EXERCISE_SEGMENT_TYPE_BIKING

const val EXERCISE_SEGMENT_TYPE_BIKING = 7: Int

Use this type for biking.

EXERCISE_SEGMENT_TYPE_BIKING_STATIONARY

const val EXERCISE_SEGMENT_TYPE_BIKING_STATIONARY = 8: Int

Use this type for stationary biking.

EXERCISE_SEGMENT_TYPE_BURPEE

const val EXERCISE_SEGMENT_TYPE_BURPEE = 9: Int

Use this type for burpees.

EXERCISE_SEGMENT_TYPE_CRUNCH

const val EXERCISE_SEGMENT_TYPE_CRUNCH = 10: Int

Use this type for crunches.

EXERCISE_SEGMENT_TYPE_DEADLIFT

const val EXERCISE_SEGMENT_TYPE_DEADLIFT = 11: Int

Use this type for deadlifts.

EXERCISE_SEGMENT_TYPE_DOUBLE_ARM_TRICEPS_EXTENSION

const val EXERCISE_SEGMENT_TYPE_DOUBLE_ARM_TRICEPS_EXTENSION = 12: Int

Use this type for double arms triceps extensions.

EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_LEFT_ARM

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_LEFT_ARM = 13: Int

Use this type for left arm dumbbell curl.

EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_RIGHT_ARM

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_CURL_RIGHT_ARM = 14: Int

EXERCISE_SEGMENT_TYPE_DUMBBELL_FRONT_RAISE

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_FRONT_RAISE = 15: Int

Use this type for right arm dumbbell curl.

EXERCISE_SEGMENT_TYPE_DUMBBELL_LATERAL_RAISE

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_LATERAL_RAISE = 16: Int

Use this type for dumbbell lateral raises.

EXERCISE_SEGMENT_TYPE_DUMBBELL_ROW

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_ROW = 17: Int

Use this type for dumbbells rows.

EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_LEFT_ARM

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_LEFT_ARM = 18: Int

Use this type for left arm triceps extensions.

EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_RIGHT_ARM

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_RIGHT_ARM = 19: Int

Use this type for right arm triceps extensions.

EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_TWO_ARM

const val EXERCISE_SEGMENT_TYPE_DUMBBELL_TRICEPS_EXTENSION_TWO_ARM = 20: Int

Use this type for two arms triceps extensions.

EXERCISE_SEGMENT_TYPE_ELLIPTICAL

const val EXERCISE_SEGMENT_TYPE_ELLIPTICAL = 21: Int

Use this type for elliptical workout.

EXERCISE_SEGMENT_TYPE_FORWARD_TWIST

const val EXERCISE_SEGMENT_TYPE_FORWARD_TWIST = 22: Int

Use this type for forward twists.

EXERCISE_SEGMENT_TYPE_FRONT_RAISE

const val EXERCISE_SEGMENT_TYPE_FRONT_RAISE = 23: Int

Use this type for front raises.

EXERCISE_SEGMENT_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING

const val EXERCISE_SEGMENT_TYPE_HIGH_INTENSITY_INTERVAL_TRAINING = 24: Int

Use this type for high intensity training.

EXERCISE_SEGMENT_TYPE_HIP_THRUST

const val EXERCISE_SEGMENT_TYPE_HIP_THRUST = 25: Int

Use this type for hip thrusts.

EXERCISE_SEGMENT_TYPE_HULA_HOOP

const val EXERCISE_SEGMENT_TYPE_HULA_HOOP = 26: Int

Use this type for hula-hoops.

EXERCISE_SEGMENT_TYPE_JUMPING_JACK

const val EXERCISE_SEGMENT_TYPE_JUMPING_JACK = 27: Int

Use this type for jumping jacks.

EXERCISE_SEGMENT_TYPE_JUMP_ROPE

const val EXERCISE_SEGMENT_TYPE_JUMP_ROPE = 28: Int

Use this type for jump rope.

EXERCISE_SEGMENT_TYPE_KETTLEBELL_SWING

const val EXERCISE_SEGMENT_TYPE_KETTLEBELL_SWING = 29: Int

Use this type for kettlebell swings.

EXERCISE_SEGMENT_TYPE_LATERAL_RAISE

const val EXERCISE_SEGMENT_TYPE_LATERAL_RAISE = 30: Int

Use this type for lateral raises.

EXERCISE_SEGMENT_TYPE_LAT_PULL_DOWN

const val EXERCISE_SEGMENT_TYPE_LAT_PULL_DOWN = 31: Int

Use this type for lat pull-downs.

EXERCISE_SEGMENT_TYPE_LEG_CURL

const val EXERCISE_SEGMENT_TYPE_LEG_CURL = 32: Int

Use this type for leg curls.

EXERCISE_SEGMENT_TYPE_LEG_EXTENSION

const val EXERCISE_SEGMENT_TYPE_LEG_EXTENSION = 33: Int

Use this type for leg extensions.

EXERCISE_SEGMENT_TYPE_LEG_PRESS

const val EXERCISE_SEGMENT_TYPE_LEG_PRESS = 34: Int

Use this type for leg presses.

EXERCISE_SEGMENT_TYPE_LEG_RAISE

const val EXERCISE_SEGMENT_TYPE_LEG_RAISE = 35: Int

Use this type for leg raises.

EXERCISE_SEGMENT_TYPE_LUNGE

const val EXERCISE_SEGMENT_TYPE_LUNGE = 36: Int

Use this type for lunges.

EXERCISE_SEGMENT_TYPE_MOUNTAIN_CLIMBER

const val EXERCISE_SEGMENT_TYPE_MOUNTAIN_CLIMBER = 37: Int

Use this type for mountain climber.

EXERCISE_SEGMENT_TYPE_OTHER_WORKOUT

const val EXERCISE_SEGMENT_TYPE_OTHER_WORKOUT = 38: Int

Use this type for other workout.

EXERCISE_SEGMENT_TYPE_PAUSE

const val EXERCISE_SEGMENT_TYPE_PAUSE = 39: Int

Use this type for the pause.

EXERCISE_SEGMENT_TYPE_PILATES

const val EXERCISE_SEGMENT_TYPE_PILATES = 40: Int

Use this type for pilates.

EXERCISE_SEGMENT_TYPE_PLANK

const val EXERCISE_SEGMENT_TYPE_PLANK = 41: Int

Use this type for plank.

EXERCISE_SEGMENT_TYPE_PULL_UP

const val EXERCISE_SEGMENT_TYPE_PULL_UP = 42: Int

Use this type for pull-ups.

EXERCISE_SEGMENT_TYPE_PUNCH

const val EXERCISE_SEGMENT_TYPE_PUNCH = 43: Int

Use this type for punches.

EXERCISE_SEGMENT_TYPE_REST

const val EXERCISE_SEGMENT_TYPE_REST = 44: Int

Use this type for the rest.

EXERCISE_SEGMENT_TYPE_ROWING_MACHINE

const val EXERCISE_SEGMENT_TYPE_ROWING_MACHINE = 45: Int

Use this type for rowing machine workout.

EXERCISE_SEGMENT_TYPE_RUNNING

const val EXERCISE_SEGMENT_TYPE_RUNNING = 46: Int

Use this type for running.

EXERCISE_SEGMENT_TYPE_RUNNING_TREADMILL

const val EXERCISE_SEGMENT_TYPE_RUNNING_TREADMILL = 47: Int

Use this type for treadmill running.

EXERCISE_SEGMENT_TYPE_SHOULDER_PRESS

const val EXERCISE_SEGMENT_TYPE_SHOULDER_PRESS = 48: Int

EXERCISE_SEGMENT_TYPE_SINGLE_ARM_TRICEPS_EXTENSION

const val EXERCISE_SEGMENT_TYPE_SINGLE_ARM_TRICEPS_EXTENSION = 49: Int

Use this type for shoulder press.

EXERCISE_SEGMENT_TYPE_SIT_UP

const val EXERCISE_SEGMENT_TYPE_SIT_UP = 50: Int

Use this type for sit-ups.

EXERCISE_SEGMENT_TYPE_SQUAT

const val EXERCISE_SEGMENT_TYPE_SQUAT = 51: Int

Use this type for squats.

EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING

const val EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING = 52: Int

Use this type for stair climbing.

EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING_MACHINE

const val EXERCISE_SEGMENT_TYPE_STAIR_CLIMBING_MACHINE = 53: Int

Use this type for stair climbing machine.

EXERCISE_SEGMENT_TYPE_STRETCHING

const val EXERCISE_SEGMENT_TYPE_STRETCHING = 54: Int

Use this type for stretching.

EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTROKE

const val EXERCISE_SEGMENT_TYPE_SWIMMING_BACKSTROKE = 55: Int

Use this type for backstroke swimming.

EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE

const val EXERCISE_SEGMENT_TYPE_SWIMMING_BREASTSTROKE = 56: Int

Use this type for breaststroke swimming.

EXERCISE_SEGMENT_TYPE_SWIMMING_BUTTERFLY

const val EXERCISE_SEGMENT_TYPE_SWIMMING_BUTTERFLY = 57: Int

Use this type for butterfly swimming.

EXERCISE_SEGMENT_TYPE_SWIMMING_FREESTYLE

const val EXERCISE_SEGMENT_TYPE_SWIMMING_FREESTYLE = 58: Int

EXERCISE_SEGMENT_TYPE_SWIMMING_MIXED

const val EXERCISE_SEGMENT_TYPE_SWIMMING_MIXED = 59: Int

Use this type for mixed swimming.

EXERCISE_SEGMENT_TYPE_SWIMMING_OPEN_WATER

const val EXERCISE_SEGMENT_TYPE_SWIMMING_OPEN_WATER = 60: Int

Use this type for swimming in open water.

EXERCISE_SEGMENT_TYPE_SWIMMING_OTHER

const val EXERCISE_SEGMENT_TYPE_SWIMMING_OTHER = 61: Int

Use this type if other swimming styles are not suitable.

EXERCISE_SEGMENT_TYPE_SWIMMING_POOL

const val EXERCISE_SEGMENT_TYPE_SWIMMING_POOL = 62: Int

Use this type for swimming in the pool.

EXERCISE_SEGMENT_TYPE_UNKNOWN

const val EXERCISE_SEGMENT_TYPE_UNKNOWN = 0: Int

Use this type if the type of the exercise segment is not known.

EXERCISE_SEGMENT_TYPE_UPPER_TWIST

const val EXERCISE_SEGMENT_TYPE_UPPER_TWIST = 63: Int

Use this type for upper twists.

EXERCISE_SEGMENT_TYPE_WALKING

const val EXERCISE_SEGMENT_TYPE_WALKING = 64: Int

Use this type for walking.

EXERCISE_SEGMENT_TYPE_WEIGHTLIFTING

const val EXERCISE_SEGMENT_TYPE_WEIGHTLIFTING = 65: Int

Use this type for weightlifting.

EXERCISE_SEGMENT_TYPE_WHEELCHAIR

const val EXERCISE_SEGMENT_TYPE_WHEELCHAIR = 66: Int

Use this type for wheelchair.

EXERCISE_SEGMENT_TYPE_YOGA

const val EXERCISE_SEGMENT_TYPE_YOGA = 67: Int

Use this type for yoga.

Public constructors

ExerciseSegment

Added in 1.1.0-alpha07
ExerciseSegment(
    startTime: Instant,
    endTime: Instant,
    segmentType: Int,
    repetitions: Int = 0
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

endTime

Added in 1.1.0-alpha07
val endTimeInstant

repetitions

Added in 1.1.0-alpha07
val repetitionsInt

Number of repetitions in the segment. Must be non-negative.

segmentType

Added in 1.1.0-alpha07
val segmentTypeInt

Type of segment (e.g. biking, plank).

startTime

Added in 1.1.0-alpha07
val startTimeInstant