parent
3d00d0a709
commit
00a8696554
@ -1,6 +1,11 @@
|
||||
package fr.uca.iut.urbandictionarylight.model
|
||||
|
||||
data class Definition(val content: String, val example: String) {
|
||||
var upvotes: UInt = 0u
|
||||
fun upvote() { upvotes++ }
|
||||
private var upvotes: UInt = 0u
|
||||
|
||||
fun getUpvotes() = upvotes
|
||||
|
||||
fun upvote() {
|
||||
upvotes++
|
||||
}
|
||||
}
|
Loading…
Reference in new issue