Changeset 15149

Show
Ignore:
Timestamp:
07/04/08 16:23:01 (3 months ago)
Author:
yamashiro
Message:

わっさーのときにエントリーをクリックして@かえそうとしたときに、「@表示名」となっていたのを id になるように修正した。

Location:
platform/eclipse/sabotter/trunk/jp.xet.sabotter.core/src/jp/xet/sabotter/core/wassr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • platform/eclipse/sabotter/trunk/jp.xet.sabotter.core/src/jp/xet/sabotter/core/wassr/WassrService.java

    r15146 r15149  
    101101                                } else { 
    102102                                        String[] tokens = line.split(","); 
    103                                         String id = tokens[0]; 
     103                                        String statusId = tokens[0]; 
    104104                                        String text = tokens[1]; 
    105105                                        String screenName = tokens[3]; 
    106106                                        Date timeStamp = dateFormatter.parse(tokens[4]); 
    107                                         String name = tokens[5]; 
     107                                        String userId = tokens[5]; 
    108108                                         
    109109                                        // String name, String screenName, URL profileImageURL 
    110110                                        MiniblogUser user = 
    111                                                         new WassrUser(name, screenName, new URL("http://wassr.jp/user/" + name 
     111                                                        new WassrUser(userId, screenName, new URL("http://wassr.jp/user/" + userId 
    112112                                                                        + "/profile_img.png.128.")); 
    113113                                        // int id, String text, Date timeStamp, MiniblogUser user, boolean isDirectMessage, 
    114114                                        // boolean isMessageToMe, boolean isMyEntry 
    115115                                        WassrEntry entry = 
    116                                                         new WassrEntry(id, text, timeStamp, user, false, /* TODO */false, client.getUserId() 
    117                                                                 .equals(name)); 
     116                                                        new WassrEntry(statusId, text, timeStamp, user, false, /* TODO */false, client.getUserId() 
     117                                                                .equals(userId)); 
    118118                                        miniblogEntries.add(entry); 
    119119                                } 
  • platform/eclipse/sabotter/trunk/jp.xet.sabotter.core/src/jp/xet/sabotter/core/wassr/WassrUser.java

    r15134 r15149  
    1313        private String screenName; 
    1414         
    15         private String name; 
     15        private String id; 
    1616         
    1717        private URL profileImageURL; 
     
    2121         * コンストラクタです。 
    2222         *  
    23          * @param name 名前 
     23         * @param id 名前 
    2424         * @param screenName 表示名 
    2525         * @param profileImageURL プロフィール表示用URL 
    2626         */ 
    27         public WassrUser(String name, String screenName, URL profileImageURL) { 
    28                 this.name = name; 
     27        public WassrUser(String id, String screenName, URL profileImageURL) { 
     28                this.id = id; 
    2929                this.screenName = screenName; 
    3030                this.profileImageURL = profileImageURL; 
     
    4242         */ 
    4343        public String getName() { 
    44                 return name; 
     44                return screenName; 
    4545        } 
    4646         
     
    5656         */ 
    5757        public String getUserId() { 
    58                 return screenName; 
     58                return id; 
    5959        } 
    6060