-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied on fragment start, saved in sharedpref using gson Related: #39
- Loading branch information
1 parent
cc4e3ca
commit 192f92d
Showing
5 changed files
with
156 additions
and
13 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
app/src/main/java/com/alexandr7035/gitstat/view/ReposFilters.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,26 @@ | ||
package com.alexandr7035.gitstat.view | ||
|
||
// Defaults in the constructor | ||
data class ReposFilters( | ||
var sortingType: SortingType = SortingType.BY_REPO_NAME, | ||
var sortingOrder: SortingOrder = SortingOrder.ASCENDING_MODE, | ||
var filterPrivacy: FilterPrivacy = FilterPrivacy.ALL_REPOS | ||
) | ||
|
||
{ | ||
enum class SortingType { | ||
BY_REPO_NAME, | ||
BY_REPO_CREATION_DATE | ||
} | ||
|
||
enum class SortingOrder { | ||
ASCENDING_MODE, | ||
DESCENDING_MODE | ||
} | ||
|
||
enum class FilterPrivacy { | ||
PRIVATE_REPOS_ONLY, | ||
PUBLIC_REPOS_ONLY, | ||
ALL_REPOS | ||
} | ||
} |
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
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