AdsItemType2 GetMoreApp(Dictionary <string, object> d) { AdsItemType2 a = new AdsItemType2(); if (d == null) { return(a); } else { if (d.ContainsKey(APPURL)) { a.storeUrl = d[APPURL].ToString(); } if (d.ContainsKey(TITLE)) { a.title = d[TITLE].ToString(); } if (d.ContainsKey(DESCRIPTION)) { a.description = d[DESCRIPTION].ToString(); } if (d.ContainsKey(THUMBNAILURL)) { a.imageUrl = d[THUMBNAILURL].ToString(); } if (d.ContainsKey(STAR)) { int.TryParse(d[STAR].ToString(), out a.stars); } } return(a); }
AdsItemType2 getSmartMoreAppItem(Dictionary <string, object> d) { AdsItemType2 a = new AdsItemType2(); if (d == null) { return(a); } if (d.ContainsKey(URL)) { a.storeUrl = d[URL].ToString(); } if (d.ContainsKey(IMAGEURL)) { a.imageUrl = d[IMAGEURL].ToString(); } return(a); }