The next (or previous) photo in the current context.
Inheritance: IFlickrParsable
Esempio n. 1
0
 void IFlickrParsable.Load(XmlReader reader)
 {
     while (reader.NodeType != XmlNodeType.EndElement)
       {
     switch (reader.LocalName)
     {
       case "count":
     this.Count = reader.ReadElementContentAsInt();
     continue;
       case "prevphoto":
     this.PreviousPhoto = new ContextPhoto();
     this.PreviousPhoto.Load(reader);
     if (this.PreviousPhoto.PhotoId == "0")
     {
       this.PreviousPhoto = (ContextPhoto) null;
       continue;
     }
     else
       continue;
       case "nextphoto":
     this.NextPhoto = new ContextPhoto();
     this.NextPhoto.Load(reader);
     if (this.NextPhoto.PhotoId == "0")
     {
       this.NextPhoto = (ContextPhoto) null;
       continue;
     }
     else
       continue;
       default:
     continue;
     }
       }
 }
Esempio n. 2
0
        void IFlickrParsable.Load(XmlReader reader)
        {
            while (reader.NodeType != XmlNodeType.EndElement)
            {
                switch (reader.LocalName)
                {
                case "count":
                    Count = reader.ReadElementContentAsInt();
                    break;

                case "prevphoto":
                    PreviousPhoto = new ContextPhoto();
                    ((IFlickrParsable)PreviousPhoto).Load(reader);
                    if (PreviousPhoto.PhotoId == "0")
                    {
                        PreviousPhoto = null;
                    }
                    break;

                case "nextphoto":
                    NextPhoto = new ContextPhoto();
                    ((IFlickrParsable)NextPhoto).Load(reader);
                    if (NextPhoto.PhotoId == "0")
                    {
                        NextPhoto = null;
                    }
                    break;
                }
            }
        }
Esempio n. 3
0
        void IFlickrParsable.Load(XmlReader reader)
        {
            while (reader.NodeType != XmlNodeType.EndElement)
            {
                switch (reader.LocalName)
                {
                    case "count":
                        Count = reader.ReadElementContentAsInt();
                        break;
                    case "prevphoto":
                        PreviousPhoto = new ContextPhoto();
                        ((IFlickrParsable)PreviousPhoto).Load(reader);
                        break;
                    case "nextphoto":
                        NextPhoto = new ContextPhoto();
                        ((IFlickrParsable)NextPhoto).Load(reader);
                        break;

                }
            }
        }