Author: stephane
Date: 2007-03-16 16:20:38 -0500 (Fri, 16 Mar 2007)
New Revision: 74499
Modified:
trunk/google-sharp/ChangeLog
trunk/google-sharp/src/Mono.Google.Picasa/PicasaPicture.cs
Log:
2007-03-16 Stephane Delcroix <[EMAIL PROTECTED]>
* src/Mono.Google.Picasa/PicasaPicture.cs: Add parser and get'er for
reading Tags.
Modified: trunk/google-sharp/ChangeLog
===================================================================
--- trunk/google-sharp/ChangeLog 2007-03-16 21:16:11 UTC (rev 74498)
+++ trunk/google-sharp/ChangeLog 2007-03-16 21:20:38 UTC (rev 74499)
@@ -1,5 +1,10 @@
2007-03-16 Stephane Delcroix <[EMAIL PROTECTED]>
+ * src/Mono.Google.Picasa/PicasaPicture.cs: Add parser and get'er for
+ reading Tags.
+
+2007-03-16 Stephane Delcroix <[EMAIL PROTECTED]>
+
* src/Mono.Google.Picasa/PicasaAlbum.cs: Fixes the namespaces in
GetPictures ().
Modified: trunk/google-sharp/src/Mono.Google.Picasa/PicasaPicture.cs
===================================================================
--- trunk/google-sharp/src/Mono.Google.Picasa/PicasaPicture.cs 2007-03-16
21:16:11 UTC (rev 74498)
+++ trunk/google-sharp/src/Mono.Google.Picasa/PicasaPicture.cs 2007-03-16
21:20:38 UTC (rev 74499)
@@ -47,6 +47,7 @@
int height;
int index;
string id;
+ string tags;
internal PicasaPicture (GoogleConnection conn, PicasaAlbum
album)
{
@@ -69,6 +70,8 @@
picture.index = (node != null) ? (int) UInt32.Parse
(node.InnerText) : -1;
node = nodeitem.SelectSingleNode ("gphoto:id", nsmgr);
picture.id = (node != null) ? node.InnerText : "auto" +
picture.title.GetHashCode ().ToString ();
+ picture.tags = nodeitem.SelectSingleNode
("media:group", nsmgr).SelectSingleNode ("media:keywords", nsmgr).InnerText;
+
return picture;
}
@@ -121,6 +124,10 @@
public string UniqueID {
get { return id; }
}
+
+ public string Tags {
+ get { return tags; }
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches