feat: JsonLdを追加
This commit is contained in:
parent
9b242028e6
commit
e8b48fab9a
|
@ -0,0 +1,8 @@
|
|||
package dev.usbharu.activitystreams
|
||||
|
||||
import java.net.URI
|
||||
|
||||
interface JsonLd {
|
||||
var type: List<String>
|
||||
var id: URI
|
||||
}
|
|
@ -6,7 +6,7 @@ import dev.usbharu.activitystreams.other.MimeMediaType
|
|||
import java.net.URI
|
||||
import java.util.Locale
|
||||
|
||||
interface Link : ObjectOrLink, UriOrLink, CollectionOrLink, ImageOrLink, CollectionPageOrLink {
|
||||
interface Link : ObjectOrLink, UriOrLink, CollectionOrLink, ImageOrLink, CollectionPageOrLink, JsonLd {
|
||||
var href: URI?
|
||||
var rel: Set<String>
|
||||
var mediaType: MimeMediaType?
|
||||
|
|
|
@ -6,7 +6,7 @@ import dev.usbharu.activitystreams.other.MimeMediaType
|
|||
import java.time.Duration
|
||||
import java.time.OffsetDateTime
|
||||
|
||||
interface Object : ObjectOrLink {
|
||||
interface Object : ObjectOrLink,JsonLd {
|
||||
var attachment: ObjectOrLink?
|
||||
var attributedTo: ObjectOrLink?
|
||||
var audience: ObjectOrLink?
|
||||
|
|
Loading…
Reference in New Issue