This commit is contained in:
Trey t
2023-06-18 21:12:17 -05:00
parent 544332c422
commit e6cc60b064
13 changed files with 403 additions and 55 deletions

View File

@@ -0,0 +1,33 @@
//
// Equipment.swift
// Werkout_ios
//
// Created by Trey Tartt on 6/15/23.
//
import Foundation
struct Equipment: Codable {
let id: Int
let createdAt, updatedAt: String
let category, name: String?
enum CodingKeys: String, CodingKey {
case id
case createdAt = "created_at"
case updatedAt = "updated_at"
case category, name
}
}
struct ExerciseEquipment: Codable, Hashable {
let id: Int
let createdAt, updatedAt: String
let exercise, equipment: Int
enum CodingKeys: String, CodingKey {
case id
case createdAt = "created_at"
case updatedAt = "updated_at"
case equipment, exercise
}
}