package com.walkguide.dto.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * Response untuk SOS event.
 * userId ditambahkan agar Guardian bisa tahu milik siapa saat receive via WebSocket.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SosEventResponse {
    private Long id;
    private Long userId;          // ✅ BARU — dibutuhkan WebSocket broadcast ke Guardian
    private String triggerType;   // VOICE_COMMAND | BUTTON | MANUAL
    private Double lat;
    private Double lng;
    private String status;        // TRIGGERED | ACKNOWLEDGED | RESOLVED
    private LocalDateTime acknowledgedAt;
    private LocalDateTime createdAt;
}
