amethyst/app/src/main/java/com/vitorpamplona/amethyst/service/model/EventInterface.kt

28 wiersze
429 B
Kotlin
Czysty Zwykły widok Historia

2023-03-05 21:42:19 +00:00
package com.vitorpamplona.amethyst.service.model
import com.vitorpamplona.amethyst.model.HexKey
interface EventInterface {
fun id(): HexKey
fun pubKey(): HexKey
fun createdAt(): Long
fun kind(): Int
fun tags(): List<List<String>>
fun content(): String
fun sig(): HexKey
fun toJson(): String
fun checkSignature()
fun hasValidSignature(): Boolean
fun isTaggedUser(loggedInUser: String): Boolean
2023-03-05 21:42:19 +00:00
}