Rename model package to models for consistency

This commit is contained in:
Lonami Exo 2022-10-21 20:27:19 +02:00
parent fc7dc68b62
commit c627db973c
9 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
package dev.lonami.talaria.data
import dev.lonami.talaria.bindings.Native
import dev.lonami.talaria.model.Dialog
import dev.lonami.talaria.models.Dialog
interface DialogRepository {
fun loadDialogs(): List<Dialog>;

View File

@ -1,6 +1,6 @@
package dev.lonami.talaria.data
import dev.lonami.talaria.model.Message
import dev.lonami.talaria.models.Message
object MessageRepository {
fun loadMessages(): List<Message> {

View File

@ -1,3 +1,3 @@
package dev.lonami.talaria.model
package dev.lonami.talaria.models
data class Dialog(val title: String, val lastMessage: String, val pinned: Boolean)

View File

@ -1,3 +1,3 @@
package dev.lonami.talaria.model
package dev.lonami.talaria.models
data class Message(val sender: String, val text: String)

View File

@ -19,7 +19,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import dev.lonami.talaria.R
import dev.lonami.talaria.model.Message
import dev.lonami.talaria.models.Message
import dev.lonami.talaria.ui.theme.TalariaTheme
import kotlinx.coroutines.launch

View File

@ -1,5 +1,5 @@
package dev.lonami.talaria.ui
import dev.lonami.talaria.model.Message
import dev.lonami.talaria.models.Message
data class ChatUiState(val messages: MutableList<Message> = mutableListOf())

View File

@ -3,7 +3,7 @@ package dev.lonami.talaria.ui
import androidx.lifecycle.ViewModel
import dev.lonami.talaria.bindings.Native
import dev.lonami.talaria.data.MessageRepository
import dev.lonami.talaria.model.Message
import dev.lonami.talaria.models.Message
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

View File

@ -22,7 +22,7 @@ import androidx.compose.ui.unit.dp
import androidx.lifecycle.viewmodel.compose.viewModel
import dev.lonami.talaria.R
import dev.lonami.talaria.data.MockDialogRepository
import dev.lonami.talaria.model.Dialog
import dev.lonami.talaria.models.Dialog
import dev.lonami.talaria.ui.theme.TalariaTheme
@Composable

View File

@ -1,5 +1,5 @@
package dev.lonami.talaria.ui
import dev.lonami.talaria.model.Dialog
import dev.lonami.talaria.models.Dialog
data class DialogUiState(val dialogs: List<Dialog> = listOf())