-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- user can import 500 documents at once and 1000 documents in one month
- Loading branch information
1 parent
af09d98
commit c419c4f
Showing
5 changed files
with
177 additions
and
31 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/rohitthebest/manageyourrenters/data/ImportLimitPerUser.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.rohitthebest.manageyourrenters.data | ||
|
||
data class ImportLimitPerUser( | ||
val uid: String, | ||
val limit: Int, | ||
val modified: Long = System.currentTimeMillis() | ||
) { | ||
constructor() : this("", 0, System.currentTimeMillis()) | ||
} |
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
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
23 changes: 23 additions & 0 deletions
23
app/src/main/java/com/rohitthebest/manageyourrenters/ui/viewModels/ImportViewModel.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.rohitthebest.manageyourrenters.ui.viewModels | ||
|
||
import androidx.lifecycle.LiveData | ||
import androidx.lifecycle.MutableLiveData | ||
import androidx.lifecycle.ViewModel | ||
import dagger.hilt.android.lifecycle.HiltViewModel | ||
import javax.inject.Inject | ||
|
||
@HiltViewModel | ||
class ImportViewModel @Inject constructor() : ViewModel() { | ||
|
||
private val _importLimit = MutableLiveData<Int>().apply { | ||
// default | ||
value = 0 | ||
} | ||
val importLimit: LiveData<Int> = _importLimit | ||
|
||
fun updateImportLimit(value: Int) { | ||
|
||
_importLimit.value = value | ||
} | ||
|
||
} |