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

com.seejoke.wechat.entity.result.TemplateListResult Maven / Gradle / Ivy

package com.seejoke.wechat.entity.result;

import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.DeserializationConfig;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;

import java.io.IOException;
import java.util.List;

public class TemplateListResult {

	private List template_list;

	public List getTemplate_list() {
		return template_list;
	}

	public void setTemplate_list(List template_list) {
		this.template_list = template_list;
	}
	
	public static TemplateListResult fromJson(String json) throws JsonParseException, JsonMappingException, IOException {
		ObjectMapper mapper = new ObjectMapper();
		mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
		return mapper.readValue(json, TemplateListResult.class);
	}

	@Override
	public String toString() {
		return "TemplateListResult [template_list=" + template_list + "]";
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy