feat: JsonLdを追加

This commit is contained in:
usbharu 2024-09-25 20:53:02 +09:00
parent 9b242028e6
commit e8b48fab9a
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,8 @@
package dev.usbharu.activitystreams
import java.net.URI
interface JsonLd {
var type: List<String>
var id: URI
}

View File

@ -6,7 +6,7 @@ import dev.usbharu.activitystreams.other.MimeMediaType
import java.net.URI import java.net.URI
import java.util.Locale import java.util.Locale
interface Link : ObjectOrLink, UriOrLink, CollectionOrLink, ImageOrLink, CollectionPageOrLink { interface Link : ObjectOrLink, UriOrLink, CollectionOrLink, ImageOrLink, CollectionPageOrLink, JsonLd {
var href: URI? var href: URI?
var rel: Set<String> var rel: Set<String>
var mediaType: MimeMediaType? var mediaType: MimeMediaType?

View File

@ -6,7 +6,7 @@ import dev.usbharu.activitystreams.other.MimeMediaType
import java.time.Duration import java.time.Duration
import java.time.OffsetDateTime import java.time.OffsetDateTime
interface Object : ObjectOrLink { interface Object : ObjectOrLink,JsonLd {
var attachment: ObjectOrLink? var attachment: ObjectOrLink?
var attributedTo: ObjectOrLink? var attributedTo: ObjectOrLink?
var audience: ObjectOrLink? var audience: ObjectOrLink?