add apple tv app
This commit is contained in:
28
iphone/Werkout_ios/APIModels/Superset.swift
Normal file
28
iphone/Werkout_ios/APIModels/Superset.swift
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// Superset.swift
|
||||
// Werkout_ios
|
||||
//
|
||||
// Created by Trey Tartt on 7/17/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
struct Superset: Codable, Identifiable, Hashable {
|
||||
let id: Int?
|
||||
let exercises: [SupersetExercise]
|
||||
let createdAt, updatedAt, name: String?
|
||||
let rounds, order, workout: Int
|
||||
let estimatedTime: Double?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id, exercises
|
||||
case createdAt = "created_at"
|
||||
case updatedAt = "updated_at"
|
||||
case name, rounds, order, workout
|
||||
case estimatedTime = "estimated_time"
|
||||
}
|
||||
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
return hasher.combine(id)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user