checkpoint 0 #5

Open
student-e-klyukin wants to merge 15 commits from WindWin-org/NTO-2026-Android-TeamTask-Template:main into main
9 changed files with 29 additions and 0 deletions
Showing only changes of commit c593490cec - Show all commits

View File

@ -57,11 +57,13 @@ object NetworkDataSource {
else if (response.status == HttpStatusCode.Unauthorized) {
error("Неверный логин или пароль")
}
Log.e("getToken", response.status.toString())
response.body<String>()
}
}
suspend fun checkAuth(token: String): Result<Boolean> = withContext(Dispatchers.IO) {
return@withContext runCatching {
Log.e("token", token)
val response = client.get(getUrl(token, Constants.AUTH_URL))
when (response.status) {
HttpStatusCode.OK -> true

View File

@ -1,5 +1,6 @@
package ru.myitschool.work.ui.screen.auth
import android.util.Log
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer

View File

@ -1,5 +1,6 @@
package ru.myitschool.work.ui.screen.auth
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableSharedFlow

View File

@ -0,0 +1,5 @@
package ru.myitschool.work.ui.screen.main
object MeetingResult {
const val REFRESH_STATUS = "refresh_status"
}

View File

@ -0,0 +1,4 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingIntent {
}

View File

@ -0,0 +1,4 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingsAction {
}

View File

@ -0,0 +1,4 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingsScreen {
}

View File

@ -0,0 +1,4 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingsState {
}

View File

@ -0,0 +1,4 @@
package ru.myitschool.work.ui.screen.meetings
class MeetingsViewModel {
}