package org.jeecg.modules.hikiot.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString
public class AddDoorWeekPlanDTO {
    private String deviceSerial;
    private Payload payload;

    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @ToString
    public static class Payload {
        private WeekPlan weekPlan;
    }
    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @ToString
    public static class WeekPlan {
        private int doorWeekId;
        private boolean enable;
        private List<TimeSegment> timeSegment;
    }
    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @ToString
    public static class TimeSegment {
        private int doorWeekTimeSegmentId;
        private String week;
        private boolean enable;
        private String doorStatus = "normal";
        private String beginTime;
        private String endTime;
    }
}
