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

com.foxinmy.weixin4j.payment.mch.OpenIdResult Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
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([email protected])
 * @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() + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy