Skip to content

Commit f9e4271

Browse files
committed
Add Lineup UseCase
1 parent ae88328 commit f9e4271

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/commonMain/kotlin/com/yesferal/hornsapp/core/domain/entity/Lineup.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
package com.yesferal.hornsapp.core.domain.entity
22

33
class Lineup(
4-
val day: String?,
4+
val title: String?,
5+
val days: List<DailyLineup>?
6+
)
7+
8+
class DailyLineup(
9+
val dateTimeInMillis: Long?,
510
val stages: List<Stage>?
611
)
712

813
class Stage(
914
val title: String?,
10-
val performances: List<Performance>?
15+
val events: List<Event>?
1116
)
1217

13-
class Performance(
18+
class Event(
1419
val id: String?,
1520
val title: String?,
1621
val subtitle: String?,
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Copyright © 2025 HornsApp. All rights reserved. */
2+
package com.yesferal.hornsapp.core.domain.usecase
3+
4+
import com.yesferal.hornsapp.core.domain.entity.Lineup
5+
import com.yesferal.hornsapp.core.domain.util.HaResult
6+
7+
interface LineupUseCase {
8+
suspend fun getLineup(id: String): HaResult<Lineup>
9+
}

0 commit comments

Comments
 (0)