-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
214 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/AddAppRequestDTO.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,12 @@ | ||
// | ||
// AddAppRequestDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AddAppRequestDTO: Codable { | ||
let apps: [Apps] | ||
} |
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/AddAppResponseDTO.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,12 @@ | ||
// | ||
// AddAppResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct AddAppResponseDTO: Codable { | ||
let apps: [Apps] | ||
} |
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/CreateChallengeRequestDTO.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,12 @@ | ||
// | ||
// CreateChallengeRequestDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/12/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct CreateChallengeRequestDTO: Codable { | ||
let period, goalTime: Int | ||
} |
16 changes: 16 additions & 0 deletions
16
HMH_iOS/HMH_iOS/Network/DTO/Challenge/CreateChallengeResponseDTO.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,16 @@ | ||
// | ||
// CreateChallengeResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/12/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct CreateChallengeResponseDTO: Codable { | ||
let challengeID: Int | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case challengeID = "challengeId" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/DeleteAppRequestDTO.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,12 @@ | ||
// | ||
// DeleteAppRequestDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct DeleteAppRequestDTO: Codable { | ||
let appCode: String | ||
} |
10 changes: 10 additions & 0 deletions
10
HMH_iOS/HMH_iOS/Network/DTO/Challenge/EmptyResponseDTO.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,10 @@ | ||
// | ||
// EmptyResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct EmptyResponseDTO: Codable { } |
16 changes: 16 additions & 0 deletions
16
HMH_iOS/HMH_iOS/Network/DTO/Challenge/GetChallengeResponseDTO.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,16 @@ | ||
// | ||
// getChallengeResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct GetChallengeResponseDTO: Codable { | ||
let period: Int | ||
let statuses: [String] | ||
let todayIndex: Int | ||
let goalTime: Int | ||
let apps: [Apps] | ||
} |
24 changes: 24 additions & 0 deletions
24
HMH_iOS/HMH_iOS/Network/DTO/Challenge/GetDummyResponseDTO.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,24 @@ | ||
// | ||
// GetDummyResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 김보연 on 1/19/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct GetDummyResponseDTO: Codable { | ||
let apps: [App] | ||
} | ||
|
||
struct App: Codable { | ||
let appName: String | ||
let appImageURL: String | ||
let goalTime, usageTime: Int | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case appName | ||
case appImageURL = "appImageUrl" | ||
case goalTime, usageTime | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
HMH_iOS/HMH_iOS/Network/DTO/Challenge/GetHomeChallengeResponseDTO.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,14 @@ | ||
// | ||
// GetHomeChallengeResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 김보연 on 1/18/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct GetHomeChallengeResponseDTO: Codable { | ||
let status: String | ||
let goalTime: Int | ||
let apps: [Apps] | ||
} |
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/HomeChallengeResponseDTO.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,12 @@ | ||
// | ||
// HomeChallengeResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct HomeChallengeResponseDTO: Codable { | ||
let apps: [Apps] | ||
} |
12 changes: 12 additions & 0 deletions
12
HMH_iOS/HMH_iOS/Network/DTO/Challenge/MidnightRequestDTO.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,12 @@ | ||
// | ||
// Midnight.swift | ||
// HMH_iOS | ||
// | ||
// Created by 지희의 MAC on 1/16/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct MidnightRequestDTO: Codable { | ||
let apps: [Apps] | ||
} |
18 changes: 18 additions & 0 deletions
18
HMH_iOS/HMH_iOS/Network/DTO/MyPage/GetUserDataResponseDTO.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,18 @@ | ||
// | ||
// GetUserDataResponseDTO.swift | ||
// HMH_iOS | ||
// | ||
// Created by 김보연 on 1/14/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct GetUserDataResponseDTO: Codable { | ||
let name: String | ||
let point: Int | ||
|
||
enum CodingKeys: CodingKey { | ||
case name | ||
case point | ||
} | ||
} |