-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from PawWithU/feature/inter_home
feat/inter_home: ViewModel 분리 및 잘못된 경로 수정
- Loading branch information
Showing
92 changed files
with
135 additions
and
88 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
.../designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file modified
BIN
+81 Bytes
(100%)
...tem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...signsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file modified
BIN
-80 Bytes
(100%)
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/local-state/build-history.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...usitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogIconTextField$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...itms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogIconTextField$2$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...usitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogIconTextField$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...usitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogIconTextField$4.class
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
.../kusitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextField$1$1.class
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...om/kusitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextField$2.class
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
...om/kusitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextField$3.class
Binary file not shown.
Binary file modified
BIN
+44 Bytes
(100%)
...om/kusitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextField$4.class
Binary file not shown.
Binary file modified
BIN
+60 Bytes
(100%)
...om/kusitms/connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextField$5.class
Binary file not shown.
Binary file modified
BIN
+1 Byte
(100%)
.../connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextFieldWithButton$1.class
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
...nectdog/core/designsystem/component/TextFieldKt$ConnectDogTextFieldWithButton$2$1$1.class
Binary file not shown.
Binary file modified
BIN
-103 Bytes
(94%)
...nectdog/core/designsystem/component/TextFieldKt$ConnectDogTextFieldWithButton$2$2$1.class
Binary file not shown.
Binary file modified
BIN
+60 Bytes
(100%)
.../connectdog/core/designsystem/component/TextFieldKt$ConnectDogTextFieldWithButton$3.class
Binary file not shown.
Binary file modified
BIN
+467 Bytes
(100%)
...tlin-classes/release/com/kusitms/connectdog/core/designsystem/component/TextFieldKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/model/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/model/build/kotlin/compileReleaseKotlin/local-state/build-history.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
...g/feature/intermediator/InterManagementViewModel$createUiStateFlow$$inlined$map$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/InterManagementViewModel$getVolunteer$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$recruitingUiState$1.class
Binary file not shown.
Binary file modified
BIN
-1.08 KB
(95%)
...sWithAsm/dirs/com/kusitms/connectdog/feature/intermediator/InterManagementViewModel.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/LiveLiterals$InterManagementViewModelKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$3.class
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(98%)
...tms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$Content$1$1$1.class
Binary file not shown.
Binary file modified
BIN
+863 Bytes
(130%)
...og/feature/intermediator/screen/IntermediatorHomeScreenKt$IntermediatorHomeScreen$3.class
Binary file not shown.
Binary file removed
BIN
-1.61 KB
...ectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageBoard$1$1$1$1$1.class
Binary file not shown.
Binary file removed
BIN
-2.62 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$1.class
Binary file not shown.
Binary file removed
BIN
-3.4 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$2.class
Binary file not shown.
Binary file removed
BIN
-2.6 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$3.class
Binary file not shown.
Binary file removed
BIN
-7.23 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageCard$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...g/feature/intermediator/InterManagementViewModel$createUiStateFlow$$inlined$map$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/InterManagementViewModel$getVolunteer$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$recruitingUiState$1.class
Binary file not shown.
Binary file modified
BIN
-1.08 KB
(95%)
...ses_dir/debug/com/kusitms/connectdog/feature/intermediator/InterManagementViewModel.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/LiveLiterals$InterManagementViewModelKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$3.class
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(98%)
...tms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$Content$1$1$1.class
Binary file not shown.
Binary file modified
BIN
+863 Bytes
(130%)
...og/feature/intermediator/screen/IntermediatorHomeScreenKt$IntermediatorHomeScreen$3.class
Binary file not shown.
Binary file removed
BIN
-1.61 KB
...ectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageBoard$1$1$1$1$1.class
Binary file not shown.
Binary file removed
BIN
-2.62 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$1.class
Binary file not shown.
Binary file removed
BIN
-3.4 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$2.class
Binary file not shown.
Binary file removed
BIN
-2.6 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$3.class
Binary file not shown.
Binary file removed
BIN
-7.23 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageCard$1$1.class
Binary file not shown.
Binary file modified
BIN
-21.2 KB
(56%)
feature/intermediator/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin
Binary file not shown.
Binary file modified
BIN
-713 Bytes
(89%)
...talData/debug/com/kusitms/connectdog/feature/intermediator/InterManagementViewModel.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.08 KB
(92%)
...debug/com/kusitms/connectdog/feature/intermediator/InterManagementViewModel.kapt_metadata
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...g/feature/intermediator/InterManagementViewModel$createUiStateFlow$$inlined$map$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$createUiStateFlow$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/InterManagementViewModel$getVolunteer$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/feature/intermediator/InterManagementViewModel$recruitingUiState$1.class
Binary file not shown.
Binary file modified
BIN
-1.08 KB
(95%)
...classes/debug/com/kusitms/connectdog/feature/intermediator/InterManagementViewModel.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/feature/intermediator/LiveLiterals$InterManagementViewModelKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...re/intermediator/screen/ComposableSingletons$IntermediatorHomeScreenKt$lambda-2$1$3.class
Binary file not shown.
Binary file modified
BIN
-30 Bytes
(98%)
...tms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$Content$1$1$1.class
Binary file not shown.
Binary file modified
BIN
+863 Bytes
(130%)
...og/feature/intermediator/screen/IntermediatorHomeScreenKt$IntermediatorHomeScreen$3.class
Binary file not shown.
Binary file removed
BIN
-1.61 KB
...ectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageBoard$1$1$1$1$1.class
Binary file not shown.
Binary file removed
BIN
-2.62 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$1.class
Binary file not shown.
Binary file removed
BIN
-3.4 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$2.class
Binary file not shown.
Binary file removed
BIN
-2.6 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$3.class
Binary file not shown.
Binary file removed
BIN
-7.23 KB
...en/IntermediatorHomeScreenKt$ManageBoard$1$1$invoke$$inlined$itemsIndexed$default$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ms/connectdog/feature/intermediator/screen/IntermediatorHomeScreenKt$ManageCard$1$1.class
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
...mediator/src/main/java/com/kusitms/connectdog/feature/intermediator/InterHomeViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.kusitms.connectdog.feature.intermediator | ||
|
||
import android.util.Log | ||
import androidx.lifecycle.ViewModel | ||
import androidx.lifecycle.viewModelScope | ||
import com.kusitms.connectdog.core.data.repository.InterManagementRepository | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import kotlinx.coroutines.flow.MutableStateFlow | ||
import kotlinx.coroutines.flow.StateFlow | ||
import kotlinx.coroutines.launch | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class InterHomeViewModel @Inject constructor( | ||
private val managementRepository: InterManagementRepository | ||
) : ViewModel() { | ||
private val _profileImage = MutableStateFlow<String>("") | ||
val profileImage: StateFlow<String> | ||
get() = _profileImage | ||
|
||
private val _completedCount = MutableStateFlow<Int?>(null) | ||
val completedCount: StateFlow<Int?> | ||
get() = _completedCount | ||
|
||
private val _progressingCount = MutableStateFlow<Int?>(null) | ||
val progressingCount: StateFlow<Int?> | ||
get() = _progressingCount | ||
|
||
private val _waitingCount = MutableStateFlow<Int?>(null) | ||
val waitingCount: StateFlow<Int?> | ||
get() = _waitingCount | ||
|
||
private val _recruitingCount = MutableStateFlow<Int?>(null) | ||
val recruitingCount: StateFlow<Int?> | ||
get() = _recruitingCount | ||
|
||
private val _intro = MutableStateFlow<String>("") | ||
val intro: StateFlow<String> | ||
get() = _intro | ||
|
||
private val _intermediaryName = MutableStateFlow<String>("") | ||
val intermediaryName: StateFlow<String> | ||
get() = _intermediaryName | ||
|
||
fun fetchIntermediatorInfo() { | ||
viewModelScope.launch { | ||
try { | ||
val response = managementRepository.getIntermediatorProfileInfo() | ||
_profileImage.value = response.profileImage | ||
_intermediaryName.value = response.intermediaryName | ||
_completedCount.value = response.completedCount.toInt() | ||
_progressingCount.value = response.progressingCount.toInt() | ||
_waitingCount.value = response.waitingCount.toInt() | ||
_recruitingCount.value = response.recruitingCount.toInt() | ||
_intro.value = response.intro | ||
} catch (e: Exception) { | ||
Log.d("asdf", e.message.toString()) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.