Skip to content

Commit

Permalink
rename files to match format
Browse files Browse the repository at this point in the history
  • Loading branch information
kibettheophilus committed Jun 7, 2024
1 parent 72aa345 commit f26dd09
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/
package com.android254.shared.data.repos

import com.android254.shared.domain.models.HomeDetails
import com.android254.shared.domain.repos.HomeRepo
import com.android254.shared.domain.models.HomeDetailsDomainModel
import com.android254.shared.domain.repos.HomeRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf

class HomeRepoImpl : HomeRepo {
override fun fetchHomeDetails(): Flow<HomeDetails> {
class HomeRepositoryImpl : HomeRepository {
override fun fetchHomeDetails(): Flow<HomeDetailsDomainModel> {
return flowOf(
HomeDetails(
HomeDetailsDomainModel(
isCallForSpeakersEnable = true,
linkToCallForSpeakers = "https://droidcon.co.ke",
isEventBannerEnable = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
*/
package com.android254.shared.domain.models

data class HomeDetails(
data class HomeDetailsDomainModel(
val isCallForSpeakersEnable: Boolean,
val linkToCallForSpeakers: String,
val isEventBannerEnable: Boolean,
val sessions: List<Session>,
val sessions: List<SessionDomainModel>,
val sessionsCount: Int,
val isSessionsSectionEnable: Boolean,
val speakers: List<Speaker>,
val speakers: List<SpeakerDomainModel>,
val speakersCount: Int,
val isSpeakersSessionEnable: Boolean,
val sponsors: List<Sponsors>,
val organizers: List<OrganizingPartners>
val sponsors: List<SponsorsDomainModel>,
val organizers: List<OrganizingPartnersDomainModel>
)
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
*/
package com.android254.shared.domain.models

data class OrganizingPartners(
data class OrganizingPartnersDomainModel(
val organizerName: String,
val organizerLogoUrl: String
)

data class Sponsors(
data class SponsorsDomainModel(
val sponsorName: String,
val sponsorLogoUrl: String,
val link: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.android254.shared.domain.models

data class Session(
data class SessionDomainModel(
val id: String,
val endDateTime: String,
val endTime: String,
Expand All @@ -26,7 +26,7 @@ data class Session(
val startDateTime: String,
val startTime: String,
val rooms: String,
val speakers: List<Speaker>,
val speakers: List<SpeakerDomainModel>,
val remoteId: String,
val description: String,
val sessionFormat: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.android254.shared.domain.models

data class Speaker(
data class SpeakerDomainModel(
val avatar: String = "",
val biography: String = "",
val blog: String = "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package com.android254.shared.domain.repos

import com.android254.shared.domain.models.HomeDetails
import com.android254.shared.domain.models.HomeDetailsDomainModel
import kotlinx.coroutines.flow.Flow

interface HomeRepo {
fun fetchHomeDetails(): Flow<HomeDetails>
interface HomeRepository {
fun fetchHomeDetails(): Flow<HomeDetailsDomainModel>
}

0 comments on commit f26dd09

Please sign in to comment.