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

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.