bjedrzejewski / chessmates

Statistics for your Lichess team
1 stars 3 forks source link

Refactor LichessDataService #47

Open janakerman opened 7 years ago

janakerman commented 7 years ago

In its current form the LichessDataService does quite a few things:

I think this is getting to be too much work for one class, but the most distracting thing is that the methods return the list, as well as having the side effect of saving the new items. These methods should be changed to void - OR - move the responsibility of most of the above into the LichessDataScheduler, and have the LichessDataService simply fetch, and return items.