public async Task LoadFeeds(dynamic uid) { //绑定一个列表 ObservableCollection <DataItem> FeedsCollection = new ObservableCollection <DataItem>(); listView.ItemsSource = FeedsCollection; FeedRoot feedRoot = await CoolApkSDK.GetFeedListByID(uid, 1, ""); foreach (DataItem i in feedRoot.data) { FeedsCollection.Add(i); } }
public static async Task <FeedRoot> GetFeedListByID(dynamic uid, dynamic page, dynamic firstItem) { //try //{ string str = await GetFeedListJsonByID(uid, page, firstItem); FeedRoot feedRoot = JsonMapper.ToObject <FeedRoot>(str); return(feedRoot); //} //catch (Exception) //{ // return null; //} }