We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcf449c + 03cd79d commit 9ba7a8eCopy full SHA for 9ba7a8e
feature/onboarding/src/main/java/com/goalpanzi/mission_mate/feature/onboarding/model/InvitationCode.kt
@@ -3,7 +3,14 @@ package com.goalpanzi.mission_mate.feature.onboarding.model
3
class InvitationCode private constructor(
4
private val symbols: List<InvitationCodeSymbol>
5
) {
6
- fun getCode(): String = symbols.joinToString(EMPTY_VALUE)
+ fun getCode(): String {
7
+ return symbols.joinToString(EMPTY_VALUE) {
8
+ when(it) {
9
+ is InvitationCodeSymbol.Code -> it.symbol.toString()
10
+ InvitationCodeSymbol.Blank -> EMPTY_VALUE
11
+ }
12
13
14
15
fun valueAt(index: Int): String {
16
return when (val target = symbols[index]) {
0 commit comments