Raconeisteron / sheel-ma3aya

Automatically exported from code.google.com/p/sheel-ma3aya
0 stars 0 forks source link

Sprint2: PS00T01: Refactoring (Instead of using intent and inherited class -> create a static class representing the session) #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
================
User story
================
General
================
Task
================
Instead of using intent and inherited class -> create a static class 
representing the session

Original issue reported on code.google.com by passant....@gmail.com on 9 Dec 2011 at 8:42

GoogleCodeExporter commented 8 years ago

Original comment by passant....@gmail.com on 9 Dec 2011 at 9:45

GoogleCodeExporter commented 8 years ago

Original comment by passant....@gmail.com on 11 Dec 2011 at 11:09

GoogleCodeExporter commented 8 years ago
Task is done but without creating a new data structure

All common logic is added to the 
<code>UserSessionStateMaintainingActivity</code> class but without passing it 
through intent. There is a static FacebookService contained in the class to 
handle all the logic of the user in his interaction with Facebook. 

The facebook info of the user is retrieved as soon as the user logs in. 
This info is: first name, middle name , last name , email, gender, is verified 
or not and ID

= Instructions of how to use =

1) To get user info: FacebookUser fbUser = 
getFacebookService().getFacebookUser();
2) To get user ID: String id = 
getFacebookService().getFacebookUser().getUserId();

Original comment by passant....@gmail.com on 12 Dec 2011 at 11:16

GoogleCodeExporter commented 8 years ago
Will edit its summary to be able to see it quickly.

Original comment by hossam.a...@gmail.com on 14 Dec 2011 at 1:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hossam .. this task is completely irrelevant to you .. the part relevant to you 
is in the other issue (issue 149) that is why I made it for all of us ... 
but this one is related to creating the data structure and passing the info 
which is already done on my part 5las :)

Original comment by passant....@gmail.com on 14 Dec 2011 at 3:28

GoogleCodeExporter commented 8 years ago
Opps... my bad ... I thought both are talking on the same topic.

Thanks for clarification ;)

Original comment by hossam.a...@gmail.com on 14 Dec 2011 at 4:10

GoogleCodeExporter commented 8 years ago
I'm actually using it

Original comment by nada.a...@gmail.com on 25 Dec 2011 at 9:26