Changeset 15143 for platform/eclipse/sabotter/trunk/jp.xet.sabotter.core/src/jp/xet/sabotter/core/twitter/TwitterAdapterWrapper.java
- Timestamp:
- 07/04/08 12:48:31 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
platform/eclipse/sabotter/trunk/jp.xet.sabotter.core/src/jp/xet/sabotter/core/twitter/TwitterAdapterWrapper.java
r15107 r15143 24 24 private MiniblogServiceResponceListener listener; 25 25 26 private String userId; 27 26 28 27 29 /** 28 30 * コンストラクタ。 29 31 * 32 * @param userId サービスを利用中のuserId 30 33 * @param listener 31 34 */ 32 public TwitterAdapterWrapper(MiniblogServiceResponceListener listener ) {35 public TwitterAdapterWrapper(MiniblogServiceResponceListener listener, String userId) { 33 36 this.listener = listener; 37 this.userId = userId; 34 38 } 35 39 … … 44 48 45 49 for (Status status : statuses) { 46 wrapList.add(new TwitterStatusEntry(status ));50 wrapList.add(new TwitterStatusEntry(status, this.userId)); 47 51 } 48 52 … … 60 64 61 65 for (DirectMessage message : messages) { 62 wrapList.add(new TwitterDirectMessageEntry(message ));66 wrapList.add(new TwitterDirectMessageEntry(message, this.userId)); 63 67 } 64 68 … … 76 80 77 81 for (Status status : statuses) { 78 wrapList.add(new TwitterStatusEntry(status ));82 wrapList.add(new TwitterStatusEntry(status, this.userId)); 79 83 } 80 84 … … 90 94 public void onException(TwitterException ex, int method) { 91 95 // FIXME 92 // if (ex.getStatusCode() == 400) { // タイムライン取得制限93 // SabotterPlugin.handleException(ex, SabotterPlugin.DIALOG, "API limit rate over.");94 // }95 // ex.printStackTrace();96 // if (ex.getStatusCode() == 400) { // タイムライン取得制限 97 // SabotterPlugin.handleException(ex, SabotterPlugin.DIALOG, "API limit rate over."); 98 // } 99 // ex.printStackTrace(); 96 100 this.listener.onException(new MiniblogServiceException(ex), method); 97 101 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)