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

30 wiersze
499 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 {
2023-03-08 22:07:56 +00:00
fun id(): HexKey
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun pubKey(): HexKey
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun createdAt(): Long
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun kind(): Int
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun tags(): List<List<String>>
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun content(): String
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun sig(): HexKey
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun toJson(): String
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun checkSignature()
2023-03-05 21:42:19 +00:00
2023-03-08 22:07:56 +00:00
fun hasValidSignature(): Boolean
2023-03-08 22:07:56 +00:00
fun isTaggedUser(loggedInUser: String): Boolean
2023-03-15 21:02:49 +00:00
fun isTaggedHash(hashtag: String): Boolean
2023-03-05 21:42:19 +00:00
}