package vip.xiaonuo.coldchain.modular.push.param;

import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

@Getter
@Setter
public class OnlinePushParam {
    /**
     * 用户openId
     */
    private Set<String> userIdList = new HashSet<String>();
    /**
     * 设备名
     */
    @Size(min = 0, max = 20)
    private String deviceName;
    /**
     * 设备状态（五个以内汉字）
     */
    @Size(min = 0, max = 5)
    private String status;
    /**
     * 设备位置
     */
    @Size(min = 0, max = 20)
    private String location;
    /**
     * 上线时间
     */
    private Date OnlineTime;

    /**
     * 离线时间
     */
    private Date firstAlarmTime;

    /**
     * 用户名
     */
    private String userName = "管理员";

    public OnlinePushParam() {
    }
}
