All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.mingsoft.mweixin.entity.MessageEntity Maven / Gradle / Ivy
package net.mingsoft.mweixin.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import net.mingsoft.base.constant.e.BaseEnum;
import net.mingsoft.base.entity.BaseEntity;
import java.util.Date;
/**
* 微信被动消息回复实体
* @author 铭飞
* @version
* 版本号:100
* 创建日期:2017-12-22 9:43:04
* 历史修订:
*/
public class MessageEntity extends BaseEntity {
private static final long serialVersionUID = 1513906984116L;
/**
* 微信编号
*/
private Integer pmWeixinId;
/**
* 自增长ID
*/
private Integer pmId;
/**
* 该回复属于的分类中的事件ID,1新关注2二维码扫描5未关注扫描二维码6点击事件4文本消息3二维码扫描&提示框
*/
private Integer pmEventId;
/**
* 回复的素材ID
*/
private Integer pmNewsId;
/**
* 对应自定义模板回复消息id,与PM_NEWS_ID只能同时存在一个
*/
private Integer pmMessageId;
/**
* 该回复所属的应用ID
*/
private Integer pmAppId;
/**
* 被动回复的次数;为1时表示用户第一次被动响应消息,依次递增,当超出时取值为0的进行回复
*/
private Integer pmReplyNum;
/**
* 事件关键字
*/
private String pmKey;
/**
* 回复属性:1,关键字回复,2,关注回复,3,被动回复,4,群发
*/
private Integer pmType;
/**
*
*/
private String pmTag;
/**
* 消息回复内容
*/
private String pmContent;
/**
* 素材类型 1 回复文本消息、2 回复图片消息、3 回复语音消息、4 回复视频消息、5 回复音乐消息、6 回复图文消息
*/
private Integer pmNewType;
/**
* 素材对应的标题(不参与表结构)
*/
private String newsTitle;
/**
* 获取素材对应的标题(不参与表结构)
* @return
*/
public String getNewsTitle() {
return newsTitle;
}
/**
* 设置素材对应的标题(不参与表结构)
* @param newsTitle
*/
public void setNewsTitle(String newsTitle) {
this.newsTitle = newsTitle;
}
/**
* 获取素材类型
* @return
*/
public Integer getPmNewType() {
return pmNewType;
}
/**
* 设置素材类型
* @param pmNewType
*/
public void setPmNewType(Integer pmNewType) {
this.pmNewType = pmNewType;
}
/**
* 获取消息回复内容
* @return
*/
public String getPmContent() {
return pmContent;
}
/**
* 设置消息回复内容
* @param pmContent
*/
public void setPmContent(String pmContent) {
this.pmContent = pmContent;
}
/**
* 设置微信编号
*/
public void setPmWeixinId(Integer pmWeixinId) {
this.pmWeixinId = pmWeixinId;
}
/**
* 获取微信编号
*/
public Integer getPmWeixinId() {
return this.pmWeixinId;
}
/**
* 设置自增长ID
*/
public void setPmId(Integer pmId) {
this.pmId = pmId;
}
/**
* 获取自增长ID
*/
public Integer getPmId() {
return this.pmId;
}
/**
* 设置该回复属于的分类中的事件ID,1新关注2二维码扫描5未关注扫描二维码6点击事件4文本消息3二维码扫描&提示框
*/
public void setPmEventId(Integer pmEventId) {
this.pmEventId = pmEventId;
}
/**
* 获取该回复属于的分类中的事件ID,1新关注2二维码扫描5未关注扫描二维码6点击事件4文本消息3二维码扫描&提示框
*/
public Integer getPmEventId() {
return this.pmEventId;
}
/**
* 设置回复的素材ID
*/
public void setPmNewsId(Integer pmNewsId) {
this.pmNewsId = pmNewsId;
}
/**
* 获取回复的素材ID
*/
public Integer getPmNewsId() {
return this.pmNewsId;
}
/**
* 设置对应自定义模板回复消息id,与PM_NEWS_ID只能同时存在一个
*/
public void setPmMessageId(Integer pmMessageId) {
this.pmMessageId = pmMessageId;
}
/**
* 获取对应自定义模板回复消息id,与PM_NEWS_ID只能同时存在一个
*/
public Integer getPmMessageId() {
return this.pmMessageId;
}
/**
* 设置该回复所属的应用ID
*/
public void setPmAppId(Integer pmAppId) {
this.pmAppId = pmAppId;
}
/**
* 获取该回复所属的应用ID
*/
public Integer getPmAppId() {
return this.pmAppId;
}
/**
* 设置被动回复的次数;为1时表示用户第一次被动响应消息,依次递增,当超出时取值为0的进行回复
*/
public void setPmReplyNum(Integer pmReplyNum) {
this.pmReplyNum = pmReplyNum;
}
/**
* 获取被动回复的次数;为1时表示用户第一次被动响应消息,依次递增,当超出时取值为0的进行回复
*/
public Integer getPmReplyNum() {
return this.pmReplyNum;
}
/**
* 设置事件关键字
*/
public void setPmKey(String pmKey) {
this.pmKey = pmKey;
}
/**
* 获取事件关键字
*/
public String getPmKey() {
return this.pmKey;
}
/**
* 设置回复属性:1,关键字回复,2,关注回复,3,被动回复
*/
public void setPmType(Integer pmType) {
this.pmType = pmType;
}
/**
* 获取回复属性:1,关键字回复,2,关注回复,3,被动回复
*/
public Integer getPmType() {
return this.pmType;
}
/**
* 设置
*/
public void setPmTag(String pmTag) {
this.pmTag = pmTag;
}
/**
* 获取
*/
public String getPmTag() {
return this.pmTag;
}
public enum NewTypeEnum implements BaseEnum{
NEW_TYPE_TEXT(1,"文本消息"),
NEW_TYPE_IMAGE(2,"图片消息"),
NEW_TYPE_VOICE(3,"语音消息"),
NEW_TYPE_MOVIE(4,"视频消息"),
NEW_TYPE_MUSIC(5,"音乐消息"),
NEW_TYPE_IMAGE_TEXT(6,"图文消息");
private int id;
private String value;
NewTypeEnum(int id , String value){
this.id = id;
this.value = value;
}
@Override
public int toInt() {
// TODO Auto-generated method stub
return this.id;
}
@Override
public String toString(){
return this.value;
}
}
public static class Type{
public static final int TYPE_KEYWORD = 1,//关键字回复
TYPE_ATTENTION=2,//关注回复
TYPE_PASSIVE=3;//被动回复
}
}