-
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 #53 from Next-Room/NextRoom-Android-40
#40 feat: 결제 관련 코드 주석
- Loading branch information
Showing
8 changed files
with
101 additions
and
85 deletions.
There are no files selected for viewing
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
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
10 changes: 3 additions & 7 deletions
10
presentation/src/main/java/com/nextroom/nextroom/presentation/ui/adminmain/AdminMainState.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 |
---|---|---|
@@ -1,23 +1,19 @@ | ||
package com.nextroom.nextroom.presentation.ui.adminmain | ||
|
||
import com.mangbaam.commonutil.DateTimeUtil | ||
import com.nextroom.nextroom.domain.model.SubscribeStatus | ||
import com.nextroom.nextroom.domain.model.UserSubscribeStatus | ||
import com.nextroom.nextroom.presentation.extension.calculateDday | ||
import com.nextroom.nextroom.presentation.model.ThemeInfoPresentation | ||
|
||
data class AdminMainState( | ||
val loading: Boolean = false, | ||
val userSubscribeStatus: UserSubscribeStatus = UserSubscribeStatus(), | ||
// val userSubscribeStatus: UserSubscribeStatus = UserSubscribeStatus(), | ||
val showName: String = "", | ||
val themes: List<ThemeInfoPresentation> = emptyList(), | ||
) { | ||
private val dateTimeUtil = DateTimeUtil() | ||
/*private val dateTimeUtil = DateTimeUtil() | ||
fun calculateDday(): Int { | ||
return when (userSubscribeStatus.subscribeStatus) { | ||
SubscribeStatus.Free -> dateTimeUtil.stringToDate(userSubscribeStatus.expiryDate, "yyyy.MM.dd")?.calculateDday() ?: -1 | ||
else -> -1 | ||
} | ||
} | ||
}*/ | ||
} |
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
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