Files
timetracker/ios/TimeTracker/TimeTracker/Models/Client.swift
Simon Franken 39d6ea00d9 Fix iOS list response decoding to match plain-array backend responses
GET /clients and GET /projects return bare arrays, not wrapped objects.
Remove ClientListResponse and ProjectListResponse wrapper structs and
update ClientsViewModel, ProjectsViewModel, and TimerViewModel to decode
[Client] and [Project] directly.
2026-02-19 19:05:43 +01:00

20 lines
381 B
Swift

import Foundation
struct Client: Codable, Identifiable, Equatable, Hashable {
let id: String
let name: String
let description: String?
let createdAt: String
let updatedAt: String
}
struct CreateClientInput: Codable {
let name: String
let description: String?
}
struct UpdateClientInput: Codable {
let name: String?
let description: String?
}