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 AddUserWeekPlanDTO {
    private String deviceSerial;
    private Payload payload;

    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @ToString
    public static class Payload {
        private UserWeekPlan userWeekPlan;
    }
    @Data
    @Accessors(chain = true)
    @EqualsAndHashCode(callSuper = false)
    @ToString
    public static class UserWeekPlan {
        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;
        private String beginTime;
        private String endTime;
    }
}
