OpenIdResult.java

package com.foxinmy.weixin4j.payment.mch;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * authcode2openid
 * 
 * @className OpenIdResult
 * @author jinyu(foxinmy@gmail.com)
 * @date 2015年7月23日
 * @since JDK 1.6
 * @see
 * @deprecated 迁移到子模块weixin4j-pay
 */
@Deprecated
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class OpenIdResult extends MerchantResult {

	private static final long serialVersionUID = 902743989722741814L;

	/**
	 * 用户在商户appid下的唯一标识
	 */
	@XmlElement(name = "openid")
	@JSONField(name = "openid")
	private String openId;

	/**
	 * 用户在商户appid下的唯一标识
	 */
	@XmlElement(name = "sub_openid")
	@JSONField(name = "sub_openid")
	private String subOpenId;

	public String getOpenId() {
		return openId;
	}

	public String getSubOpenId() {
		return subOpenId;
	}

	@Override
	public String toString() {
		return "OpenIdResult [openId=" + openId + ", subOpenId=" + subOpenId
				+ ", " + super.toString() + "]";
	}
}