package com.sikey.wa04.common.dto.message;

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

import java.io.Serializable;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString
public class AlarmClockChangeNoticeMessage extends BasicNoticeMessage {

    /**
     * 消息内容
     */
    private AlarmClockChangeNoticeMessage.AlarmClockChangeNoticeMessageContent content;

    @Data
    @Accessors(chain = true)
    public static class AlarmClockChangeNoticeMessageContent {

        /**
         * 闹钟ID
         */
        private Long acid;

        /**
         * 小孩ID
         */
        private String cid;

        /**
         * 标签
         */
        private String label;

        /**
         * 重复天 eg: 1000000 周一开启 1111100 工作日开启
         */
        private String repeats;

        /**
         * 闹钟时间 格式: HH:mm
         */
        private String time;

        /**
         * 仅一次时间戳
         */
        private Long onceTime;

        /**
         * 闹钟状态
         */
        private Boolean status;
    }
}
