Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values of PageNumber and NumberOfPages seems inconsistent. #55

Open
w-p opened this issue Dec 12, 2017 · 0 comments
Open

Values of PageNumber and NumberOfPages seems inconsistent. #55

w-p opened this issue Dec 12, 2017 · 0 comments

Comments

@w-p
Copy link

w-p commented Dec 12, 2017

When retrieving a list of subscribers via List.active(), an empty list has 0 pages and 1 numbered page while a populated list has 1 pages and also 1 numbered page. In both cases the caller receives a 'page', right?

More explicitly:

  • if the list has subscribers, the response has:
    • NumberOfPages > 0
    • PageNumber > 0
  • if not, the response has:
    • NumberOfPages == 0
    • PageNumber > 0

Empty List:

    'NumberOfPages': 0,
    'RecordsOnThisPage': 0,
    'PageNumber': 1,
    ...

Populated List:

    'NumberOfPages': 1,
    'RecordsOnThisPage': 2,
    'PageNumber': 1,
    ...
@w-p w-p changed the title Values of PageNumber and NumberOfPages seem inconsistent. Values of PageNumber and NumberOfPages seems inconsistent. Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant