All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.mp.bean.guide.WxMpAddGuideAutoReply Maven / Gradle / Ivy

There is a newer version: 4.6.9.B
Show newest version
package me.chanjar.weixin.mp.bean.guide;

import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.Data;
import me.chanjar.weixin.common.bean.ToJson;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

import java.io.Serializable;

/**
 * 关注顾问自动回复(欢迎语)添加实体
 *
 * @author 广州跨界-宋心成
 * @date 2021/5/8/008
 */
@Data
@Builder
public class WxMpAddGuideAutoReply implements ToJson, Serializable {
  private static final long serialVersionUID = -3364721434924095836L;

  /**
   * 新客户关注自动回复内容
   */
  @SerializedName("content")
  private String content;

  /**
   * 新客户关注自动回复内容类型
   * 1表示文字,2表示图片,3表示小程序卡片
   */
  @SerializedName("msgtype")
  private Integer msgType;


  @Override
  public String toJson() {
    return WxGsonBuilder.create().toJson(this);
  }

  public static WxMpAddGuideAutoReply fromJson(String json) {
    return WxGsonBuilder.create().fromJson(json, WxMpAddGuideAutoReply.class);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy