WIP
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
import Foundation
|
||||
|
||||
struct SupersetExercise: Identifiable, Codable, Equatable, Hashable {
|
||||
var id: Int
|
||||
var id: Int?
|
||||
|
||||
let workout: Int?
|
||||
let exercise: Exercise
|
||||
@@ -17,9 +17,9 @@ struct SupersetExercise: Identifiable, Codable, Equatable, Hashable {
|
||||
let duration: Int?
|
||||
let durationAudio: String?
|
||||
let weightAudio: String?
|
||||
let createdAt: String
|
||||
let order, superset: Int
|
||||
let uniqueID: String
|
||||
let createdAt: String?
|
||||
let order, superset: Int?
|
||||
let uniqueID: String?
|
||||
let description: String?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
|
||||
@@ -13,6 +13,7 @@ struct RegisteredUser: Codable, Hashable {
|
||||
let nickName: String?
|
||||
let token: String?
|
||||
let email: String?
|
||||
let hasNSFWToggle: Bool?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
@@ -21,5 +22,10 @@ struct RegisteredUser: Codable, Hashable {
|
||||
case image, token
|
||||
case email = "email_address"
|
||||
case nickName = "nick_name"
|
||||
case hasNSFWToggle = "has_nsfw_toggle"
|
||||
}
|
||||
|
||||
var NSFWValue: Bool {
|
||||
return hasNSFWToggle ?? false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import Foundation
|
||||
|
||||
struct Superset: Codable, Identifiable, Hashable {
|
||||
let id: Int
|
||||
let id: Int?
|
||||
let exercises: [SupersetExercise]
|
||||
let createdAt, updatedAt, name: String?
|
||||
let rounds, order, workout: Int
|
||||
|
||||
Reference in New Issue
Block a user