Author: thomasvm
Date: 2007-03-28 13:35:49 -0500 (Wed, 28 Mar 2007)
New Revision: 75095

Modified:
   trunk/facebook-sharp/src/Mono.Facebook/Album.cs
   trunk/facebook-sharp/src/Mono.Facebook/FacebookParam.cs
   trunk/facebook-sharp/src/Mono.Facebook/Photo.cs
   trunk/facebook-sharp/src/Mono.Facebook/SessionWrapper.cs
Log:
Fix remaining ugly characters

Modified: trunk/facebook-sharp/src/Mono.Facebook/Album.cs
===================================================================
--- trunk/facebook-sharp/src/Mono.Facebook/Album.cs     2007-03-28 18:04:10 UTC 
(rev 75094)
+++ trunk/facebook-sharp/src/Mono.Facebook/Album.cs     2007-03-28 18:35:49 UTC 
(rev 75095)
@@ -26,91 +26,91 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Xml.Serialization;
-using System.Text;
-using System.Net;
-
-namespace Mono.Facebook
-{
-       [XmlRoot ("photos_createAlbum_response", 
Namespace="http://api.facebook.com/1.0/";)]
-       public class Album : SessionWrapper
-       {
-               [XmlElement ("aid")]
-               public long AId;
-
-               [XmlElement ("cover_pid")]
-               public long ConverPId;
-
-               [XmlElement ("owner")]
-               public int Owner;
-
-               [XmlElement ("name")]
-               public string Name;
-
-               [XmlElement ("created")]
-               public int Created;
-
-               [XmlElement ("modified")]
-               public int Modified;
-
-               [XmlElement ("description")]
-               public string Description;
-
-               [XmlElement ("location")]
-               public string Location;
-
-               [XmlElement ("link")]
-               public string Link;
-
-               [XmlIgnore ()]
-               public Uri Uri
-               {
-                       get { return new Uri (Link); }
-               }
-
-               public Photo[] GetPhotos ()
-               { 
-                       PhotosResponse rsp = 
Session.Util.GetResponse<PhotosResponse> ("facebook.photos.get", new 
FacebookParam ("aid", AId),
-                               FacebookParam.Create ("session_key", 
Session.SessionKey),
-                               FacebookParam.Create ("call_id", 
DateTime.Now.Ticks));
-
-                       foreach (Photo p in rsp.Photos)
-                               p.Session = Session;
-
-                       return rsp.Photos;
-               }
-
-               public Tag[] GetTags ()
-               { 
-                       StringBuilder pids = new StringBuilder ();
-
-                       foreach (Photo p in GetPhotos ()) {
-                               if (pids.Length > 0)
-                                       pids.Append (",");
-
-                               pids.Append (p.PId);
-                       }
-
-                       PhotoTagsResponse rsp = 
Session.Util.GetResponse<PhotoTagsResponse> ("facebook.photos.getTags", new 
FacebookParam ("pids", pids),
-                               FacebookParam.Create ("session_key", 
Session.SessionKey),
-                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
-
-                       foreach (Tag t in rsp.Tags)
-                               t.Session = Session;
-
-                       return rsp.Tags;
-               }
-
-
-               public Photo Upload (string caption, string path)
-               {
-                       Photo uploaded = Session.Util.Upload (AId, caption, 
path, Session.SessionKey);
-                       uploaded.Session = this.Session;
-
-                       return uploaded;
-               }
-       }
-}
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Xml.Serialization;
+using System.Text;
+using System.Net;
+
+namespace Mono.Facebook
+{
+       [XmlRoot ("photos_createAlbum_response", 
Namespace="http://api.facebook.com/1.0/";)]
+       public class Album : SessionWrapper
+       {
+               [XmlElement ("aid")]
+               public long AId;
+
+               [XmlElement ("cover_pid")]
+               public long ConverPId;
+
+               [XmlElement ("owner")]
+               public int Owner;
+
+               [XmlElement ("name")]
+               public string Name;
+
+               [XmlElement ("created")]
+               public int Created;
+
+               [XmlElement ("modified")]
+               public int Modified;
+
+               [XmlElement ("description")]
+               public string Description;
+
+               [XmlElement ("location")]
+               public string Location;
+
+               [XmlElement ("link")]
+               public string Link;
+
+               [XmlIgnore ()]
+               public Uri Uri
+               {
+                       get { return new Uri (Link); }
+               }
+
+               public Photo[] GetPhotos ()
+               { 
+                       PhotosResponse rsp = 
Session.Util.GetResponse<PhotosResponse> ("facebook.photos.get", new 
FacebookParam ("aid", AId),
+                               FacebookParam.Create ("session_key", 
Session.SessionKey),
+                               FacebookParam.Create ("call_id", 
DateTime.Now.Ticks));
+
+                       foreach (Photo p in rsp.Photos)
+                               p.Session = Session;
+
+                       return rsp.Photos;
+               }
+
+               public Tag[] GetTags ()
+               { 
+                       StringBuilder pids = new StringBuilder ();
+
+                       foreach (Photo p in GetPhotos ()) {
+                               if (pids.Length > 0)
+                                       pids.Append (",");
+
+                               pids.Append (p.PId);
+                       }
+
+                       PhotoTagsResponse rsp = 
Session.Util.GetResponse<PhotoTagsResponse> ("facebook.photos.getTags", new 
FacebookParam ("pids", pids),
+                               FacebookParam.Create ("session_key", 
Session.SessionKey),
+                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
+
+                       foreach (Tag t in rsp.Tags)
+                               t.Session = Session;
+
+                       return rsp.Tags;
+               }
+
+
+               public Photo Upload (string caption, string path)
+               {
+                       Photo uploaded = Session.Util.Upload (AId, caption, 
path, Session.SessionKey);
+                       uploaded.Session = this.Session;
+
+                       return uploaded;
+               }
+       }
+}

Modified: trunk/facebook-sharp/src/Mono.Facebook/FacebookParam.cs
===================================================================
--- trunk/facebook-sharp/src/Mono.Facebook/FacebookParam.cs     2007-03-28 
18:04:10 UTC (rev 75094)
+++ trunk/facebook-sharp/src/Mono.Facebook/FacebookParam.cs     2007-03-28 
18:35:49 UTC (rev 75095)
@@ -26,47 +26,47 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;
-
-namespace Mono.Facebook
-{
-       public class FacebookParam : IComparable
-       {
-               private string name;
-               private object value;
-
-               public string Name
-               {
-                       get { return name; }
-               }
-
-               public object Value
-               {
-                       get { return value; }
-               }
-
-               public FacebookParam (string name, object value)
-               {
-                       this.name = name;
-                       this.value = value;
-               }
-
-               public override string ToString ()
-               {
-                       return string.Format ("{0}={1}", name, value.ToString 
());
-               }
-
-               public static FacebookParam Create (string name, object value)
-               {
-                       return new FacebookParam (name, value);
-               }
-
-               public int CompareTo (object obj)
-               {
-                       if (!(obj is FacebookParam))
-                               return -1;
-
-                       return this.name.CompareTo ((obj as 
FacebookParam).name);
-               }
-       }
-}
+using System;
+
+namespace Mono.Facebook
+{
+       public class FacebookParam : IComparable
+       {
+               private string name;
+               private object value;
+
+               public string Name
+               {
+                       get { return name; }
+               }
+
+               public object Value
+               {
+                       get { return value; }
+               }
+
+               public FacebookParam (string name, object value)
+               {
+                       this.name = name;
+                       this.value = value;
+               }
+
+               public override string ToString ()
+               {
+                       return string.Format ("{0}={1}", name, value.ToString 
());
+               }
+
+               public static FacebookParam Create (string name, object value)
+               {
+                       return new FacebookParam (name, value);
+               }
+
+               public int CompareTo (object obj)
+               {
+                       if (!(obj is FacebookParam))
+                               return -1;
+
+                       return this.name.CompareTo ((obj as 
FacebookParam).name);
+               }
+       }
+}

Modified: trunk/facebook-sharp/src/Mono.Facebook/Photo.cs
===================================================================
--- trunk/facebook-sharp/src/Mono.Facebook/Photo.cs     2007-03-28 18:04:10 UTC 
(rev 75094)
+++ trunk/facebook-sharp/src/Mono.Facebook/Photo.cs     2007-03-28 18:35:49 UTC 
(rev 75095)
@@ -26,81 +26,81 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System.Xml.Serialization;
-
-namespace Mono.Facebook
-{
-       [XmlRoot ("photos_upload_response", 
Namespace="http://api.facebook.com/1.0/";)]
-       public class Photo : SessionWrapper
-       {
-               [XmlElement ("pid")]
-               public long PId;
-
-               [XmlElement ("aid")]
-               public long AId;
-
-               [XmlElement ("owner")]
-               public int Owner;
-
-               [XmlElement ("src")]
-               public string Source;
-
-               [XmlElement ("src_big")]
-               public string SourceBig;
-
-               [XmlElement ("src_small")]
-               public string SourceSmall;
-
-               [XmlElement ("link")]
-               public string Link;
-
-               [XmlElement ("caption")]
-               public string Caption;
-
-               [XmlElement ("created")]
-               public int Created;
-
-               public Tag[] GetTags ()
-               {
-                       PhotoTagsResponse rsp = 
Session.Util.GetResponse<PhotoTagsResponse> ("facebook.photos.getTags", 
-                               FacebookParam.Create ("pids", PId),
-                               FacebookParam.Create ("session_key", 
Session.SessionKey),
-                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
-
-                       foreach (Tag t in rsp.Tags)
-                               t.Session = Session;
-
-                       return rsp.Tags;
-               }
-
-               public Album GetAlbum ()
-               {
-                       AlbumsResponse rsp = 
Session.Util.GetResponse<AlbumsResponse> ("facebook.photos.getAlbums", 
-                               FacebookParam.Create ("aids", AId),
-                               FacebookParam.Create ("session_key", 
Session.SessionKey),
-                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
-
-                       if (rsp.Albums.Length < 1)
-                               return null;
-
-                       rsp.Albums[0].Session = Session;
-                       return rsp.Albums[0];
-               }
-
-               // does not work right now: cannot tag photo already visible on 
facebook
-               public Tag AddTag (string tag_text, float x, float y)
-               {
-                       Tag new_tag = Session.Util.GetResponse<Tag> 
("facebook.photos.addTag",
-                               FacebookParam.Create ("pid", PId),
-                               FacebookParam.Create ("tag_text", tag_text),
-                               FacebookParam.Create ("x", x),
-                               FacebookParam.Create ("y", y),
-                               FacebookParam.Create ("session_key", 
Session.SessionKey),
-                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
-
-                       new_tag.Session = Session;
-
-                       return new_tag;
-               }
-       }
-}
+using System.Xml.Serialization;
+
+namespace Mono.Facebook
+{
+       [XmlRoot ("photos_upload_response", 
Namespace="http://api.facebook.com/1.0/";)]
+       public class Photo : SessionWrapper
+       {
+               [XmlElement ("pid")]
+               public long PId;
+
+               [XmlElement ("aid")]
+               public long AId;
+
+               [XmlElement ("owner")]
+               public int Owner;
+
+               [XmlElement ("src")]
+               public string Source;
+
+               [XmlElement ("src_big")]
+               public string SourceBig;
+
+               [XmlElement ("src_small")]
+               public string SourceSmall;
+
+               [XmlElement ("link")]
+               public string Link;
+
+               [XmlElement ("caption")]
+               public string Caption;
+
+               [XmlElement ("created")]
+               public int Created;
+
+               public Tag[] GetTags ()
+               {
+                       PhotoTagsResponse rsp = 
Session.Util.GetResponse<PhotoTagsResponse> ("facebook.photos.getTags", 
+                               FacebookParam.Create ("pids", PId),
+                               FacebookParam.Create ("session_key", 
Session.SessionKey),
+                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
+
+                       foreach (Tag t in rsp.Tags)
+                               t.Session = Session;
+
+                       return rsp.Tags;
+               }
+
+               public Album GetAlbum ()
+               {
+                       AlbumsResponse rsp = 
Session.Util.GetResponse<AlbumsResponse> ("facebook.photos.getAlbums", 
+                               FacebookParam.Create ("aids", AId),
+                               FacebookParam.Create ("session_key", 
Session.SessionKey),
+                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
+
+                       if (rsp.Albums.Length < 1)
+                               return null;
+
+                       rsp.Albums[0].Session = Session;
+                       return rsp.Albums[0];
+               }
+
+               // does not work right now: cannot tag photo already visible on 
facebook
+               public Tag AddTag (string tag_text, float x, float y)
+               {
+                       Tag new_tag = Session.Util.GetResponse<Tag> 
("facebook.photos.addTag",
+                               FacebookParam.Create ("pid", PId),
+                               FacebookParam.Create ("tag_text", tag_text),
+                               FacebookParam.Create ("x", x),
+                               FacebookParam.Create ("y", y),
+                               FacebookParam.Create ("session_key", 
Session.SessionKey),
+                               FacebookParam.Create ("call_id", 
System.DateTime.Now.Ticks));
+
+                       new_tag.Session = Session;
+
+                       return new_tag;
+               }
+       }
+}

Modified: trunk/facebook-sharp/src/Mono.Facebook/SessionWrapper.cs
===================================================================
--- trunk/facebook-sharp/src/Mono.Facebook/SessionWrapper.cs    2007-03-28 
18:04:10 UTC (rev 75094)
+++ trunk/facebook-sharp/src/Mono.Facebook/SessionWrapper.cs    2007-03-28 
18:35:49 UTC (rev 75095)
@@ -26,13 +26,13 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System.Xml.Serialization;
-
-namespace Mono.Facebook
-{
-       public class SessionWrapper
-       {
-               [XmlIgnore ()]
-               internal FacebookSession Session;
-       }
-}
+using System.Xml.Serialization;
+
+namespace Mono.Facebook
+{
+       public class SessionWrapper
+       {
+               [XmlIgnore ()]
+               internal FacebookSession Session;
+       }
+}

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to