- Replace ServerConnectivity with CheckServerReachabilityUseCase - Add InfoApiClient for /api/info endpoint - Implement ServerInfoRepository with 30s cache TTL and 5s rate limiting - Update ShareBookmarkViewModel to use ShareExtensionServerCheck manager - Add server reachability check in AppViewModel on app start - Update OfflineSyncManager to use new UseCase - Extend SimpleAPI with checkServerReachability for Share Extension
14 lines
276 B
Swift
14 lines
276 B
Swift
import Foundation
|
|
|
|
struct ServerInfoDto: Codable {
|
|
let version: String
|
|
let buildDate: String?
|
|
let userAgent: String?
|
|
|
|
enum CodingKeys: String, CodingKey {
|
|
case version
|
|
case buildDate = "build_date"
|
|
case userAgent = "user_agent"
|
|
}
|
|
}
|