Refactor app to focus on match results instead of tasks
- Introduced MatchRepository and MatchResultsViewModel to handle match data. - Replaced task-related code with match-related functionality in the app. - Added match results view and updated navigation to reflect changes. - Removed task-related models, services, and view models. - Added JSON data for match results and integrated it into the app. - Updated tests to validate match results loading and UI behavior.
This commit is contained in:
1 parent
ffc2051e20
commit
4d377c1336
17 files changed
+500
-658
No files matched your search
@@ -0,0 +1,117 @@
|
||||
{
|
||||
"games": [
|
||||
{ "datetime": "2023-10-01T12:00:00Z",
|
||||
"awayScore": 0,
|
||||
"homeScore": 1,
|
||||
"cards": [
|
||||
{
|
||||
"card_type": 0,
|
||||
"datetime": "2023-10-01T12:25:00Z",
|
||||
"duration": 120,
|
||||
"player": 5,
|
||||
"elapsed": 125,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"card_type": 1,
|
||||
"datetime": "2023-10-01T12:35:00Z",
|
||||
"duration": 120,
|
||||
"player": 8,
|
||||
"elapsed": 235,
|
||||
"team": 0
|
||||
}
|
||||
],
|
||||
"goals": [
|
||||
{
|
||||
"datetime": "2023-10-01T12:15:00Z",
|
||||
"player": 32,
|
||||
"score": 1,
|
||||
"elapsed": 88,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"datetime": "2023-10-01T12:30:00Z",
|
||||
"player": 2,
|
||||
"elapsed": 66,
|
||||
"team": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "datetime": "2023-11-01T12:00:00Z",
|
||||
"awayScore": 0,
|
||||
"homeScore": 1,
|
||||
"cards": [
|
||||
{
|
||||
"card_type": 1,
|
||||
"datetime": "2023-11-01T12:25:00Z",
|
||||
"duration": 120,
|
||||
"player": 5,
|
||||
"elapsed": 125,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"card_type": 0,
|
||||
"datetime": "2023-10-01T12:35:00Z",
|
||||
"duration": 120,
|
||||
"player": 8,
|
||||
"elapsed": 235,
|
||||
"team": 0
|
||||
}
|
||||
],
|
||||
"goals": [
|
||||
{
|
||||
"datetime": "2023-10-01T12:15:00Z",
|
||||
"player": 32,
|
||||
"elapsed": 88,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"datetime": "2023-10-01T12:20:00Z",
|
||||
"player": 32,
|
||||
"elapsed": 32,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"datetime": "2023-10-01T12:30:00Z",
|
||||
"player": 2,
|
||||
"elapsed": 66,
|
||||
"team": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{ "datetime": "2023-11-01T12:00:00Z",
|
||||
"awayScore": 0,
|
||||
"homeScore": 1,
|
||||
"cards": [
|
||||
{
|
||||
"card_type": 1,
|
||||
"datetime": "2023-11-01T12:25:00Z",
|
||||
"duration": 120,
|
||||
"player": 5,
|
||||
"elapsed": 125,
|
||||
"team": 1
|
||||
}
|
||||
],
|
||||
"goals": [
|
||||
{
|
||||
"datetime": "2023-10-01T12:15:00Z",
|
||||
"player": 32,
|
||||
"elapsed": 88,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"datetime": "2023-10-01T12:20:00Z",
|
||||
"player": 32,
|
||||
"elapsed": 32,
|
||||
"team": 1
|
||||
},
|
||||
{
|
||||
"datetime": "2023-10-01T12:30:00Z",
|
||||
"player": 2,
|
||||
"elapsed": 66,
|
||||
"team": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user