package net.fdms.Database 
{
	import net.fdms.Function.Convert.XMLtoOBJECT;
	/**
	 * ...
	 * @author Dawnboy
	 */
	public class FeelData 
	{
	
		private static var _feelData:Array = [];
		public function FeelData() 
		{
			/*_moodData = [
				{id:"", time:"", content:"" }
			]*/
		}
		
		/**
		 * 初始化心情数据 
		 * @param	moodSets
		 */
		public static function init(feelSets:XMLList):void {
			var n:int = feelSets.children().length();
			if (n) {
				for (var a:int = 0; a < n; a++) {
					_feelData.push(XMLtoOBJECT.convert(feelSets.item[a]));
				}
			}
			//trace("接收心情数据: 共 "+ _feelData.length +" 条心情\n---------------------------------");
		}
			
		/**
		 * 获取心情数据
		 * @return
		 */
		public static function getFeels():Array {
			return _feelData;
		}
	}

}