mihon icon indicating copy to clipboard operation
mihon copied to clipboard

Migrate tracking APIs to DTOs

Open MajorTanya opened this issue 6 months ago • 2 comments

Changes the handling of tracker API responses to be parsed to DTOs instead of doing so "manually" by use of jsonPrimitives and/or Json.decodeFromString invocations.

This greatly simplifies the API response handling.

Renamed constants to SCREAMING_SNAKE_CASE.

Largely tried to name the DTOs in a uniform pattern, with the tracker's (short) name at the beginning of file and data class names (ALOAuth instead of OAuth, etc).

With these changes, no area of the code base should be using jsonPrimitive and/or Json.decodeFromString anymore.

MajorTanya avatar Aug 10 '24 23:08 MajorTanya