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

weixin.popular.bean.paymch.PromotionDetailXmlAdapter Maven / Gradle / Ivy

Go to download

The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.

There is a newer version: 2.8.32
Show newest version
package weixin.popular.bean.paymch;

import java.util.List;

import javax.xml.bind.annotation.adapters.XmlAdapter;

import com.alibaba.fastjson.JSON;

public class PromotionDetailXmlAdapter extends XmlAdapter> {

	@Override
	public List unmarshal(String v) throws Exception {
		String a = JSON.parseObject(v).getString("promotion_detail");
		return JSON.parseArray(a, PromotionDetail.class);
	}

	@Override
	public String marshal(List v) throws Exception {
		return "";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy