WIP
This commit is contained in:
37
Werkout_ios/Network/Fetchables.swift
Normal file
37
Werkout_ios/Network/Fetchables.swift
Normal file
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// AllWorkoutFetchable.swift
|
||||
// Werkout_ios
|
||||
//
|
||||
// Created by Trey Tartt on 6/19/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class AllWorkoutFetchable: Fetchable {
|
||||
typealias Response = [Workout]
|
||||
var endPoint: String = "workout/all/"
|
||||
}
|
||||
|
||||
class WorkoutDetailFetchable: Fetchable {
|
||||
typealias Response = Workout
|
||||
var endPoint: String
|
||||
|
||||
init(workoutID: String) {
|
||||
self.endPoint = "/workout/"+workoutID+"/details/"
|
||||
}
|
||||
}
|
||||
|
||||
class AllMusclesFetchable: Fetchable {
|
||||
typealias Response = [Muscle]
|
||||
var endPoint: String = "muscle/all/"
|
||||
}
|
||||
|
||||
class AllEquipmentFetchable: Fetchable {
|
||||
typealias Response = [Equipment]
|
||||
var endPoint: String = "equipment/all/"
|
||||
}
|
||||
|
||||
class AllExerciseFetchable: Fetchable {
|
||||
typealias Response = [ExerciseExercise]
|
||||
var endPoint: String = "exercise/all/"
|
||||
}
|
||||
Reference in New Issue
Block a user