a) stubbornly declare that self/feed/post should be just get's as well, as I have argued before, and fix this bug for the next release..
b) change next/prev to be read/write as well
I am pretty sure i made self/feed/post read/write for no specific reason (just coding along, filling out the blanks...), and i think for a consumer it is still not ideal that you can set this, with no persisting effect.
OTOH, as it already is that way, and taking features away is not really nice, i will add the setters for next/prev in the next few days (I am currently traveling, so it will be next week).
Frank Mantek
On 8/12/06, RichB <[EMAIL PROTECTED]> wrote:
Frank Mantek wrote:
> For a creator of feeds, i assumed actually that you would use AtomLink
> elements. If you create a feed, I assumed you would create all elements
> youself, and hence all links as well. So you would go ahead and create your
> self link, your post link etc... For this you do use the AtomLink element,
> set properties on it and put it into the link collection. I did assume that
> in that part of the creatiion process you would create the next/prev links
> as well, with the same mechanism.
I guess my disconnect is with the inconsistent behaviour between
NextChunk and Self. eg
AtomFeed feed = new AtomFeed(new
Uri(" http://www.atomfeed.com/"), service);
// Set the self
feed.Self = "http://www.atomfeed.com/feed?max-results=2;
// Set the Feed
feed.Feed = "http://www.atomfeed.com/feed";
// Set the NextChunk
if (entries.Count > startIndex - 1 + maxResults) {
AtomLink link =
feed.Links.FindService(BaseNameTable.ServiceNext, AtomLink.ATOM_TYPE);
if (link == null) {
link = new AtomLink();
link.Rel = BaseNameTable.ServiceNext;
feed.Links.Add(link);
}
link.HRef = "" AtomUri(nextChunkUri);
}
I would expect Self, Feed and NextChunk to work in the same way.
However, I could be missing something special about Self and Feed.
Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Data API" group.
To post to this group, send email to google-help-dataapi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/google-help-dataapi
-~----------~----~----~----~------~----~------~--~---