
cn.songxinqiang.weixin4j.request.RequestBaseMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin4j Show documentation
Show all versions of weixin4j Show documentation
Weixin4j is a lib for java to connect to Weixin Public Platform.
The newest version!
package cn.songxinqiang.weixin4j.request;
/*
* Copyright 2014 阿信([email protected])
*
* 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.
*/
/**
* 消息基类(普通用户 - 公众帐号)
*
*
* 众里寻她千百度, 蓦然回首, 那人却在灯火阑珊处.
*
*
* @author 阿信sxq-2015年10月30日
*
*/
public class RequestBaseMessage {
public static final String MSG_FIELD_ToUserName = "ToUserName";
public static final String MSG_FIELD_FromUserName = "FromUserName";
public static final String MSG_FIELD_CreateTime = "CreateTime";
public static final String MSG_FIELD_MsgType = "MsgType";
public static final String MSG_FIELD_MsgId = "MsgId";
/**
* 开发者微信号
*/
private String ToUserName;
/**
* 发送方帐号(一个OpenID)
*/
private String FromUserName;
/**
* 消息创建时间 (毫秒数)
*/
private long CreateTime;
/**
* 消息类型(text/image/location/link)
*/
private RequestType MsgType;
/**
* 消息id,64位整型
*/
private long MsgId;
public String getToUserName() {
return ToUserName;
}
public String getFromUserName() {
return FromUserName;
}
public long getCreateTime() {
return CreateTime;
}
public RequestType getMsgType() {
return MsgType;
}
public long getMsgId() {
return MsgId;
}
public void setToUserName(String toUserName) {
this.ToUserName = toUserName;
}
public void setFromUserName(String fromUserName) {
this.FromUserName = fromUserName;
}
public void setCreateTime(long createTime) {
this.CreateTime = createTime;
}
public void setMsgType(RequestType msgType) {
this.MsgType = msgType;
}
public void setMsgId(long msgId) {
this.MsgId = msgId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy