house13/CardBox — comment on commit e275eef38dddf84f2f3bf7f4f27318aaeae252a5
File:  line 0
By tfairey:

K, ill get that done in 24 hrs.
------Original Message------
From: Alexander Steers
To: Trevor F
Subject: Re: [CardBox] Added Facebook Images and Names to the Friends List. (e275eef)
Sent: Mar 2, 2012 8:37 PM

Yeah, this broke some stuff.

picture in UserWithPicture needs to be a string, since this is the object used by the RestFB DefaultFacebookClient to fill in data parsed from JSON (notice the Facebook annotation). In its current state the UserWithPicture object will be terribly broken, since RestFB won't know what the hell to do with it.

Basically, my idea:
- Use SocialDirector to get FriendSet, which pulls (id,name,picture) tuple (where picture is the URL to the display pic) from the RestFB API
- Extend FriendSet to include a Hashtable mapping FbId to image data
- Extend FriendSet so that when a friend is added, the picture is enqueued in some sort of download queue (in FriendSet)
- A separate thread (somewhere, also in FriendSet???), downloads the images and maps them into our image hashtable
- Support callbacks or something so the friend list can be notified when downloads complete, as they're completed.

---
Reply to this email directly or view it on GitHub:
https://github.com/house13/CardBox/commit/e275eef38dddf84f2f3bf7f4f27318aaeae252a5#commitcomment-1038038

Sent from my BlackBerry device on the Rogers Wireless Network