Skip to content

Instantly share code, notes, and snippets.

@abdurahmanadilovic
Last active December 2, 2017 05:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdurahmanadilovic/2305c78e672e89aef6d62aaf1daae314 to your computer and use it in GitHub Desktop.
Save abdurahmanadilovic/2305c78e672e89aef6d62aaf1daae314 to your computer and use it in GitHub Desktop.
Interface for data storage layer in kotlin
interface DataStorageContract {
suspend fun storeValue(key: String, value: String)
suspend fun storeValue(key: String, value: Int)
suspend fun getStringValue(key: String): String
suspend fun getIntValue(key: String): Int
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment