-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,140 additions
and
172 deletions.
There are no files selected for viewing
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
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
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/mercandalli/android/browser/search_engine/SearchEngine.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,24 @@ | ||
package com.mercandalli.android.browser.search_engine | ||
|
||
import androidx.annotation.StringDef | ||
|
||
data class SearchEngine( | ||
@SearchEngineKey val searchEngineKey: String, | ||
val name: String | ||
) { | ||
|
||
companion object { | ||
|
||
@StringDef( | ||
SEARCH_ENGINE_GOOGLE, | ||
SEARCH_ENGINE_YOUTUBE, | ||
SEARCH_ENGINE_DUCK_DUCK_GO | ||
) | ||
@Retention(AnnotationRetention.SOURCE) | ||
annotation class SearchEngineKey | ||
|
||
const val SEARCH_ENGINE_GOOGLE = "search-engine-google" | ||
const val SEARCH_ENGINE_YOUTUBE = "search-engine-youtube" | ||
const val SEARCH_ENGINE_DUCK_DUCK_GO = "search-engine-duck-duck-go" | ||
} | ||
} |
Oops, something went wrong.