package cn.axzo.msg.center.message.service.youmeng;

import cn.axzo.msg.center.service.enums.TerminalTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author yanglin
 */
@Data
public class YoumengPush {

    private String title;
    private String content;
    private Long receiverPersonId;
    private Long receiverOuId;
    private List<PushNavigation> navigations;

    Long determineReceiverOuId() {
        return receiverOuId == null ? 0L : receiverOuId;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PushNavigation {
        private TerminalTypeEnum platform;
        private String url;
    }

}