Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Use fetchApiSingleton to fetch data #375

Closed
starboi02 opened this issue Oct 26, 2021 · 2 comments · Fixed by #388
Closed

Use fetchApiSingleton to fetch data #375

starboi02 opened this issue Oct 26, 2021 · 2 comments · Fixed by #388
Assignees

Comments

@starboi02
Copy link
Collaborator

Issue Description

  • In MainActivity create a new method named getLeaderBoardData().
  • Use fectchApiSingelton instance to fetch data from the API: https://opencodeiiita.herokuapp.com/get-all-data/?page=page_number, where the value of page_number is the page number (Used in pagination).
  • Use the concept of pagination while fetching the data from the API.
  • Add a new attribute score to the Participant class, create a setter and getter for the same.
  • Fetch the data into ArrayList<Participant>.
  • Set values for all the given attributes except for twiiterId and facebookId.
  • Each Participant object has an ArrayList<Repo> which stores the merged PRs and data corresponding to it.
  • Calculate score by taking summation of points of all the merged PRs.

Note

@raghavgoel25
Copy link
Contributor

claim

1 similar comment
@Tanushree-coder
Copy link
Contributor

claim

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants