- Add BookmarkLabel model and DTO - Create LabelsRepository and PLabelsRepository protocol - Add GetLabelsUseCase for fetching labels - Update BookmarkMapper to handle labels - Add LabelsView and LabelsViewModel for UI - Update BookmarksView and BookmarkLabelsView to display labels - Add green2 color asset for labels - Update API and repository layers to support labels
19 lines
390 B
Swift
19 lines
390 B
Swift
import Foundation
|
|
|
|
struct BookmarkLabelDto: Codable, Identifiable {
|
|
var id: String { get { href } }
|
|
let name: String
|
|
let count: Int
|
|
let href: String
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case name, count, href
|
|
}
|
|
|
|
init(name: String, count: Int, href: String) {
|
|
self.name = name
|
|
self.count = count
|
|
self.href = href
|
|
}
|
|
}
|