Created
February 19, 2019 19:10
-
-
Save nxsyed/73335ae54ce09ef1ed573fec0cab6382 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
data class Spot( | |
val id: Long = counter++, | |
var name: String, | |
val distance: String, | |
val url: String | |
) { | |
companion object { | |
private var counter = 0L | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment