Logo Search packages:      
Sourcecode: f-spot version File versions

Uploader.cs

using System;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace FlickrNet
{
      /// <summary>
      /// Information returned by the UploadPicture url.
      /// </summary>
      [XmlRoot("rsp")]
00012       public class Uploader
      {
            private ResponseStatus _status;
            private string _photoId;
            private string _ticketId;
            private ResponseError _error;

            /// <summary>
            /// The status of the upload, either "ok" or "fail".
            /// </summary>
            [XmlAttribute("stat", Form=XmlSchemaForm.Unqualified)]
            public ResponseStatus Status
00024             {
                  get { return _status; }
                  set { _status = value; }
            }

            /// <summary>
            /// If the upload succeeded then this contains the id of the photo. Otherwise it will be zero.
            /// </summary>
            [XmlElement("photoid", Form=XmlSchemaForm.Unqualified)]
            public string PhotoId
00034             {
                  get { return _photoId; }
                  set { _photoId = value; }
            }

            /// <summary>
            /// The ticket id, if using Asynchronous uploading.
            /// </summary>
            [XmlElement("ticketid", Form=XmlSchemaForm.Unqualified)]
            public string TicketId
00044             {
                  get { return _ticketId; }
                  set { _ticketId = value; }
            }

            /// <summary>
            /// Contains the error returned if the upload is unsuccessful.
            /// </summary>
            [XmlElement("err", Form=XmlSchemaForm.Unqualified)]
            public ResponseError Error
00054             {
                  get { return _error; }
                  set { _error = value; }
            }
      }
}

Generated by  Doxygen 1.6.0   Back to index