content: /*
   * Copyright ©2015-2023 Jaemon. All Rights Reserved.
   *
   * 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
   *
   * http://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.github.jaemon.dinger.core.entity;
  
  /**
   * Dinger图文类型实体对象
   *
   * @author Jaemon
   * @since 1.0
   */
  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;
      }
  }