hitrust / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
1 stars 0 forks source link

Denote volatile return values in gadget reference #123

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In particular, Participant.getThumbnailUrl() seems to return a value that
might not be valid in the future (a 'private' image URL), across Viewer
sessions.

Is Participant.getId() the only value that can be reliably stored and
reused, via State.submitDelta()?  If so, the docs should mention it.

I'm tempted to request an API for gadget/wave participant specific storage,
because it is a common task, such as Participant.submitDelta() and
Participant.get*().  Tracking participant data would be less of a hassle if
the State API is updated to allow for more data types, like
State.submitDelta( Participant.getId(), {'a': 42, 'b': 56} ) leading to
State.get( Participant.getId() )['a'] ...

Original issue reported on code.google.com by githappe...@gmail.com on 1 Aug 2009 at 12:50

GoogleCodeExporter commented 9 years ago
I've shared the need to denote volatile return values in gadget reference. I 
agree with 
you regarding per-participant state sharing; can you open up a separate issue 
for that? 
It is better to track them separately. Thanks!

Original comment by pamela.fox on 11 Oct 2009 at 10:11