X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FFreenetLinkPart.kt;fp=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ftext%2FFreenetLinkPart.kt;h=3744fd7029219e71dae0bec28f65fba399e134ba;hp=0000000000000000000000000000000000000000;hb=de6d73a2f0718ff65832859a3ef7ba4f32299327;hpb=4273a6ebdde8c4f1092a6c5d4f62ad483f3eaa96 diff --git a/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt b/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt new file mode 100644 index 0000000..3744fd7 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/text/FreenetLinkPart.kt @@ -0,0 +1,12 @@ +package net.pterodactylus.sone.text + +/** + * [LinkPart] implementation that stores an additional attribute: if the + * link is an SSK or USK link and the post was created by an identity that owns + * the keyspace in question. + */ +data class FreenetLinkPart(val link: String, override val text: String, val title: String, val trusted: Boolean) : Part { + + constructor(link: String, text: String, trusted: Boolean) : this(link, text, link, trusted) + +}