/[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 662 by torben, Fri Apr 23 14:13:39 2010 UTC revision 663 by torben, Fri Apr 23 15:23:44 2010 UTC
# Line 11  public class CommentCallback implements Line 11  public class CommentCallback implements
11          private String locale;          private String locale;
12          private List<CommentBean> commentBeans;          private List<CommentBean> commentBeans;
13                    
14            private int entryCount;
15            
16          public void setLocale(String loc) {          public void setLocale(String loc) {
17                  locale = loc;                  locale = loc;
18          }          }
# Line 19  public class CommentCallback implements Line 21  public class CommentCallback implements
21                  commentBeans = cl;                  commentBeans = cl;
22          }          }
23                    
24                    public int getEntryCount() {
25                    return entryCount;
26            }
27                    
28    
29          @Override          @Override
30          public void onResult(ResponseContext context, CommentsResponse response) {          public void onResult(ResponseContext context, CommentsResponse response) {
31                  //System.out.println("Response : " + response);                  //System.out.println("Response : " + response);
32                  //sb.append("Response: " + response + "\n");                  //sb.append("Response: " + response + "\n");
33                    entryCount = response.getEntriesCount();
34                    System.out.println("Count="+entryCount);
35    
36                  List<Comment> cl = response.getCommentsList();                  List<Comment> cl = response.getCommentsList();
37                  for (Comment c : cl) {                  for (Comment c : cl) {

Legend:
Removed from v.662  
changed lines
  Added in v.663

  ViewVC Help
Powered by ViewVC 1.1.20