KChadwick96 / rFactor-2-Overlay

Using Angular 7 to interact with an rFactor 2 REST API
MIT License
13 stars 3 forks source link

Refactor data processing code #12

Closed KChadwick96 closed 6 years ago

KChadwick96 commented 6 years ago

Way too much code in one class/service and would be impossible for someone else to maintain.

Better name would be fetch.service.ts that uses a standings class to process data comparing new to old data to do all the current calculations.

Also needs to detect when the session has changed, this should be done from the fetch service and run a function on the standings class to clear old data.