Author: gonzalo
Date: 2006-08-28 17:53:09 -0400 (Mon, 28 Aug 2006)
New Revision: 64502
Modified:
trunk/google-sharp/ChangeLog
trunk/google-sharp/src/Mono.Google.Picasa/PicasaAlbum.cs
Log:
2006-08-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* src/Mono.Google.Picasa/PicasaAlbum.cs: they added a new 'bytesused'
to tell the size of the album.
Modified: trunk/google-sharp/ChangeLog
===================================================================
--- trunk/google-sharp/ChangeLog 2006-08-28 21:40:38 UTC (rev 64501)
+++ trunk/google-sharp/ChangeLog 2006-08-28 21:53:09 UTC (rev 64502)
@@ -1,3 +1,8 @@
+2006-08-28 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * src/Mono.Google.Picasa/PicasaAlbum.cs: they added a new 'bytesused'
+ to tell the size of the album.
+
2006-08-27 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* src/Mono.Google.Picasa/Makefile.am:
Modified: trunk/google-sharp/src/Mono.Google.Picasa/PicasaAlbum.cs
===================================================================
--- trunk/google-sharp/src/Mono.Google.Picasa/PicasaAlbum.cs 2006-08-28
21:40:38 UTC (rev 64501)
+++ trunk/google-sharp/src/Mono.Google.Picasa/PicasaAlbum.cs 2006-08-28
21:53:09 UTC (rev 64502)
@@ -47,6 +47,7 @@
AlbumAccess access = AlbumAccess.Public;
int num_photos = -1;
int num_photos_remaining = -1;
+ long bytes_used = -1;
internal PicasaAlbum (PicasaWeb pw)
{
@@ -92,6 +93,9 @@
node = nodeitem.SelectSingleNode
("gphoto:numphotosremaining", nsmgr);
if (node != null)
album.num_photos_remaining = (int) UInt32.Parse
(node.InnerText);
+ node = nodeitem.SelectSingleNode ("gphoto:bytesused",
nsmgr);
+ if (node != null)
+ album.bytes_used = (long) UInt64.Parse
(node.InnerText);
return album;
}
@@ -173,7 +177,7 @@
xml.WriteElementString ("description", description);
xml.WriteElementString ("multipart", multipart_name,
PicasaNamespaces.GPhoto);
//checksum?
- xml.WriteElementString ("layout", "0.000000",
PicasaNamespaces.GPhoto);
+ xml.WriteElementString ("layout", "0.0",
PicasaNamespaces.GPhoto);
xml.WriteElementString ("client", "picasa",
PicasaNamespaces.GPhoto); // Should not lie here.
return xml.GetDocumentString ();
}
@@ -317,6 +321,10 @@
get { return user; }
}
+ public long BytesUsed {
+ get { return bytes_used; }
+ }
+
internal PicasaV1 API {
get { return api; }
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches