Closed
Bug 2033590
Opened 6 months ago
Closed 6 months ago
[Homepage Sports Widget] - Create Domain models and Redux state
Categories
(Firefox for Android :: Homepage, task)
Tracking
()
RESOLVED
DUPLICATE
of bug 2035104
People
(Reporter: skhan, Unassigned)
References
Details
Starting point: CountryData.kt exists with Country, Region, and countryFlagMap. Need to define the domain layer.
Create:
- SportsMatch data class: homeTeam, awayTeam, homeScore, awayScore, status, venue, round
- SportsTeam data class: name, countryCode, logoUrl
- MatchStatus sealed class: PreTournament(timeUntilKickoff), Scheduled(dateLabel, timeLabel), Live(timeElapsed, location), Final, ExtraTime, Penalties, Eliminated
- SportsWidgetState in AppState: selectedCountryCodes: Set<String>, matches: List<SportsMatch>, tournamentPhase: TournamentPhase (GROUP_STAGE, ROUND_OF_32, ROUND_OF_16, QUARTERS, SEMIS, THIRD_PLACE, FINAL)
- Actions: CountriesSelected, MatchesUpdated, TournamentPhaseUpdated
- Reducer for all the above
You need to log in
before you can comment on or make changes to this bug.
Description
•