refactor: パッケージ構成を変更

This commit is contained in:
usbharu 2024-09-25 20:28:11 +09:00
parent 8f589278d2
commit 3f29bac4f5
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
107 changed files with 308 additions and 209 deletions

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Accept : Activity

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Add : Activity

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Announce : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Application : Object {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Arrive : IntransitiveActivity {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Article : Object

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Audio : Document {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Block : Ignore {
}

View File

@ -1,7 +0,0 @@
package dev.usbharu.activitystreams
interface CollectionPage : CollectionPageOrLink,Collection {
var partOf: CollectionOrLink?
var next: CollectionPageOrLink?
var prev: CollectionPageOrLink?
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Create : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Delete : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Dislike : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Document : Object {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Event : Object {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Flag : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Follow : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Group : Object{
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Ignore : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Image : Document,ImageOrLink,OrLink{
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Invite : Offer

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Join : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Leave : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Like : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Listen : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Mention : Link {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface MimeMediaType {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Move : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Note : Object {
}

View File

@ -1,4 +1,4 @@
package dev.usbharu.activitystreams
sealed interface ObjectOrLink : OrLink {
interface ObjectOrLink : OrLink {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Offer : Activity {
}

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams
interface OrderedCollectionPage : OrderedCollection,CollectionPage {
var startIndex: UInt?
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Organization : Object {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Page : Document {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Person : Object {}

View File

@ -1,10 +0,0 @@
package dev.usbharu.activitystreams
interface Place : Object {
var accuracy: Accuracy?
var altitude: Float?
var latitude: Float?
var longitude: Float?
var radius: Radius?
var units: UriOrUnits?
}

View File

@ -1,5 +0,0 @@
package dev.usbharu.activitystreams
interface Profile : Object {
var describes: Object?
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Question : IntransitiveActivity

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Read : Activity

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Reject : Activity {
}

View File

@ -1,7 +0,0 @@
package dev.usbharu.activitystreams
interface Relationship : Object {
var subject: ObjectOrLink?
var `object`: ObjectOrLink?
var relationship: Object?
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Remove : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Service : Object {
}

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface TentativeAccept : Accept

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface TentativeReject : Reject

View File

@ -1,3 +0,0 @@
package dev.usbharu.activitystreams
interface Travel : IntransitiveActivity

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Undo : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Update : Activity {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface Video : Document {
}

View File

@ -1,4 +0,0 @@
package dev.usbharu.activitystreams
interface View : Activity {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Accept : Activity

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Add : Activity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Announce : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Arrive : IntransitiveActivity {
}

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.activity
interface Block : Ignore {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Create : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Delete : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Dislike : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Flag : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Follow : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Ignore : Activity {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.activity
interface Invite : Offer

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Join : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Leave : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Like : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Listen : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Move : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Offer : Activity {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Question : IntransitiveActivity

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Read : Activity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Reject : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Remove : Activity {
}

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.activity
interface TentativeAccept : Accept

View File

@ -0,0 +1,3 @@
package dev.usbharu.activitystreams.activity
interface TentativeReject : Reject

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.IntransitiveActivity
interface Travel : IntransitiveActivity

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Undo : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface Update : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.activity
import dev.usbharu.activitystreams.core.Activity
interface View : Activity {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Application : Object {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Group : Object {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Organization : Object {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Person : Object {}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.actor
import dev.usbharu.activitystreams.core.Object
interface Service : Object {
}

View File

@ -1,6 +1,8 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.core
sealed interface InternalActivity : Object{
import dev.usbharu.activitystreams.ObjectOrLink
sealed interface InternalActivity : Object {
var actor: ObjectOrLink?
var target: ObjectOrLink?
var result: ObjectOrLink?

View File

@ -1,4 +1,8 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.CollectionOrLink
import dev.usbharu.activitystreams.CollectionPageOrLink
import dev.usbharu.activitystreams.ObjectOrLink
interface Collection : Object, CollectionOrLink {
var totalItems: UInt?

View File

@ -0,0 +1,10 @@
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.CollectionOrLink
import dev.usbharu.activitystreams.CollectionPageOrLink
interface CollectionPage : CollectionPageOrLink, Collection {
var partOf: CollectionOrLink?
var next: CollectionPageOrLink?
var prev: CollectionPageOrLink?
}

View File

@ -1,9 +1,12 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.*
import dev.usbharu.activitystreams.other.LangString
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 {
var href: URI?
var rel: Set<String>
var mediaType: MimeMediaType?

View File

@ -1,5 +1,8 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.core
import dev.usbharu.activitystreams.*
import dev.usbharu.activitystreams.other.LangString
import dev.usbharu.activitystreams.other.MimeMediaType
import java.time.Duration
import java.time.OffsetDateTime

View File

@ -1,4 +1,4 @@
package dev.usbharu.activitystreams
package dev.usbharu.activitystreams.core
interface OrderedCollection : Collection {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.core
interface OrderedCollectionPage : OrderedCollection, CollectionPage {
var startIndex: UInt?
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.link
import dev.usbharu.activitystreams.core.Link
interface Mention : Link {
}

View File

@ -0,0 +1,5 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.core.Object
interface Article : Object

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.`object`
interface Audio : Document {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.core.Object
interface Document : Object {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.core.Object
interface Event : Object {
}

View File

@ -0,0 +1,7 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.ImageOrLink
import dev.usbharu.activitystreams.OrLink
interface Image : Document, ImageOrLink, OrLink {
}

View File

@ -0,0 +1,6 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.core.Object
interface Note : Object {
}

View File

@ -0,0 +1,4 @@
package dev.usbharu.activitystreams.`object`
interface Page : Document {
}

View File

@ -0,0 +1,15 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.other.Accuracy
import dev.usbharu.activitystreams.other.Radius
import dev.usbharu.activitystreams.UriOrUnits
import dev.usbharu.activitystreams.core.Object
interface Place : Object {
var accuracy: Accuracy?
var altitude: Float?
var latitude: Float?
var longitude: Float?
var radius: Radius?
var units: UriOrUnits?
}

View File

@ -0,0 +1,7 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.core.Object
interface Profile : Object {
var describes: Object?
}

View File

@ -0,0 +1,10 @@
package dev.usbharu.activitystreams.`object`
import dev.usbharu.activitystreams.ObjectOrLink
import dev.usbharu.activitystreams.core.Object
interface Relationship : Object {
var subject: ObjectOrLink?
var `object`: ObjectOrLink?
var relationship: Object?
}

Some files were not shown because too many files have changed in this diff Show More