package com.dji.sample.manage.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class OperateRecordDTO implements Serializable {

    private Integer id;

    /**
     * Client IP address.
     */
    private String ip;

    private String workspaceId;

    @JsonProperty("user_id")
    private String userId;

    @JsonProperty("user_name")
    private String userName;

    /**
     * Unix timestamp (ms) when the operation was performed.
     */
    @JsonProperty("operating_time")
    private Long operatingTime;

    /**
     * Operation type identifier, e.g. FLIGHT_TASK_CREATE, RETURN_HOME, TAKEOFF_TO_POINT.
     *
     * @see com.dji.sample.manage.model.enums.OperateRecordTypeEnum
     */
    @JsonProperty("operating_type")
    private String operatingType;

    /**
     * JSON-serialized request parameters.
     */
    @JsonProperty("operating_param")
    private String operatingParam;

    /**
     * Human-readable description of the operation.
     */
    @JsonProperty("operating_content")
    private String operatingContent;

    /**
     * Dock SN involved in the operation.
     */
    @JsonProperty("dock_sn")
    private String dockSn;
}
