ericmarcos / dareyoo-web

0 stars 0 forks source link

Bet detail "winners" #2

Closed wolffan closed 9 years ago

wolffan commented 9 years ago

The object winner seems to be an array of users. But the user object has different fields. Is the object going to be added elsewhere? Should I add the following/follower objects to the base user object?

ericmarcos commented 9 years ago

These are the fields when you get your own user (/me):

('url', 'id', 'email', 'username', 'description', 'pic', 'upload_pic_url', 'following', 'followers','coins_available', 'coins_locked', 'followers_url', 'following_url', 'follow_url', 'unfollow_url', 'im_following', 'following_me', 'email_notifications')

When you're getting any other user (/user/33):

('url', 'id', 'email', 'username', 'description', 'pic', 'upload_pic_url', 'following', 'followers', 'coins_available', 'coins_locked', 'followers_url', 'following_url', 'follow_url', 'unfollow_url', 'im_following', 'following_me', 'email_notifications')

When the object user is nested inside another object (like the winners attribute of a bet), it's represented in a short version:

('id', 'url', 'username', 'pic', 'im_following', 'following_me')

wolffan commented 9 years ago

OMG I see... not straightforward for subclassing, thanks!