A photo in the context of a favorite. Returned as part of a call to Flickr.FavoritesGetContext(string, string).
Inheritance: Photo, IFlickrParsable
Exemple #1
0
        void IFlickrParsable.Load(System.Xml.XmlReader reader)
        {
            if (reader.LocalName != "count" && !reader.ReadToFollowing("count"))
            {
                UtilityMethods.CheckParsingException(reader);
                return;
            }

            Count = reader.ReadElementContentAsInt();

            if (reader.LocalName != "prevphotos")
            {
                reader.ReadToFollowing("prevphotos");
            }
            reader.ReadToDescendant("photo");
            while (reader.LocalName == "photo")
            {
                FavoriteContextPhoto photo = new FavoriteContextPhoto();
                ((IFlickrParsable)photo).Load(reader);
                PreviousPhotos.Add(photo);
            }

            if (reader.LocalName != "nextphotos")
            {
                reader.ReadToFollowing("nextphotos");
            }
            reader.ReadToDescendant("photo");
            while (reader.LocalName == "photo")
            {
                FavoriteContextPhoto photo = new FavoriteContextPhoto();
                ((IFlickrParsable)photo).Load(reader);
                NextPhotos.Add(photo);
            }
        }
Exemple #2
0
        void IFlickrParsable.Load(System.Xml.XmlReader reader)
        {

            if (reader.LocalName != "count" && !reader.ReadToFollowing("count"))
            {
                UtilityMethods.CheckParsingException(reader);
                return;
            }

            Count = reader.ReadElementContentAsInt();

            if( reader.LocalName != "prevphotos" ) reader.ReadToFollowing("prevphotos");
            reader.ReadToDescendant("photo");
            while (reader.LocalName == "photo")
            {
                FavoriteContextPhoto photo = new FavoriteContextPhoto();
                ((IFlickrParsable)photo).Load(reader);
                PreviousPhotos.Add(photo);
            }

            if (reader.LocalName != "nextphotos") reader.ReadToFollowing("nextphotos");
            reader.ReadToDescendant("photo");
            while (reader.LocalName == "photo")
            {
                FavoriteContextPhoto photo = new FavoriteContextPhoto();
                ((IFlickrParsable)photo).Load(reader);
                NextPhotos.Add(photo);
            }
        }
Exemple #3
0
 void IFlickrParsable.Load(XmlReader reader)
 {
     if (reader.LocalName != "count" && !reader.ReadToFollowing("count"))
     return;
       this.Count = reader.ReadElementContentAsInt();
       if (reader.LocalName != "prevphotos")
     reader.ReadToFollowing("prevphotos");
       reader.ReadToDescendant("photo");
       while (reader.LocalName == "photo")
       {
     FavoriteContextPhoto favoriteContextPhoto = new FavoriteContextPhoto();
     favoriteContextPhoto.Load(reader);
     this.PreviousPhotos.Add(favoriteContextPhoto);
       }
       if (reader.LocalName != "nextphotos")
     reader.ReadToFollowing("nextphotos");
       reader.ReadToDescendant("photo");
       while (reader.LocalName == "photo")
       {
     FavoriteContextPhoto favoriteContextPhoto = new FavoriteContextPhoto();
     favoriteContextPhoto.Load(reader);
     this.NextPhotos.Add(favoriteContextPhoto);
       }
 }