package org.github.tess1o.geopulse.gpssource.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.github.tess1o.geopulse.shared.gps.GpsSourceType;

import java.util.UUID;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreateGpsSourceConfigDto {
    private GpsSourceType type;
    private String username;
    private String password;
    private String token;
    private String deviceId;
    private String payloadEncryptionSecret;
    private UUID userId;
    private GpsSourceConfigEntity.ConnectionType connectionType;
    // Use Boolean wrapper to allow null from frontend, will be converted to false in mapper if null
    private Boolean filterInaccurateData;
    private Integer maxAllowedAccuracy;
    private Integer maxAllowedSpeed;
    private Boolean enableDuplicateDetection;
    private Integer duplicateDetectionThresholdMinutes;
}
