-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature/#1011] 핸드폰 인증 검사 서버통신 모든 케이스 구현
- Loading branch information
Showing
3 changed files
with
36 additions
and
18 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
29 changes: 25 additions & 4 deletions
29
app/src/main/java/org/sopt/official/feature/auth/model/AuthStatus.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,7 +1,28 @@ | ||
package org.sopt.official.feature.auth.model | ||
|
||
enum class AuthStatus(val type: String) { | ||
REGISTER("REGISTER"), | ||
CHANGE("CHANGE"), | ||
SEARCH("SEARCH") | ||
// TODO: mock서버 삭제 시 authName, phone, code는 같이 없어질 예정입니다. | ||
enum class AuthStatus( | ||
val authName: String, | ||
val phone: String, | ||
val type: String, | ||
val code: String | ||
) { | ||
REGISTER( | ||
authName = "Mock-Success-Register", | ||
phone = "01012345678", | ||
type = "REGISTER", | ||
code = "123456" | ||
), | ||
CHANGE( | ||
authName = "Mock-Success-Change", | ||
phone = "01087654321", | ||
type = "CHANGE", | ||
code = "654321" | ||
), | ||
SEARCH( | ||
authName = "Mock-Success-Search", | ||
phone = "01013245768", | ||
type = "SEARCH", | ||
code = "132456" | ||
) | ||
} |