package com.yeshi.makemoney.app.vo.msg;
|
|
import com.yeshi.makemoney.app.entity.msg.AppPageNotifyMsg;
|
|
/**
|
* @author hxh
|
* @title: AppPageNotifyMsgVO
|
* @description: 客户端提醒消息
|
* @date 2022/4/24 11:02
|
*/
|
public class AppPageNotifyMsgVO {
|
|
private String content;
|
private String md5;
|
private boolean close;
|
private String link;
|
|
public static AppPageNotifyMsgVO create(AppPageNotifyMsg msg) {
|
AppPageNotifyMsgVO vo = new AppPageNotifyMsgVO();
|
vo.setClose(msg.getCanClose() == null ? false : msg.getCanClose());
|
vo.setContent(msg.getContent());
|
vo.setLink(msg.getContentUrl());
|
vo.setMd5(msg.getMd5());
|
return vo;
|
}
|
|
|
public String getContent() {
|
return content;
|
}
|
|
public void setContent(String content) {
|
this.content = content;
|
}
|
|
public String getMd5() {
|
return md5;
|
}
|
|
public void setMd5(String md5) {
|
this.md5 = md5;
|
}
|
|
public boolean isClose() {
|
return close;
|
}
|
|
public void setClose(boolean close) {
|
this.close = close;
|
}
|
|
public String getLink() {
|
return link;
|
}
|
|
public void setLink(String link) {
|
this.link = link;
|
}
|
}
|