From f26dd09a535a549c11c7a5e177be29ebad1e6217 Mon Sep 17 00:00:00 2001 From: theophiluskibet Date: Fri, 7 Jun 2024 12:42:53 +0300 Subject: [PATCH] rename files to match format --- .../repos/{HomeRepoImpl.kt => HomeRepositoryImpl.kt} | 10 +++++----- .../{HomeDetails.kt => HomeDetailsDomainModel.kt} | 10 +++++----- ...ingPartners.kt => OrganizingPartnersDomainModel.kt} | 4 ++-- .../models/{Session.kt => SessionDomainModel.kt} | 4 ++-- .../models/{Speaker.kt => SpeakerDomainModel.kt} | 2 +- .../domain/repos/{HomeRepo.kt => HomeRepository.kt} | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) rename shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/{HomeRepoImpl.kt => HomeRepositoryImpl.kt} (82%) rename shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/{HomeDetails.kt => HomeDetailsDomainModel.kt} (80%) rename shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/{OrganizingPartners.kt => OrganizingPartnersDomainModel.kt} (91%) rename shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/{Session.kt => SessionDomainModel.kt} (93%) rename shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/{Speaker.kt => SpeakerDomainModel.kt} (96%) rename shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/{HomeRepo.kt => HomeRepository.kt} (81%) diff --git a/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepoImpl.kt b/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepositoryImpl.kt similarity index 82% rename from shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepoImpl.kt rename to shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepositoryImpl.kt index f8c3800c..b7be017b 100644 --- a/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepoImpl.kt +++ b/shared/data/src/commonMain/kotlin/com/android254/shared/data/repos/HomeRepositoryImpl.kt @@ -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 { +class HomeRepositoryImpl : HomeRepository { + override fun fetchHomeDetails(): Flow { return flowOf( - HomeDetails( + HomeDetailsDomainModel( isCallForSpeakersEnable = true, linkToCallForSpeakers = "https://droidcon.co.ke", isEventBannerEnable = true, diff --git a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetails.kt b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetailsDomainModel.kt similarity index 80% rename from shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetails.kt rename to shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetailsDomainModel.kt index ec69ff26..6939d2fb 100644 --- a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetails.kt +++ b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/HomeDetailsDomainModel.kt @@ -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, + val sessions: List, val sessionsCount: Int, val isSessionsSectionEnable: Boolean, - val speakers: List, + val speakers: List, val speakersCount: Int, val isSpeakersSessionEnable: Boolean, - val sponsors: List, - val organizers: List + val sponsors: List, + val organizers: List ) \ No newline at end of file diff --git a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartners.kt b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartnersDomainModel.kt similarity index 91% rename from shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartners.kt rename to shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartnersDomainModel.kt index 4b494810..994745d3 100644 --- a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartners.kt +++ b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/OrganizingPartnersDomainModel.kt @@ -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, diff --git a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Session.kt b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SessionDomainModel.kt similarity index 93% rename from shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Session.kt rename to shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SessionDomainModel.kt index ae963717..efae1e5b 100644 --- a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Session.kt +++ b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SessionDomainModel.kt @@ -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, @@ -26,7 +26,7 @@ data class Session( val startDateTime: String, val startTime: String, val rooms: String, - val speakers: List, + val speakers: List, val remoteId: String, val description: String, val sessionFormat: String, diff --git a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Speaker.kt b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SpeakerDomainModel.kt similarity index 96% rename from shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Speaker.kt rename to shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SpeakerDomainModel.kt index 19924d21..2c4a30e1 100644 --- a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/Speaker.kt +++ b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/models/SpeakerDomainModel.kt @@ -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 = "", diff --git a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepo.kt b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepository.kt similarity index 81% rename from shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepo.kt rename to shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepository.kt index 0f9ecaf3..3b5aae86 100644 --- a/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepo.kt +++ b/shared/domain/src/commonMain/kotlin/com/android254/shared/domain/repos/HomeRepository.kt @@ -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 +interface HomeRepository { + fun fetchHomeDetails(): Flow } \ No newline at end of file