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

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

package com.seejoke.wechat.entity.result;

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

import java.io.IOException;

public class TemplateSenderResult extends WxError {

	private long msgid;

	public long getMsgid() {
		return msgid;
	}

	public void setMsgid(long msgid) {
		this.msgid = msgid;
	}

	@Override
	public String toString() {
		return "TemplateSenderResult [msgid=" + msgid + "]";
	}
	
	public static TemplateSenderResult fromJson(String json) throws IOException {
		ObjectMapper mapper = new ObjectMapper();
		mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);
		return mapper.readValue(json, TemplateSenderResult.class);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy