com.taotao.boot.dingtalk.entity.LinkDeo Maven / Gradle / Ivy
/*
* Copyright (c) 2020-2030, Shuigedeng ([email protected] & https://blog.taotaocloud.top/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.taotao.boot.dingtalk.entity;
/**
* Dinger图文类型实体对象
*
* @author shuigedeng
* @version 2022.07
* @since 2022-07-06 15:20:00
*/
public class LinkDeo {
/** 消息标题 */
private String title;
/** 消息内容。如果太长只会部分展示 */
private String text;
/** 点击消息跳转的URL */
private String messageUrl;
/** 图片URL */
private String picUrl;
private LinkDeo(String title, String text, String messageUrl, String picUrl) {
this.title = title;
this.text = text;
this.messageUrl = messageUrl;
this.picUrl = picUrl;
}
public static LinkDeo instance(String title, String text, String messageUrl, String picUrl) {
return new LinkDeo(title, text, messageUrl, picUrl);
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public String getMessageUrl() {
return messageUrl;
}
public void setMessageUrl(String messageUrl) {
this.messageUrl = messageUrl;
}
public String getPicUrl() {
return picUrl;
}
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
}