Middle — Senior
Display of screen color depending on citizen data received
livecode
Task condition
To fulfill the requirements of clean architecture, the following functionality should be added:
- Make an HTTP request to the backend to retrieve user information. The server will return JSON in the following format:
{
"id": "string",
"age": "18",
"gender": ["MALE", "FEMALE"]
}
- Use Jetpack Compose to draw the background of the entire application: if the response contains the value
FEMALE– set the color to red, ifMALE– black. - Apply any suitable design pattern.
- Connect any dependency injection container.
- It is assumed that all necessary libraries (JSON converter, Retrofit, Ktor, etc.) are already included in the project.