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

com.foxinmy.weixin4j.qy.chat.ChatReceiver Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
package com.foxinmy.weixin4j.qy.chat;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * 接收人
 * 
 * @className ChatReceiver
 * @author jinyu([email protected])
 * @date 2015年8月1日
 * @since JDK 1.6
 * @see
 */
public class ChatReceiver implements Serializable {

	private static final long serialVersionUID = -3870813624685620828L;
	/**
	 * 成员id|会话id
	 */
	@XmlElement(name = "id")
	private String targetId;
	/**
	 * 群聊|单聊|userid|openid
	 */
	@XmlElement(name = "type")
	private String chatType;

	public String getTargetId() {
		return targetId;
	}

	public String getChatType() {
		return chatType;
	}

	@XmlTransient
	public ChatType getFormatChatType() {
		return ChatType.valueOf(chatType);
	}

	@Override
	public String toString() {
		return "ChatReceiver [targetId=" + targetId + ", chatType=" + chatType
				+ "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy