content: package com.soecode.wxtools.bean;
  
  import java.io.IOException;
  
  import org.codehaus.jackson.JsonGenerationException;
  import org.codehaus.jackson.map.JsonMappingException;
  import org.codehaus.jackson.map.ObjectMapper;
  
  public class WxNewsInfo {
  	private String title;
  	private String thumb_media_id;
  	private String thumb_url;
  	private int show_cover_pic;
  	private String author;
  	private String digest;
  	private String content;
  	private String url;
  	private String content_source_url;
  	private int need_open_comment;
  	private int only_fans_can_comment;
  
  	public String getTitle() {
  		return title;
  	}
  
  	public void setTitle(String title) {
  		this.title = title;
  	}
  
  	public String getThumb_media_id() {
  		return thumb_media_id;
  	}
  
  	public void setThumb_media_id(String thumb_media_id) {
  		this.thumb_media_id = thumb_media_id;
  	}
  
  	public String getThumb_url() {
  		return thumb_url;
  	}
  
  	public void setThumb_url(String thumb_url) {
  		this.thumb_url = thumb_url;
  	}
  
  	public int getShow_cover_pic() {
  		return show_cover_pic;
  	}
  
  	public void setShow_cover_pic(int show_cover_pic) {
  		this.show_cover_pic = show_cover_pic;
  	}
  
  	public String getAuthor() {
  		return author;
  	}
  
  	public void setAuthor(String author) {
  		this.author = author;
  	}
  
  	public String getDigest() {
  		return digest;
  	}
  
  	public void setDigest(String digest) {
  		this.digest = digest;
  	}
  
  	public String getContent() {
  		return content;
  	}
  
  	public void setContent(String content) {
  		this.content = content;
  	}
  
  	public String getUrl() {
  		return url;
  	}
  
  	public void setUrl(String url) {
  		this.url = url;
  	}
  
  	public String getContent_source_url() {
  		return content_source_url;
  	}
  
  	public void setContent_source_url(String content_source_url) {
  		this.content_source_url = content_source_url;
  	}
  
  	public int getNeed_open_comment() {
  		return need_open_comment;
  	}
  
  	public void setNeed_open_comment(int need_open_comment) {
  		this.need_open_comment = need_open_comment;
  	}
  
  	public int getOnly_fans_can_comment() {
  		return only_fans_can_comment;
  	}
  
  	public void setOnly_fans_can_comment(int only_fans_can_comment) {
  		this.only_fans_can_comment = only_fans_can_comment;
  	}
  
  	public String toJson() throws JsonGenerationException, JsonMappingException, IOException{
  		ObjectMapper mapper  = new ObjectMapper();
  		return mapper.writeValueAsString(this);
  	}
  
  	@Override
  	public String toString() {
  		return "WxNewsInfo{" +
  				"title='" + title + '\'' +
  				", thumb_media_id='" + thumb_media_id + '\'' +
  				", thumb_url='" + thumb_url + '\'' +
  				", show_cover_pic=" + show_cover_pic +
  				", author='" + author + '\'' +
  				", digest='" + digest + '\'' +
  				", content='" + content + '\'' +
  				", url='" + url + '\'' +
  				", content_source_url='" + content_source_url + '\'' +
  				", need_open_comment=" + need_open_comment +
  				", only_fans_can_comment=" + only_fans_can_comment +
  				'}';
  	}
  }