package com.cool.store.dto.calendar;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhangchenbiao
 * @FileName: UserCalendarsEventVO
 * @Description:
 * @date 2023-06-13 11:18
 */
@Data
public class UserCalendarsEventDTO implements Comparable<UserCalendarsEventDTO>{

    @ApiModelProperty("日历id")
    private String calendarId;

    @ApiModelProperty("日程id")
    private String eventId;

    @ApiModelProperty("日程标题")
    private String summary;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("截止时间")
    private Long endTime;

    public UserCalendarsEventDTO(String calendarId, String eventId, String summary, Long startTime, Long endTime) {
        this.calendarId = calendarId;
        this.eventId = eventId;
        this.summary = summary;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    @Override
    public int compareTo(UserCalendarsEventDTO other) {
        return this.startTime.compareTo(other.getStartTime());
    }
}
