FlickrNet.Flickr.PhotosetsCommentsGetList C# (CSharp) Method

PhotosetsCommentsGetList() public method

Gets a list of comments for a photoset.
public PhotosetsCommentsGetList ( string photosetId ) : Comment[]
photosetId string The id of the photoset to return the comments for.
return Comment[]
        public Comment[] PhotosetsCommentsGetList(string photosetId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photosets.comments.getList");
            parameters.Add("photoset_id", photosetId);

            FlickrNet.Response response = GetResponseCache(parameters);

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