[Tween-svn] [1206] DELETEイベントは発言抜粋と発言日時を残すようにしてみた

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 12月 14日 (火) 21:05:23 JST


Revision: 1206
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1206
Author:   kiri_feather
Date:     2010-12-14 21:05:23 +0900 (Tue, 14 Dec 2010)

Log Message:
-----------
DELETEイベントは発言抜粋と発言日時を残すようにしてみた

Modified Paths:
--------------
    trunk/Tween/Twitter.vb


-------------- next part --------------
Modified: trunk/Tween/Twitter.vb
===================================================================
--- trunk/Tween/Twitter.vb	2010-12-13 17:44:11 UTC (rev 1205)
+++ trunk/Tween/Twitter.vb	2010-12-14 12:05:23 UTC (rev 1206)
@@ -2807,12 +2807,6 @@
         Public Property Username As String
         Public Property Target As String
 
-        Public Overrides Function ToString() As String
-            Return (Me.CreatedAt.ToString() + "                    ").Substring(0, 20) +
-                ("[" + Me.Event.ToUpper + "]                   ").Substring(0, 20) +
-                (Me.Username + "                    ").Substring(0, 20) +
-                Me.Target
-        End Function
     End Class
 
     Public Property StoredEvent As New List(Of FormattedEvent)
@@ -2898,7 +2892,7 @@
                 evt.Event = "DELETE(Post)"
             End If
             evt.Username = post.Name
-            evt.Target = post.Data
+            evt.Target = If(post.Data.Length > 5, post.Data.Substring(0, 5) + "...", post.Data) + " [" + post.PDate.ToString + "]"
         End If
         Me.StoredEvent.Insert(0, evt)
         RaiseEvent UserStreamEventReceived(evt.Event)



Tween-svn メーリングリストの案内
Back to archive index