package com.skr.mdm.bean.so.app;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.skr.mdm.bean.util.DateConvertUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author nfq
 * @date 2022-12-26 11:06
 */
@Data
@ApiModel(value = "应用推送下发对象SO")
public class AppPushSO {

    @ApiModelProperty(value = "应用推送ID")
    private Integer id;

    @ApiModelProperty(value = "状态（0：正常 1：暂停）")
    private Integer isPause;

    @ApiModelProperty(value = "全局类型（1：全局 2：部门全局 3：用户）")
    private Integer globalType;

    @ApiModelProperty(value = "推送类型（1：即时推送 2：定时推送 3：按需推送 4：强制推送）")
    private Integer pushType;

    @ApiModelProperty(value = "仅WiFi下载（0：否 1：是）")
    private Integer isOnlyWifi;

    @ApiModelProperty(value = "是否放入安全空间（0：否 1：是）")
    private Integer isSafeSpace;

    @ApiModelProperty(value = "普通系统是否创建快捷图标（0：否 1：是）")
    private Integer isShortcutIcon;

    @ApiModelProperty(value = "文件地址")
    private String fileUrl;

    @ApiModelProperty(value = "图标地址")
    private String iconUrl;

    @ApiModelProperty(value = "应用名称")
    private String appName;

    @ApiModelProperty(value = "包名")
    private String packageName;

    @ApiModelProperty(value = "应用签名")
    private String appSign;

    @ApiModelProperty(value = "版本名称")
    private String versionName;

    @ApiModelProperty(value = "版本号")
    private Integer versionCode;

    @JsonSerialize(using = DateConvertUtil.class)
    @ApiModelProperty(value = "下发时间")
    private Date sendTime;
}
