Author: fmantek
Date: Tue Jan 8 23:57:04 2008
New Revision: 363
Modified:
trunk/clients/cs/Makefile
trunk/clients/cs/RELEASE_NOTES.HTML
trunk/clients/cs/src/extensions/georsswhere.cs
trunk/clients/cs/src/extensions/mediarss.cs
trunk/clients/cs/src/gphotos/albumentry.cs
trunk/clients/cs/src/gphotos/photoentry.cs
trunk/clients/cs/src/unittests/photostest.cs
Log:
Changed Lattitude to the correct spelling
Added a MediaContentCollection property to the Mediagroup
Modified: trunk/clients/cs/Makefile
==============================================================================
--- trunk/clients/cs/Makefile (original)
+++ trunk/clients/cs/Makefile Tue Jan 8 23:57:04 2008
@@ -43,7 +43,8 @@
gapps_migration_sample.exe \
gblogger_demo.exe \
gcal_demo.exe \
- gspreadsheet_demo.exe
+ gspreadsheet_demo.exe \
+ HealthTool.exe \
all: $(ALL_LIBS) tests $(samples)
@@ -138,6 +139,10 @@
execrequest_sources = $(wildcard samples/execrequest/*.cs)
execrequest.exe: $(ALLLIBS) $(execrequest_sources)
$(CSC) -out:$@ $(ALLREFS) $(execrequest_sources)
+
+healthtool_sources = $(wildcard samples/health/*.cs)
+HealthTool.exe: $(ALLLIBS) $(healthtool_sources)
+ $(CSC) -out:$@ $(ALLREFS) $(healthtool_sources)
gblogger_sample_sources = samples/blogger/ConsoleSample.cs
gblogger_demo.exe: $(ALLLIBS) $(gblogger_sample_sources)
Modified: trunk/clients/cs/RELEASE_NOTES.HTML
==============================================================================
--- trunk/clients/cs/RELEASE_NOTES.HTML (original)
+++ trunk/clients/cs/RELEASE_NOTES.HTML Tue Jan 8 23:57:04 2008
@@ -16,6 +16,11 @@
<li>Issue 93: ReFixed Title Exact Queries for Spreadsheets. Using
Title-Exact resulted in two question marks in the query string.</li>
<li>Fixed the GeoRSS where extension, which lived in a mistyped
namespace.</li>
+ <li>Fixed the Latitude property, which was misspelled Lattitude</li>
+ <li>Added MediaGroup.Contents as a Collection: as there
+ could be more than one. So all previous usages should be changed
+ to access the first element in a collection. The old method
will remain
+ in there.</li>
</ul>
</ul>
Modified: trunk/clients/cs/src/extensions/georsswhere.cs
==============================================================================
--- trunk/clients/cs/src/extensions/georsswhere.cs (original)
+++ trunk/clients/cs/src/extensions/georsswhere.cs Tue Jan 8 23:57:04 2008
@@ -78,9 +78,9 @@
}
/// <summary>
- /// accessor for the Lattitude part
+ /// accessor for the Latitude part
/// </summary>
- public double Lattitude
+ public double Latitude
{
get
{
@@ -89,13 +89,13 @@
{
return -1;
}
- return position.Lattitude;
+ return position.Latitude;
}
set
{
GeoKmlPosition position = GetPosition(true);
- position.Lattitude = value;
+ position.Latitude = value;
}
}
@@ -204,11 +204,11 @@
}
/// <summary>
- /// accessor for Lattitude. Works by dynamically parsing
+ /// accessor for Latitude. Works by dynamically parsing
/// the string that is stored in Value. Will THROW if
/// that string is incorrectly formated
/// </summary>
- public double Lattitude
+ public double Latitude
{
get
{
Modified: trunk/clients/cs/src/extensions/mediarss.cs
==============================================================================
--- trunk/clients/cs/src/extensions/mediarss.cs (original)
+++ trunk/clients/cs/src/extensions/mediarss.cs Tue Jan 8 23:57:04 2008
@@ -72,6 +72,7 @@
public class MediaGroup : SimpleContainer
{
private ThumbnailCollection thumbnails;
+ private MediaContentCollection contents;
/// <summary>
/// default constructor for media:group
/// </summary>
@@ -192,6 +193,23 @@
}
}
+
+ /// <summary>
+ /// property accessor for the Contents Collection
+ /// </summary>
+ public MediaContentCollection Contents
+ {
+ get
+ {
+ if (this.contents == null)
+ {
+ this.contents = new MediaContentCollection(this);
+ }
+ return this.contents;
+ }
+ }
+
+
}
/// <summary>
@@ -420,6 +438,74 @@
}
/////////////////////////////////////////////////////////////////////////////
+
+ //////////////////////////////////////////////////////////////////////
+ /// <summary>Typed collection for Thumbnails Extensions.</summary>
+ //////////////////////////////////////////////////////////////////////
+ public class MediaContentCollection : ExtensionCollection
+ {
+ private MediaContentCollection() : base()
+ {
+ }
+
+ /// <summary>constructor</summary>
+ public MediaContentCollection(IExtensionContainer atomElement)
+ : base(atomElement, MediaRssNameTable.MediaRssContent,
MediaRssNameTable.NSMediaRss)
+ {
+ }
+
+ /// <summary>standard typed accessor method </summary>
+ public MediaContent this[int index]
+ {
+ get
+ {
+ return ((MediaContent)List[index]);
+ }
+ set
+ {
+ setItem(index,value);
+ }
+ }
+
+ /// <summary>standard typed add method </summary>
+ public int Add(MediaContent value)
+ {
+ return base.Add(value);
+ }
+
+ /// <summary>standard typed indexOf method </summary>
+ public int IndexOf(MediaContent value)
+ {
+ return (List.IndexOf(value));
+ }
+
+ /// <summary>standard typed insert method </summary>
+ public void Insert(int index, MediaContent value)
+ {
+ base.Insert(index, value);
+ }
+
+ /// <summary>standard typed remove method </summary>
+ public void Remove(MediaContent value)
+ {
+ base.Remove(value);
+ }
+
+ /// <summary>standard typed Contains method </summary>
+ public bool Contains(MediaContent value)
+ {
+ // If value is not of type AtomEntry, this will return false.
+ return (List.Contains(value));
+ }
+
+ /// <summary>standard typed OnValidate Override </summary>
+ protected override void OnValidate(Object value)
+ {
+ if (value as MediaContent == null)
+ throw new ArgumentException("value must be of type
Google.GData.Extensions.MediaRss.MediaThumbnail.", "value");
+ }
+ }
+
/////////////////////////////////////////////////////////////////////////////
}
Modified: trunk/clients/cs/src/gphotos/albumentry.cs
==============================================================================
--- trunk/clients/cs/src/gphotos/albumentry.cs (original)
+++ trunk/clients/cs/src/gphotos/albumentry.cs Tue Jan 8 23:57:04 2008
@@ -259,16 +259,16 @@
#if WindowsCE || PocketPC
#else
[Category("Location Data"),
- Description("The Lattitude of the photo.")]
+ Description("The Latitude of the photo.")]
#endif
- public double Lattitude
+ public double Latitude
{
get
{
GeoRssWhere where =
this.entry.FindExtension(GeoNametable.GeoRssWhereElement,
GeoNametable.NSGeoRss) as GeoRssWhere;
if (where != null)
{
- return where.Lattitude;
+ return where.Latitude;
}
return -1;
}
@@ -280,7 +280,7 @@
where =
entry.CreateExtension(GeoNametable.GeoRssWhereElement,
GeoNametable.NSGeoRss) as GeoRssWhere;
this.entry.ExtensionElements.Add(where);
}
- where.Lattitude = value;
+ where.Latitude = value;
}
}
Modified: trunk/clients/cs/src/gphotos/photoentry.cs
==============================================================================
--- trunk/clients/cs/src/gphotos/photoentry.cs (original)
+++ trunk/clients/cs/src/gphotos/photoentry.cs Tue Jan 8 23:57:04 2008
@@ -427,16 +427,16 @@
#if WindowsCE || PocketPC
#else
[Category("Location Photo Data"),
- Description("The Lattitude of the photo.")]
+ Description("The Latitude of the photo.")]
#endif
- public double Lattitude
+ public double Latitude
{
get
{
GeoRssWhere where =
this.entry.FindExtension(GeoNametable.GeoRssWhereElement,
GeoNametable.NSGeoRss) as GeoRssWhere;
if (where != null)
{
- return where.Lattitude;
+ return where.Latitude;
}
return -1;
}
@@ -448,7 +448,7 @@
where =
entry.CreateExtension(GeoNametable.GeoRssWhereElement,
GeoNametable.NSGeoRss) as GeoRssWhere;
this.entry.ExtensionElements.Add(where);
}
- where.Lattitude = value;
+ where.Latitude = value;
}
}
}
Modified: trunk/clients/cs/src/unittests/photostest.cs
==============================================================================
--- trunk/clients/cs/src/unittests/photostest.cs (original)
+++ trunk/clients/cs/src/unittests/photostest.cs Tue Jan 8 23:57:04 2008
@@ -154,7 +154,7 @@
GeoRssWhere w = entry.Location;
if (w != null)
{
- Tracing.TraceMsg("Found an location " +
w.Lattitude + w.Longitude);
+ Tracing.TraceMsg("Found an location " +
w.Latitude + w.Longitude);
}
ExifTags tags = entry.Exif;
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---