package io.omengye.ws.entity;

import java.util.HashMap;

import io.omengye.ws.utils.StrUtil;

public class ItemEntity {
	private String snippet;
	private String htmlFormattedUrl;
	private String htmlTitle;
	private String kind;
	private String title;
	private String formattedUrl;
	
	public ItemEntity() {}
	
	public ItemEntity(HashMap<String, Object> map) {
		this.snippet = StrUtil.getStr(map.get("snippet"));
		this.htmlFormattedUrl = StrUtil.getStr(map.get("htmlFormattedUrl"));
		this.htmlTitle = StrUtil.getStr(map.get("htmlTitle"));
		this.kind = StrUtil.getStr(map.get("kind"));
		this.title = StrUtil.getStr(map.get("title"));
		this.formattedUrl = StrUtil.getStr(map.get("formattedUrl"));
	}
	
	public String getSnippet() {
		return snippet;
	}
	public void setSnippet(String snippet) {
		this.snippet = snippet;
	}
	public String getHtmlFormattedUrl() {
		return htmlFormattedUrl;
	}
	public void setHtmlFormattedUrl(String htmlFormattedUrl) {
		this.htmlFormattedUrl = htmlFormattedUrl;
	}
	public String getHtmlTitle() {
		return htmlTitle;
	}
	public void setHtmlTitle(String htmlTitle) {
		this.htmlTitle = htmlTitle;
	}
	public String getKind() {
		return kind;
	}
	public void setKind(String kind) {
		this.kind = kind;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getFormattedUrl() {
		return formattedUrl;
	}
	public void setFormattedUrl(String formattedUrl) {
		this.formattedUrl = formattedUrl;
	}
	

	
}

@@ -226,20 +226,86 @@
  String 
-kind
+displayLink;%0D%0A    private String link;%0D%0A    private String htmlSnippet
 ;%0D%0A%09priv
@@ -631,43 +631,167 @@
 his.
-kind = StrUtil.getStr(map.get(%22kind
+displayLink = StrUtil.getStr(map.get(%22displayLink%22));%0D%0A%09%09this.link = StrUtil.getStr(map.get(%22link%22));%0D%0A%09%09this.htmlSnippet = StrUtil.getStr(map.get(%22htmlSnippet
 %22));
@@ -1381,20 +1381,27 @@
 ring get
-Kind
+DisplayLink
 () %7B%0D%0A%09%09
@@ -1407,20 +1407,27 @@
 %09return 
-kind
+displayLink
 ;%0D%0A%09%7D%0D%0A%09
@@ -1445,20 +1445,27 @@
  set
-Kind
+DisplayLink
 (String 
 kind
@@ -1460,20 +1460,27 @@
 (String 
-kind
+displayLink
 ) %7B%0D%0A%09%09t
@@ -1487,19 +1487,295 @@
 his.
-kind = kind
+displayLink = displayLink;%0D%0A%09%7D%0D%0A%09public String getLink() %7B%0D%0A%09%09return link;%0D%0A%09%7D%0D%0A%09public void setLink(String link) %7B%0D%0A%09%09this.link = link;%0D%0A%09%7D%0D%0A%09public String getHtmlSnippet() %7B%0D%0A%09%09return htmlSnippet;%0D%0A%09%7D%0D%0A%09public void setHtmlSnippet(String htmlSnippet) %7B%0D%0A%09%09this.htmlSnippet = htmlSnippet
 ;%0D%0A%09
@@ -2057,13 +2057,8 @@
 %0D%0A%09%0D
-%0A%0D%0A%09%0D
 %0A%7D%0D%0A

fix bug