#endregion
具体代码调用:
/// <summary>
/// 获取资讯列表数据
/// </summary>
/// <returns>The items.</returns>
public static List
{
if (isrefresh)
NSUserDefaults.StandardUserDefaults.RemoveObject (KeyCenter.Key_NewsList);
string _url = string.Format (Utils.UrlCenter.UrlNewsList, "10", HttpUtility.UrlDecode ("前沿资讯"));
JsonObject j = CacheHelp.ParseResultsJson (_url);
if (j != null) {
var results = (from t in (JsonArray)j ["articleInfoList"]
let r = t as JsonObject
select new ArticleModel {
Articleid=t["Articleid"],
Articletitle = t["Articletitle"],
ArticleContent =t["articleContent"],
Articlechannel = t["Articlechannel"],
Articlecreatedate=t["Articlecreatedate"],
Articleimg=t["Articleimg"],
ArticleAuthor=t["ArticleAuthor"],
Outline=t["outline"],
ClickNumber = t["clicknumber"]
}).ToList ();
return results;
} else {
Utils.Tools.Alert ("获取数据失败!");
return null;
}
}