protected override void OnDataReady(IDictionary json) { var friends = json["friends"] as IDictionary; Assert.IsNotNull(friends); var friendsList = friends["data"] as IList; Assert.IsNotNull(friendsList); foreach (var t in friendsList) { var user = new FbUser(t as IDictionary); Users.Add(user); } if (friends.Contains("summary")) { var summary = friends["summary"] as IDictionary; Assert.IsNotNull(summary); if (summary.Contains("total_count")) { TotalFriendsCount = Convert.ToInt32(summary["total_count"]); } } ParseResultId(json); ParsePaginatedResult(friends); }
protected override void OnDataReady(IDictionary json) { User = new FbUser(json); }
protected override void OnDataReady(IDictionary json) { var user = new FbUser(json); Url = user.PictureUrl; }