// Path: src/com/samuel/downloader/infocenter/bean/ShopMsgInfo.java
// public class ShopMsgInfo {
// 
// 	public static class TableConst{
// 		
// 		public static String TABLE_NAME = "msginfo";
// 		
// 		public static String SHOP_NAME = "shopname";
// 		
// 		public static String MSG_THEME = "msgtheme";
// 		
// 		public static String RECEIVE_DATE = "receivedate";
// 		
// 		public static String MSG_CONTENT = "msgcontent";
// 	}
// 	
// 	private String shopName;
// 	
// 	private String msgTheme;
// 	
// 	private String receiveDate;
// 	
// 	private String msgContent;
// 	
// 	
// 
// 	@Override
// 	public String toString() {
// 		return "ShopMsgInfo [shopName=" + shopName + ", msgTheme=" + msgTheme
// 				+ ", receiveDate=" + receiveDate + ", msgContent=" + msgContent
// 				+ "]";
// 	}
// 
// 	public String getShopName() {
// 		return shopName;
// 	}
// 
// 	public void setShopName(String shopName) {
// 		this.shopName = shopName;
// 	}
// 
// 	public String getMsgTheme() {
// 		return msgTheme;
// 	}
// 
// 	public void setMsgTheme(String msgTheme) {
// 		this.msgTheme = msgTheme;
// 	}
// 
// 	public String getReceiveDate() {
// 		return receiveDate;
// 	}
// 
// 	public void setReceiveDate(String receiveDate) {
// 		this.receiveDate = receiveDate;
// 	}
// 
// 	public String getMsgContent() {
// 		return msgContent;
// 	}
// 
// 	public void setMsgContent(String msgContent) {
// 		this.msgContent = msgContent;
// 	}
// 	
// 	
// }


import org.json.JSONException;
import org.json.JSONObject;
import com.samuel.downloader.infocenter.bean.JSONMsgInfo2;
import com.samuel.downloader.infocenter.bean.ShopMsgInfo;
import com.samuel.downloader.utils.TextFormater;

package com.samuel.downloader.infocenter.fcm;



public class FCMmsgParser {
	
	public static ShopMsgInfo parseFCMMsg(String msgContent){
		if(TextFormater.isEmpty(msgContent)){
			return null;
		}
		try {
			JSONObject jsonObject = new JSONObject(msgContent);

// Path: src/com/samuel/downloader/infocenter/bean/ShopMsgInfo.java
// public class ShopMsgInfo {
// 
// 	public static class TableConst{
// 		
// 		public static String TABLE_NAME = "msginfo";
// 		
// 		public static String SHOP_NAME = "shopname";
// 		
// 		public static String MSG_THEME = "msgtheme";
// 		
// 		public static String RECEIVE_DATE = "receivedate";
// 		
// 		public static String MSG_CONTENT = "msgcontent";
// 	}
// 	
// 	private String shopName;
// 	
// 	private String msgTheme;
// 	
// 	private String receiveDate;
// 	
// 	private String msgContent;
// 	
// 	
// 
// 	@Override
// 	public String toString() {
// 		return "ShopMsgInfo [shopName=" + shopName + ", msgTheme=" + msgTheme
// 				+ ", receiveDate=" + receiveDate + ", msgContent=" + msgContent
// 				+ "]";
// 	}
// 
// 	public String getShopName() {
// 		return shopName;
// 	}
// 
// 	public void setShopName(String shopName) {
// 		this.shopName = shopName;
// 	}
// 
// 	public String getMsgTheme() {
// 		return msgTheme;
// 	}
// 
// 	public void setMsgTheme(String msgTheme) {
// 		this.msgTheme = msgTheme;
// 	}
// 
// 	public String getReceiveDate() {
// 		return receiveDate;
// 	}
// 
// 	public void setReceiveDate(String receiveDate) {
// 		this.receiveDate = receiveDate;
// 	}
// 
// 	public String getMsgContent() {
// 		return msgContent;
// 	}
// 
// 	public void setMsgContent(String msgContent) {
// 		this.msgContent = msgContent;
// 	}
// 	
// 	
// }


// Path: src/com/samuel/downloader/infocenter/fcm/FCMmsgParser.java
import org.json.JSONException;
import org.json.JSONObject;
import com.samuel.downloader.infocenter.bean.JSONMsgInfo2;
import com.samuel.downloader.infocenter.bean.ShopMsgInfo;
import com.samuel.downloader.utils.TextFormater;

package com.samuel.downloader.infocenter.fcm;



public class FCMmsgParser {
	
	public static ShopMsgInfo parseFCMMsg(String msgContent){
		if(TextFormater.isEmpty(msgContent)){
			return null;
		}
		try {
			JSONObject jsonObject = new JSONObject(msgContent);

			ShopMsgInfo shopMsgInfo = new ShopMsgInfo();
