You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
658 B
23 lines
658 B
package net.aiterp.git.ykonsole2.infrastructure
|
|
|
|
import net.aiterp.git.ykonsole2.domain.models.Device
|
|
import net.aiterp.git.ykonsole2.domain.models.Program
|
|
import net.aiterp.git.ykonsole2.domain.models.Workout
|
|
import net.aiterp.git.ykonsole2.domain.models.WorkoutState
|
|
|
|
interface ExportTarget {
|
|
/**
|
|
* Check if [workout] is already exported.
|
|
*/
|
|
suspend fun isExported(workout: Workout): Boolean
|
|
|
|
/**
|
|
* Export a [Workout] with its pertaining [WorkoutState]s, [Device] and [Program].
|
|
*/
|
|
suspend fun export(
|
|
workout: Workout,
|
|
workoutStates: List<WorkoutState>,
|
|
device: Device?,
|
|
program: Program?,
|
|
)
|
|
}
|