~ubuntu-branches/ubuntu/saucy/f-spot/saucy

« back to all changes in this revision

Viewing changes to extensions/Exporters/FacebookExport/Mono.Facebook/Album.cs

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2010-05-24 10:35:57 UTC
  • mfrom: (2.4.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20100524103557-1j0i8f66caybci2n
Tags: 0.7.0-1
* New upstream release 0.7.0
 + First release of the unstable 0.7 development series. Massive changes.
 + Reparenting and detaching support (Anton Keks) (Closes: #559745)
 + A new Mallard-based documentation (Harold Schreckengost)
 + No longer embeds flickrnet, uses distribution copy (Iain Lane)
 + Adoption of a large amount of Hyena functionality (Paul Lange, Peter
   Goetz)
 + No longer embeds gnome-keyring-sharp
 + Completely rewritten import, much faster and less memory hungry (Ruben
   Vermeersch) (Closes: #559080, #492658, #341790, #357811, #426017) (LP:
   #412091)
 + No longer use gphoto2-sharp, now uses gvfs which is less crash-pron
   (Ruben Vermeersch)
 + Fix Facebook support (Ruben Vermeersch)
 + Modernized unit tests
 + Revamped build (Mike Gemünde)
 + Much improved duplicate detection (much faster too) (Ruben Vermeersch)
 + Mouse selection in Iconview (Vincent Pomey)
 + Image panning support using middle mouse button (Wojciech Dzierżanowski)
 + Timeline slider now restricted to the size of the window (Iain Churcher)
 + Over 100 bugs closed (http://bit.ly/cyVjnD)
   - No more warnings about schema defaults (Closes: #584215) (LP: #586132)
* debian/control: Clean up build deps to match configure checks
* debian/rules: Don't run dh_makeshilbs as we don't ship any shared
  libraries. There are some private ones though, which get picked up and
  result in a useless postinst/postrm call to ldconfig. Thanks, lintian.
* debian/patches/debian_fix-distclean.patch,
  debian/patches/debian_fix_f-spot.exe.config.patch,
  debian/patches/debian_link-system-flickrnet.patch,
  debian/patches/debian_link-system-gnome-keyring.patch,
  debian/patches/debian_disable-unit-tests,
  debian/patches/git_transition_duration.patch,
  debian/patches/ubuntu_fix_folder_export_hang.patch:
  Clean up obsolete patches which are no longer necessary 
* debian/patches/*: Temporarily disable patches which originated from Ubuntu
  and no longer apply cleanly. We will get these back in a future upstream
  development release.
* debian/patches/*: Refresh to apply cleanly 
* debian/rules: Add new include dir to autoreconf call to pick up f-spot
  macros 

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
using System.Xml.Serialization;
33
33
using System.Text;
34
34
using System.Net;
 
35
using Mono.Facebook.Schemas;
35
36
 
36
37
namespace Mono.Facebook
37
38
{
38
 
        [XmlRoot ("photos_createAlbum_response", Namespace="http://api.facebook.com/1.0/")]
39
 
        public class Album : SessionWrapper
 
39
    [System.Xml.Serialization.XmlRootAttribute("photos_createAlbum_response", Namespace="http://api.facebook.com/1.0/")]
 
40
        public class Album : album, SessionWrapper
40
41
        {
41
 
                [XmlElement ("aid")]
42
 
                public long AId;
43
 
 
44
 
                [XmlElement ("cover_pid")]
45
 
                public long ConverPId;
46
 
 
47
 
                [XmlElement ("owner")]
48
 
                public long Owner;
49
 
 
50
 
                [XmlElement ("name")]
51
 
                public string Name;
52
 
 
53
 
                [XmlElement ("created")]
54
 
                public long Created;
55
 
 
56
 
                [XmlElement ("modified")]
57
 
                public long Modified;
58
 
 
59
 
                [XmlElement ("description")]
60
 
                public string Description;
61
 
 
62
 
                [XmlElement ("location")]
63
 
                public string Location;
64
 
 
65
 
                [XmlElement ("link")]
66
 
                public string Link;
67
 
 
68
 
                [XmlIgnore ()]
69
 
                public Uri Uri
70
 
                {
71
 
                        get { return new Uri (Link); }
72
 
                }
 
42
        [XmlIgnore]
 
43
                public FacebookSession Session { get; set; }
73
44
 
74
45
                public Photo[] GetPhotos ()
75
46
                {
76
47
                        PhotosResponse rsp = Session.Util.GetResponse<PhotosResponse> ("facebook.photos.get",
77
 
                                FacebookParam.Create ("aid", AId),
 
48
                                FacebookParam.Create ("aid", aid),
78
49
                                FacebookParam.Create ("session_key", Session.SessionKey),
79
50
                                FacebookParam.Create ("call_id", DateTime.Now.Ticks));
80
51
 
109
80
 
110
81
                public Photo Upload (string caption, string path)
111
82
                {
112
 
                        Photo uploaded = Session.Util.Upload (AId, caption, path, Session.SessionKey);
 
83
                        Photo uploaded = Session.Util.Upload (aid, caption, path, Session.SessionKey);
113
84
                        uploaded.Session = this.Session;
114
85
 
115
86
                        return uploaded;