Hi Henning,

  Orkut uses a zero-based approach but I don't think the spec defines
which method to use.

  FilterType.ALL is defined as the default filter in the spec, so you
can think of it as no filtering of results.  However, requests with
ALL are still subject to FIRST and MAX limitations, even if these are
implicitly added by the container (and not by the developer).

  For example, the defaults on orkut are:

FilterType = ALL
FIRST = 0
MAX = 20

  So even if the developer specifies no parameters, these three values
are still passed in the request.  Hence, there appears to be a "silent
limit".

Hope this helps,
~Arne




On Jun 17, 7:08 am, "Henning Schmiedehausen" <[EMAIL PROTECTED]>
wrote:
> Two quick (and probably pretty dumb) questions:
>
> - General: are the FIRST and MAX fields one-based or zero-based? I.e. if I
> am looking for the first 20 friends, to I pass in first == 1 and max == 20
> or first == 0 and max == 20?
>
> - Implementation: We currently plan to cut the number of results to a
> certain amount (let's say 100 friends). However, when the
> opensocial.DataRequest.FilterType.ALL is given in the filter options, the
> docs state 'return all friends'. Is this 'all friends' as in 'all 10.000
> friends' or do other implementations then apply silent limits?
>
>             Ciao
>                  Henning
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to