public class WorkoutListItem extends Object implements Comparable<WorkoutListItem>
Modifier and Type | Class and Description |
---|---|
static class |
WorkoutListItem.ActivityType |
Constructor and Description |
---|
WorkoutListItem(int fileId,
String name,
String description,
WorkoutListItem.ActivityType activity,
Workout.WorkoutType workoutType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WorkoutListItem item)
Compares this item to another
|
int |
fileSize() |
WorkoutListItem.ActivityType |
getActivity()
Returns the activity of the workout
|
int |
getFileId()
Returns the file ID of this workout list item.
|
Workout.IntensityLevel |
getIntensityLevel()
Gets the intensity level (e.g.
|
int |
getUnknown12() |
int |
getUnknown13() |
int |
getUnknown8() |
String |
getWorkoutDescription()
Returns the description of the workout
|
byte[] |
getWorkoutId()
Gets the UID identifying the workout.
|
byte[] |
getWorkoutMd5()
Gets the MD5 hash of the workout protobuf file
|
String |
getWorkoutName()
Returns the name of the workout
|
Workout.WorkoutType |
getWorkoutType()
Returns the class/type of workout
|
void |
setFileSize(int unknown9) |
void |
setIntensityLevel(Workout.IntensityLevel level)
Sets the intensity level of the workout
|
void |
setUnknown12(int unknown12) |
void |
setUnknown13(int unknown13) |
void |
setUnknown8(int unknown8) |
void |
setWorkoutId(byte[] workoutId)
Sets the UID identifying the workout
|
void |
setWorkoutMd5(byte[] md5)
Sets the MD5 hash of the workout protobuf file
|
String |
toString()
Returns a textual representation of the Workout List item
|
public WorkoutListItem(int fileId, String name, String description, WorkoutListItem.ActivityType activity, Workout.WorkoutType workoutType)
fileId
- File ID, like 0x00BE0001name
- Name/title of the workoutdescription
- Description of the workoutactivity
- The activity (i.e. RUNNING, CYCLING) of this itemworkoutType
- Class/type of the workoutpublic int getFileId()
public String getWorkoutName()
public String getWorkoutDescription()
public WorkoutListItem.ActivityType getActivity()
public Workout.WorkoutType getWorkoutType()
public byte[] getWorkoutMd5()
public void setWorkoutMd5(byte[] md5)
md5
- The Hash as an array of 16 bytespublic byte[] getWorkoutId()
public void setWorkoutId(byte[] workoutId)
workoutId
- The UID as an array of 16 bytespublic Workout.IntensityLevel getIntensityLevel()
public void setIntensityLevel(Workout.IntensityLevel level)
level
- The levelpublic int getUnknown8()
public void setUnknown8(int unknown8)
public int fileSize()
public void setFileSize(int unknown9)
public int getUnknown12()
public void setUnknown12(int unknown12)
public int getUnknown13()
public void setUnknown13(int unknown13)
public int compareTo(WorkoutListItem item)
compareTo
in interface Comparable<WorkoutListItem>
item
- Item to compare toCopyright © 2020. All rights reserved.