forked from TeamSparker/Spark-iOS
-
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.
Merge branch 'develop' of https://github.com/TeamSparker/Spark-iOS in…
…to feature/TeamSparker#371
- Loading branch information
Showing
11 changed files
with
546 additions
and
44 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
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
29 changes: 29 additions & 0 deletions
29
Spark-iOS/Spark-iOS/Source/NetworkModels/Notice/ActiveNotice.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,29 @@ | ||
// | ||
// ActiveNotice.swift | ||
// Spark-iOS | ||
// | ||
// Created by 양수빈 on 2022/03/10. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - ActiveNotice | ||
struct ActiveNotice: Codable { | ||
let newService: Bool | ||
let notices: [Active] | ||
} | ||
|
||
// MARK: - Active | ||
struct Active: Codable { | ||
let noticeID: Int | ||
let noticeTitle, noticeContent: String | ||
let noticeImg: String | ||
let isThumbProfile: Bool | ||
let day: String | ||
let isNew: Bool | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case noticeID = "noticeId" | ||
case noticeTitle, noticeContent, noticeImg, isThumbProfile, day, isNew | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Spark-iOS/Spark-iOS/Source/NetworkModels/Notice/ServiceNotice.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,28 @@ | ||
// | ||
// ServiceNotice.swift | ||
// Spark-iOS | ||
// | ||
// Created by 양수빈 on 2022/03/11. | ||
// | ||
|
||
import Foundation | ||
|
||
// MARK: - DataClass | ||
struct ServiceNotice: Codable { | ||
let newActive: Bool | ||
let notices: [Service] | ||
} | ||
|
||
// MARK: - Notice | ||
struct Service: Codable { | ||
let noticeID: Int | ||
let noticeTitle: String | ||
let noticeContent: String | ||
let day: String | ||
let isNew: Bool | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case noticeID = "noticeId" | ||
case noticeTitle, noticeContent, day, isNew | ||
} | ||
} |
Oops, something went wrong.