package net.fdms.Database 
{
	import net.fdms.Function.Convert.XMLtoOBJECT;
	/**
	 * 2011/5/17 16:02
	 * @author Dawnboy
	 */
	public class WishData 
	{
		
		private static var _wishData:Array = [];
		public function WishData() 
		{
			
		}
		
		/**
		 * 初始化祝福数据 
		 * @param	wishSets
		 */
		public static function init(wishSets:XMLList):void {
			var n:int = wishSets.children().length();
			if (n) {
				for (var a:int = 0; a < n; a++) {
					_wishData.push(XMLtoOBJECT.convert(wishSets.item[a]));
				}
			}
			//trace("祝福共 " + _wishData.length +" 条数据\n---------------------------------");
		}
		
		/**
		 * 获取祝福数据
		 * @return
		 */
		public static function getWishs():Array {
			return _wishData;
		}
		
	}

}