package com.sikey.wa04.business.infrastructure.dto.response.fence;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class GetFenceResponse {
    /**
     * 总开关
     */
    private Boolean totalSwitch;
    /**
     * 围栏列表
     */
    private List<GetFenceResult> fences;

    @Data
    @Accessors(chain = true)
    public static class GetFenceResult {
        private Long fid;
        private String cid;
        private String fenceName;
        private Integer fenceType;
        private Boolean state;
        private String longitude;
        private String latitude;
        private Integer range;
        private String address;
        private Long createdAt;
        private Long updatedAt;
    }
}
