FlickrNet.Flickr.PhotosCommentsGetList C# (CSharp) Method

PhotosCommentsGetList() public method

Gets a list of comments for a photo.
public PhotosCommentsGetList ( string photoId ) : Comment[]
photoId string The id of the photo to return the comments for.
return Comment[]
        public Comment[] PhotosCommentsGetList(string photoId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.comments.getList");
            parameters.Add("photo_id", photoId);

            FlickrNet.Response response = GetResponseCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                return PhotoComments.GetComments(response.AllElements[0]);
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr