package cn.axzo.msg.center.service.pending.response.v3.model;

import cn.axzo.msg.center.service.enums.AppTerminalTypeEnum;
import cn.axzo.msg.center.service.enums.WebPageOpenStrategy;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;

import javax.annotation.Nullable;

/**
 * @author yanglin
 */
@Setter
@Getter
public class SessionUrlInfo {

    /**
     * 链接地址
     */
    private String url;

    /**
     * 网页打开方式. NEW_PAGE: 新页面打开, CURRENT_PAGE: 当前页面打开, DRAWER: 抽屉
     */
    @Nullable @JsonInclude(JsonInclude.Include.NON_NULL)
    private WebPageOpenStrategy webOpenStrategy;

    /**
     * 当前的端信息. B_ENTERPRISE_APP: B-安心筑企业版, C_WORKER_APP: C-安心筑工人版, CMS_WEB_PC: CMS PC端, OMS_WEB_PC: OMS PC端, PC_GA_GENERAL: 政府管理-政务
     */
    @Nullable @JsonInclude(JsonInclude.Include.NON_NULL)
    private AppTerminalTypeEnum appTerminalType;

    /**
     * 是否有app管理端url
     */
    private boolean hasManagerAppUrl;

    /**
     * 是否有cms url
     */
    private boolean hasCmsUrl;

}