MeetingIntent.kt

This commit is contained in:
Egor 2026-02-25 18:37:12 +03:00
parent 76fb104c91
commit b4176ae36a
4 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,12 @@
package ru.myitschool.work.domain.auth
class CheckCodeFormatUseCase {
operator fun invoke(
text: String
): Boolean {
return text.length == 4 && text.all { char ->
char.isLetterOrDigit() &&
((char in 'A'..'Z') || (char >= 'a' && char <= 'z') || char.isDigit())
}
}
}

View File

@ -1,4 +1,10 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingIntent {
sealed interface MeetingIntent {
data object Refresh: MeetingIntent
data object Logout: MeetingIntent
data class Add(
val date: String,
val placeId: String
): MeetingIntent
}

View File

@ -1,8 +1,6 @@
package ru.myitschool.work.ui.screen.meetings
import kotlinx.collections.immutable.PersistentList
import ru.myitschool.work.ui.screen.book.BookState
import ru.myitschool.work.ui.screen.main.MainState
sealed interface MeetingsState {
data object Loading: MeetingsState

8
local.properties Normal file
View File

@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue Feb 24 18:06:36 MSK 2026
sdk.dir=C\:\\Users\\Samsung\\AppData\\Local\\Android\\Sdk