forked from Central-MakeUs/PLUV-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.
[modify] Recent -> Me로 이름 변경 (Central-MakeUs#56)
- Loading branch information
Showing
19 changed files
with
403 additions
and
467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// Me.swift | ||
// PLUV | ||
// | ||
// Created by jaegu park on 10/21/24. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Me: Codable { | ||
let id: Int | ||
let transferredAt: String | ||
let transferredSongCount: Int | ||
let title: String | ||
let imageURL: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case id, transferredAt, transferredSongCount, title | ||
case imageURL | ||
} | ||
|
||
init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
self.id = try container.decode(Int.self, forKey: .id) | ||
self.transferredAt = try container.decode(String.self, forKey: .transferredAt) | ||
self.transferredSongCount = try container.decode(Int.self, forKey: .transferredSongCount) | ||
self.title = try container.decode(String.self, forKey: .title) | ||
self.imageURL = try container.decode(String.self, forKey: .imageURL) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.