From f12118f51b795a9257e3d8913c630ce988d613af Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 11 Mar 2012 02:54:52 +0000 Subject: [PATCH] remove SparkleNote class --- SparkleLib/SparkleChangeSet.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/SparkleLib/SparkleChangeSet.cs b/SparkleLib/SparkleChangeSet.cs index ef29d56f..9293b7c3 100755 --- a/SparkleLib/SparkleChangeSet.cs +++ b/SparkleLib/SparkleChangeSet.cs @@ -37,8 +37,7 @@ namespace SparkleLib { public List Edited = new List (); public List MovedFrom = new List (); public List MovedTo = new List (); - - public List Notes = new List (); + public string RelativeTimestamp { get { @@ -57,7 +56,7 @@ namespace SparkleLib { ? time_span.Hours + " hours ago" : "an hour ago"; - if (time_span <= TimeSpan.FromDays (30)) + if (time_span <= TimeSpan.FromDays (30)) return time_span.Days > 1 ? time_span.Days + " days ago" : "a day ago"; @@ -70,17 +69,8 @@ namespace SparkleLib { return time_span.Days > 365 ? (time_span.Days / 365) + " years ago" : "a year ago"; - } - } - } - - - public class SparkleNote { - - public SparkleUser User; - - public DateTime Timestamp; - public string Body; + } + } }