summaryrefslogtreecommitdiff
path: root/internal/ap/interfaces.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ap/interfaces.go')
-rw-r--r--internal/ap/interfaces.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/internal/ap/interfaces.go b/internal/ap/interfaces.go
index 33b2eb9ca..674791229 100644
--- a/internal/ap/interfaces.go
+++ b/internal/ap/interfaces.go
@@ -30,6 +30,7 @@ type Accountable interface {
WithName
WithImage
WithSummary
+ WithSetSummary
WithDiscoverable
WithURL
WithPublicKey
@@ -50,7 +51,9 @@ type Statusable interface {
WithTypeName
WithSummary
+ WithSetSummary
WithName
+ WithSetName
WithInReplyTo
WithPublished
WithURL
@@ -73,6 +76,7 @@ type Attachmentable interface {
WithMediaType
WithURL
WithName
+ WithSetName
WithBlurhash
}
@@ -193,6 +197,11 @@ type WithName interface {
GetActivityStreamsName() vocab.ActivityStreamsNameProperty
}
+// WithSetName represents an activity with a settable ActivityStreamsNameProperty
+type WithSetName interface {
+ SetActivityStreamsName(vocab.ActivityStreamsNameProperty)
+}
+
// WithImage represents an activity with ActivityStreamsImageProperty
type WithImage interface {
GetActivityStreamsImage() vocab.ActivityStreamsImageProperty
@@ -203,6 +212,11 @@ type WithSummary interface {
GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty
}
+// WithSetSummary represents an activity that can have summary set on it.
+type WithSetSummary interface {
+ SetActivityStreamsSummary(vocab.ActivityStreamsSummaryProperty)
+}
+
// WithDiscoverable represents an activity with TootDiscoverableProperty
type WithDiscoverable interface {
GetTootDiscoverable() vocab.TootDiscoverableProperty