FlickrNet.Flickr.NotesEdit C# (CSharp) Méthode

NotesEdit() public méthode

Edit and update a note.
public NotesEdit ( string noteId, int noteX, int noteY, int noteWidth, int noteHeight, string noteText ) : void
noteId string The ID of the note to update.
noteX int The X co-ordinate of the upper left corner of the note.
noteY int The Y co-ordinate of the upper left corner of the note.
noteWidth int The width of the note.
noteHeight int The height of the note.
noteText string The new text in the note.
Résultat void
        public void NotesEdit(string noteId, int noteX, int noteY, int noteWidth, int noteHeight, string noteText)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.photos.notes.edit");
            parameters.Add("note_id", noteId);
            parameters.Add("note_x", noteX.ToString());
            parameters.Add("note_y", noteY.ToString());
            parameters.Add("note_w", noteWidth.ToString());
            parameters.Add("note_h", noteHeight.ToString());
            parameters.Add("note_text", noteText);

            FlickrNet.Response response = GetResponseCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                return;
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr