DFWatchFaceMockService.swift 792 Bytes
//
//  DFWatchFaceMockService.swift
//  hippo-watch-extension
//

enum DFWatchFaceMockService {
    static func fetch(face: DFWatchFaceKind) async -> DFWatchFaceData {
        // TODO: Replace this with the real watch face API request.
        switch face {
        case .defaultHome:
            return .placeholder
        case .singleStress:
            var data = DFWatchFaceData.placeholder
            data.myStatus = .overloaded
            data.hrvValue = 38
            data.hrvTime = "16:06"
            return data
        case .coupleStress:
            var data = DFWatchFaceData.placeholder
            data.myStatus = .excellent
            data.partnerStatus = .overloaded
            data.myHRV = 80
            data.partnerHRV = 30
            return data
        }
    }
}