ReadKeep/readeck/Domain/Model/BookmarkLabel.swift
Ilyas Hallak 3e6db364b5 Add bookmark labels functionality
- 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
2025-07-09 22:28:19 +02:00

16 lines
410 B
Swift

import Foundation
struct BookmarkLabel: Identifiable, Equatable, Hashable {
let id: String // kann href oder name sein, je nach Backend
let name: String
let count: Int
let href: String
init(name: String, count: Int, href: String) {
self.name = name
self.count = count
self.href = href
self.id = href // oder name, je nach Backend-Eindeutigkeit
}
}