/[projects]/android/MarketStats/src/dk/thoerup/marketstats/CommentCallback.java
ViewVC logotype

Diff of /android/MarketStats/src/dk/thoerup/marketstats/CommentCallback.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 755 by torben, Fri Apr 23 15:25:52 2010 UTC revision 756 by torben, Thu May 27 08:07:28 2010 UTC
# Line 8  import com.gc.android.market.api.model.M Line 8  import com.gc.android.market.api.model.M
8  import com.gc.android.market.api.model.Market.ResponseContext;  import com.gc.android.market.api.model.Market.ResponseContext;
9    
10  public class CommentCallback implements Callback<CommentsResponse>{  public class CommentCallback implements Callback<CommentsResponse>{
         private String locale;  
11          private List<CommentBean> commentBeans;          private List<CommentBean> commentBeans;
12                    
13          private int entryCount;          private int entryCount;
14                    
         public void setLocale(String loc) {  
                 locale = loc;  
         }  
           
15          public void setList(List<CommentBean> cl) {          public void setList(List<CommentBean> cl) {
16                  commentBeans = cl;                  commentBeans = cl;
17          }          }
# Line 37  public class CommentCallback implements Line 32  public class CommentCallback implements
32                  List<Comment> cl = response.getCommentsList();                  List<Comment> cl = response.getCommentsList();
33                  for (Comment c : cl) {                  for (Comment c : cl) {
34                          CommentBean bean = new CommentBean();                          CommentBean bean = new CommentBean();
                         bean.locale = locale;  
35                          bean.author = c.getAuthorName();                          bean.author = c.getAuthorName();
36                          bean.rating = c.getRating();                          bean.rating = c.getRating();
37                          bean.time = c.getCreationTime();                          bean.time = c.getCreationTime();
38                          bean.text = c.getText();                          bean.text = c.getText();
39                          commentBeans.add(bean);                          commentBeans.add(bean);
40                  }                  }
41                    
42          }          }
43  }  }

Legend:
Removed from v.755  
changed lines
  Added in v.756

  ViewVC Help
Powered by ViewVC 1.1.20