[blam/wcf: 2/8] Add author and published date to Item



commit 6f7f32a3da3a0950e430c84d22f7065239b9cd3a
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Thu Jun 3 11:50:32 2010 +0200

    Add author and published date to Item

 src/Item.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index c3378a7..a158ddd 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -66,10 +66,11 @@ namespace Imendio.Blam {
                 this.Link = item.Links[0].Uri.ToString();
             }
 
-            //if(item.Authors.Size >= 1 && item.Authors[0] != null){
-            //    this.Author = item.Authors[0].ToString();
-            //}
-            //TODO: Fix above and add this.PubDate
+            if(item.Authors.Count >= 1 && item.Authors[0] != null){
+                this.Author = item.Authors[0].Name;
+            }
+
+            this.PubDate = item.PublishDate.LocalDateTime;
         }
 
         public bool Update(SyndicationItem SyndItem)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]