Example #1
0
        public Album VisitPhotosCreateAlbum(CreateAlbum method, JToken data)
        {
            var album = new Album();

            album.Accept(this.ObjectParser, data["response"]);
            return(album);
        }
Example #2
0
        public List <Album> VisitPhotosGetAlbums(GetAlbums method, JToken data)
        {
            var result = new List <Album>();

            foreach (var albumToken in data["response"]["items"])
            {
                var album = new Album();
                album.Accept(this.ObjectParser, albumToken);
                result.Add(album);
            }

            return(result);
        }