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

me.chanjar.weixin.mp.bean.message.SendPicsInfo Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.mp.bean.message;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import lombok.Data;
import me.chanjar.weixin.common.util.xml.XStreamCDataConverter;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

/**
 * 
 *  Created by BinaryWang on 2017/5/4.
 * 
* * @author Binary Wang */ @Data @XStreamAlias("SendPicsInfo") @JacksonXmlRootElement(localName = "SendPicsInfo") public class SendPicsInfo implements Serializable { private static final long serialVersionUID = -4572837013294199227L; @XStreamAlias("PicList") @JacksonXmlProperty(localName = "PicList") protected final List picList = new ArrayList<>(); @XStreamAlias("Count") @JacksonXmlProperty(localName = "Count") private Long count; @Override public String toString() { return WxMpGsonBuilder.create().toJson(this); } @Data @XStreamAlias("item") @JacksonXmlRootElement(localName = "item") public static class Item implements Serializable { private static final long serialVersionUID = 7706235740094081194L; @XStreamAlias("PicMd5Sum") @XStreamConverter(value = XStreamCDataConverter.class) @JacksonXmlProperty(localName = "PicMd5Sum") @JacksonXmlCData private String picMd5Sum; @Override public String toString() { return WxMpGsonBuilder.create().toJson(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy