[blam] Item: Use FillItem() to create and update



commit e20f32dcb5134e85431359e71fbf4e2c1a296dd5
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Tue Mar 1 15:49:05 2011 +0100

    Item: Use FillItem() to create and update
    
    Signed-off-by: Carlos Martín Nieto <carlos cmartin tk>

 src/Item.cs |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index 916a47e..54014d2 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -74,7 +74,7 @@ namespace Imendio.Blam {
 		{
 		}
 
-        public Item(SyndicationItem item) : base(item)
+        private void FillItem(SyndicationItem item)
         {
             if(this.Id == null){
                 this.Id = this.Links[0].Uri.ToString();
@@ -118,9 +118,14 @@ namespace Imendio.Blam {
             }
         }
 
-        public bool Update(SyndicationItem SyndItem)
+        public Item(SyndicationItem item) : base(item)
+        {
+            FillItem(item);
+        }
+
+        public bool Update(SyndicationItem item)
         {
-            //TODO: Implement item updating
+            FillItem(item);
             return true;
         }
 



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