Thank you for the reply. The discussion you pointed to is good information for me. I'll study it for my container implementation.
Thanks! On 8月14日, 午後7:17, "Scott Seely" <[email protected]> wrote: > The issue you have here is that you can't figure out which user owns the > appData. In the spec group, we decided that the canonical representation > would be as discussed here: > > http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thr... > ead/ae7a8ea16e338b48/80a33e7e75c60ef0?hl=en&q=appdata+seely > > -----Original Message----- > From: [email protected] > > [mailto:[email protected]] On Behalf Of yssk22 > Sent: Friday, August 14, 2009 2:17 AM > To: OpenSocial - Implementing OpenSocial Containers > Subject: [OpenSocial] What should appdata.get return when multiple users are > specified? > > Hello, all. > > I try to implement an OpenSocial container in my opensoruce project. > I started to read the v0.9(http://www.opensocial.org/Technical- > Resources/opensocial-spec-v09/RPC-Protocol.html#AppData), and try to > implement server-side applications. > > Then I have an question about the appdata.get rpc specification. > What should appdaga.get return in the following case? > > The data condition: > "user1" has appdata: {"myapp_key1" => "value1"} > "user2" has appdata: {"myapp_key1" => "value2"} > > The argument condition: > appdata.get( { > "userId" => ["user1", "user2"], > "groupId" => "@self" > ... > }) > > I think the return value in this case should be an Array, > [{"myapp_key1" => "value1"}, {"myapp_key1" => "value2"}]. > But in the specification, the value type is defined as Map<String, > String>, not Map<String, Array<String>>. > > If anyone has practices about this case, please advice me. > Thanks. > > -- > Yohei Sasakihttp://www.yssk22.info/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Implementing OpenSocial Containers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/opensocial-container?hl=en -~----------~----~----~----~------~----~------~--~---
