-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨[FEAT] 일간 수영 데이터 반 뷰에 집어넣기 구현 완료(#93)
- Loading branch information
1 parent
35f3c6d
commit 8634bef
Showing
6 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
Umpah-iOS/Umpah-iOS/Network/Model/Record/DayRecordModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// | ||
// DayRecordModel.swift | ||
// Umpah-iOS | ||
// | ||
// Created by SHIN YOON AH on 2022/02/19. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - DayRecordModel | ||
struct DayRecordModel: Codable { | ||
let success: Bool | ||
let message: String | ||
let data: DayRecord | ||
} | ||
|
||
// MARK: - DataClass | ||
struct DayRecord: Codable { | ||
let date: String | ||
let totalDistance, totalTime, totalCalorie, totalBPM: Int | ||
let freestyleTotalDistance: Int | ||
let freestyleTotalSpeed: String | ||
let breastTotalDistance: Int | ||
let breastTotalSpeed: String | ||
let backTotalDistance: Int | ||
let backTotalSpeed: String | ||
let butterflyTotalDistance: Int | ||
let butterflyTotalSpeed, imTotalSpeed: String | ||
let recordLabsList: [RecordLabsList] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case date, totalDistance, totalTime, totalCalorie | ||
case totalBPM = "totalBpm" | ||
case freestyleTotalDistance, freestyleTotalSpeed, breastTotalDistance, breastTotalSpeed, backTotalDistance, backTotalSpeed, butterflyTotalDistance, butterflyTotalSpeed, imTotalSpeed, recordLabsList | ||
} | ||
} | ||
|
||
// MARK: - RecordLabsList | ||
struct RecordLabsList: Codable { | ||
let recordID: Int | ||
var stroke: String | ||
var distance, time: Int | ||
var speed: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case recordID = "recordId" | ||
case stroke, distance, time, speed | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters