Skip to content

Commit

Permalink
Refactored the code base
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai-Cristian Condrea committed Oct 13, 2024
1 parent c0dcc45 commit e530080
Show file tree
Hide file tree
Showing 6 changed files with 788 additions and 657 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,29 @@ package com.d4rk.cleaner.data.model.ui.screens
import java.io.File

data class UiHomeModel(
val progress: Float = 0f,
val storageUsed: String = "",
val storageTotal: String = "",
val showCleaningComposable: Boolean = false,
val scannedFiles: List<File> = emptyList(),
val emptyFolders: List<File> = emptyList(),
val allFilesSelected: Boolean = false,
val fileSelectionStates: Map<File, Boolean> = emptyMap(),
val selectedFileCount: Int = 0,
val showRescanDialog: Boolean = false,
val noFilesFound: Boolean = false,
val storageUsageProgress : Float = 0f ,
val usedStorageFormatted : String = "" ,
val totalStorageFormatted : String = "" ,
var analyzeState : UiAnalyzeModel = UiAnalyzeModel() ,
val isRescanDialogVisible : Boolean = false ,
)

data class UiAnalyzeModel(
val isAnalyzeScreenVisible : Boolean = false ,
val scannedFileList : List<File> = emptyList() ,
val emptyFolderList : List<File> = emptyList() ,
val areAllFilesSelected : Boolean = false ,
val fileSelectionMap : Map<File , Boolean> = emptyMap() ,
val selectedFilesCount : Int = 0 ,
val isFileScanEmpty : Boolean = false ,
var fileTypesData : FileTypesData = FileTypesData() ,
)

data class FileTypesData(
val apkExtensions : List<String> = emptyList() ,
val imageExtensions : List<String> = emptyList() ,
val videoExtensions : List<String> = emptyList() ,
val audioExtensions : List<String> = emptyList() ,
val archiveExtensions : List<String> = emptyList() ,
val fileTypesTitles : List<String> = emptyList() ,
)
Loading

0 comments on commit e530080

Please sign in to comment.