com.foxinmy.weixin4j.socket.WeixinMessageTransfer Maven / Gradle / Ivy
package com.foxinmy.weixin4j.socket;
import java.io.Serializable;
import java.util.Set;
import com.foxinmy.weixin4j.type.AccountType;
import com.foxinmy.weixin4j.type.EncryptType;
import com.foxinmy.weixin4j.util.AesToken;
/**
* 消息传递
*
* @className WeixinMessageTransfer
* @author jinyu([email protected])
* @date 2015年6月23日
* @since JDK 1.6
* @see
*/
public class WeixinMessageTransfer implements Serializable {
private static final long serialVersionUID = 7779948135156353261L;
/**
* aes & token
*/
private AesToken aesToken;
/**
* 加密类型
*/
private EncryptType encryptType;
/**
* 消息接收方
*/
private String toUserName;
/**
* 消息发送方
*/
private String fromUserName;
/**
* 账号
*/
private AccountType accountType;
/**
* 消息类型
*/
private String msgType;
/**
* 事件类型
*/
private String eventType;
/**
* 节点集合
*/
private Set nodeNames;
public WeixinMessageTransfer(AesToken aesToken, EncryptType encryptType,
String toUserName, String fromUserName, AccountType accountType,
String msgType, String eventType, Set nodeNames) {
this.aesToken = aesToken;
this.encryptType = encryptType;
this.toUserName = toUserName;
this.fromUserName = fromUserName;
this.accountType = accountType;
this.msgType = msgType;
this.eventType = eventType;
this.nodeNames = nodeNames;
}
public AesToken getAesToken() {
return aesToken;
}
public EncryptType getEncryptType() {
return encryptType;
}
public String getToUserName() {
return toUserName;
}
public String getFromUserName() {
return fromUserName;
}
public AccountType getAccountType() {
return accountType;
}
public String getMsgType() {
return msgType;
}
public String getEventType() {
return eventType;
}
public Set getNodeNames() {
return nodeNames;
}
@Override
public String toString() {
return "WeixinMessageTransfer [aesToken=" + aesToken + ", encryptType="
+ encryptType + ", toUserName=" + toUserName
+ ", fromUserName=" + fromUserName + ", accountType="
+ accountType + ", msgType=" + msgType + ", eventType="
+ eventType + ", nodeNames=" + nodeNames + "]";
}
}