/// <summary> /// Inserts an entry into a feed provider. /// </summary> /// <param name="feedName">name of the feed provider in which to insert the entry</param> /// <param name="entry">entry representation of the data to insert into the server</param> /// <returns>an entry representing the data successfully inserted into server</returns> public GsaEntry InsertEntry(string feedName, GsaEntry entry) { string uri = GetFeedUri(feedName); return Insert(new Uri(uri), entry); }
/// <summary> /// Invokes the update function on the server's feed provider. /// </summary> /// <param name="feedName">name of the feed containing the entry</param> /// <param name="entryId">ID of the entry to update</param> /// <param name="updateEntry">entry object containing the data to be updated to the server</param> /// <returns>an entry corresponding to data successfully updated in the server</returns> public GsaEntry UpdateEntry(string feedName, string entryId, GsaEntry updateEntry) { string uri = GetEntryUri(feedName, entryId); updateEntry.EditUri = new AtomUri(uri); return Update(updateEntry); }
/// <summary> /// Output an XML representation string for given entry. /// </summary> /// <param name="entry">the <c>GsaEntry</c> to generate XML</param> protected void OutputXml(GsaEntry entry) { entry.SaveToXml(new XmlTextWriter(Console.Out)); }