diff --git a/go.mod b/go.mod index 2bdc45835..7a6de7b1a 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( codeberg.org/gruf/go-sched v1.2.4 codeberg.org/gruf/go-storage v0.2.0 codeberg.org/gruf/go-structr v0.9.0 - codeberg.org/superseriousbusiness/activity v1.12.0-gts + codeberg.org/superseriousbusiness/activity v1.13.0-gts codeberg.org/superseriousbusiness/exif-terminator v0.10.0 codeberg.org/superseriousbusiness/httpsig v1.3.0-SSB codeberg.org/superseriousbusiness/oauth2/v4 v4.7.0-SSB diff --git a/go.sum b/go.sum index 2c6fd0a7d..268a82dfe 100644 --- a/go.sum +++ b/go.sum @@ -40,8 +40,8 @@ codeberg.org/gruf/go-storage v0.2.0 h1:mKj3Lx6AavEkuXXtxqPhdq+akW9YwrnP16yQBF7K5 codeberg.org/gruf/go-storage v0.2.0/go.mod h1:o3GzMDE5QNUaRnm/daUzFqvuAaC4utlgXDXYO79sWKU= codeberg.org/gruf/go-structr v0.9.0 h1:UYw8igp3I4UBnlsRyDR2AbF3g7NPEP7HBrQs1I15218= codeberg.org/gruf/go-structr v0.9.0/go.mod h1:mUvBvn4q1iM/I+d3Fj1w/gxGUU/Ve9GpiNo6dPmBJnk= -codeberg.org/superseriousbusiness/activity v1.12.0-gts h1:frNGTENLmOIQHKfOw/jj3UVj/GjHBljDx+CFAAK+m6Q= -codeberg.org/superseriousbusiness/activity v1.12.0-gts/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o= +codeberg.org/superseriousbusiness/activity v1.13.0-gts h1:4WZLc/SNt+Vt5x2UjL2n6V5dHlIL9ECudUPx8Ld5rxw= +codeberg.org/superseriousbusiness/activity v1.13.0-gts/go.mod h1:enxU1Lva4OcK6b/NBXscoHSEgEMsKJvdHrQFifQxp4o= codeberg.org/superseriousbusiness/exif-terminator v0.10.0 h1:FiLX/AK07tzceS36I+kOP2aEH+aytjPSIlFoYePMEyg= codeberg.org/superseriousbusiness/exif-terminator v0.10.0/go.mod h1:c/mCytx/+fisOZeVXtjCpXld/SeZb3VsD1vj3oPAihA= codeberg.org/superseriousbusiness/go-jpeg-image-structure/v2 v2.1.0-SSB h1:v2shEkOPgydTL0n44EFPsDT9dsEP7KRG85aPnojCYkI= diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go index 1e379e25d..3bda64dc7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_consts.go @@ -11,6 +11,9 @@ var ActivityStreamsActivityName string = "Activity" // ActivityStreamsAddName is the string literal of the name for the Add type in the ActivityStreams vocabulary. var ActivityStreamsAddName string = "Add" +// FunkwhaleAlbumName is the string literal of the name for the Album type in the Funkwhale vocabulary. +var FunkwhaleAlbumName string = "Album" + // ActivityStreamsAnnounceName is the string literal of the name for the Announce type in the ActivityStreams vocabulary. var ActivityStreamsAnnounceName string = "Announce" @@ -26,6 +29,9 @@ var ActivityStreamsArriveName string = "Arrive" // ActivityStreamsArticleName is the string literal of the name for the Article type in the ActivityStreams vocabulary. var ActivityStreamsArticleName string = "Article" +// FunkwhaleArtistName is the string literal of the name for the Artist type in the Funkwhale vocabulary. +var FunkwhaleArtistName string = "Artist" + // ActivityStreamsAudioName is the string literal of the name for the Audio type in the ActivityStreams vocabulary. var ActivityStreamsAudioName string = "Audio" @@ -104,6 +110,9 @@ var ActivityStreamsJoinName string = "Join" // ActivityStreamsLeaveName is the string literal of the name for the Leave type in the ActivityStreams vocabulary. var ActivityStreamsLeaveName string = "Leave" +// FunkwhaleLibraryName is the string literal of the name for the Library type in the Funkwhale vocabulary. +var FunkwhaleLibraryName string = "Library" + // ActivityStreamsLikeName is the string literal of the name for the Like type in the ActivityStreams vocabulary. var ActivityStreamsLikeName string = "Like" @@ -188,6 +197,9 @@ var ActivityStreamsTentativeRejectName string = "TentativeReject" // ActivityStreamsTombstoneName is the string literal of the name for the Tombstone type in the ActivityStreams vocabulary. var ActivityStreamsTombstoneName string = "Tombstone" +// FunkwhaleTrackName is the string literal of the name for the Track type in the Funkwhale vocabulary. +var FunkwhaleTrackName string = "Track" + // ActivityStreamsTravelName is the string literal of the name for the Travel type in the ActivityStreams vocabulary. var ActivityStreamsTravelName string = "Travel" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go index 4b06a5c58..7441fa2db 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_init.go @@ -135,6 +135,10 @@ import ( typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" @@ -311,6 +315,10 @@ func init() { typeupdate.SetManager(mgr) typevideo.SetManager(mgr) typeview.SetManager(mgr) + typealbum.SetManager(mgr) + typeartist.SetManager(mgr) + typelibrary.SetManager(mgr) + typetrack.SetManager(mgr) propertyalways.SetManager(mgr) propertyapprovalrequired.SetManager(mgr) propertyapprovedby.SetManager(mgr) @@ -395,6 +403,10 @@ func init() { typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty) typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty) typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typealbum.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typeartist.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typelibrary.SetTypePropertyConstructor(NewJSONLDTypeProperty) + typetrack.SetTypePropertyConstructor(NewJSONLDTypeProperty) typeannounceapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty) typecanannounce.SetTypePropertyConstructor(NewJSONLDTypeProperty) typecanlike.SetTypePropertyConstructor(NewJSONLDTypeProperty) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go index e41482c9d..fc30ea78d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go @@ -37,6 +37,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAdd) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAnnounce) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) error: @@ -47,6 +49,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsArticle) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAudio) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) error: @@ -99,6 +103,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLeave) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLike) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) error: @@ -155,6 +161,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsUndo) error: @@ -244,6 +252,13 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) if len(ActivityStreamsAlias) > 0 { ActivityStreamsAlias += ":" } + FunkwhaleAlias, ok := aliasMap["https://funkwhale.audio/ns"] + if !ok { + FunkwhaleAlias = aliasMap["http://funkwhale.audio/ns"] + } + if len(FunkwhaleAlias) > 0 { + FunkwhaleAlias += ":" + } GoToSocialAlias, ok := aliasMap["https://gotosocial.org/ns"] if !ok { GoToSocialAlias = aliasMap["http://gotosocial.org/ns"] @@ -306,6 +321,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Album" { + v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Announce" { v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap) if err != nil { @@ -361,6 +387,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Artist" { + v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Audio" { v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap) if err != nil { @@ -647,6 +684,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Library" { + v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Like" { v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap) if err != nil { @@ -955,6 +1003,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{}) } } return ErrNoCallbackMatch + } else if typeString == FunkwhaleAlias+"Track" { + v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap) + if err != nil { + return err + } + for _, i := range this.callbacks { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { + return fn(ctx, v) + } + } + return ErrNoCallbackMatch } else if typeString == ActivityStreamsAlias+"Travel" { v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap) if err != nil { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go index 5de6a4f58..6c5377097 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_manager.go @@ -135,6 +135,10 @@ import ( typeupdate "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update" typevideo "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video" typeview "codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view" + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" propertyalways "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always" propertyapprovalrequired "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired" propertyapprovedby "codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby" @@ -240,6 +244,18 @@ func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{}, } } +// DeserializeAlbumFunkwhale returns the deserialization method for the +// "FunkwhaleAlbum" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleAlbum, error) { + i, err := typealbum.DeserializeAlbum(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeAlsoKnownAsPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsAlsoKnownAsProperty" non-functional property // in the vocabulary "ActivityStreams" @@ -383,6 +399,18 @@ func (this Manager) DeserializeArticleActivityStreams() func(map[string]interfac } } +// DeserializeArtistFunkwhale returns the deserialization method for the +// "FunkwhaleArtist" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleArtist, error) { + i, err := typeartist.DeserializeArtist(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeAttachmentPropertyActivityStreams returns the deserialization method // for the "ActivityStreamsAttachmentProperty" non-functional property in the // vocabulary "ActivityStreams" @@ -1219,6 +1247,18 @@ func (this Manager) DeserializeLeaveActivityStreams() func(map[string]interface{ } } +// DeserializeLibraryFunkwhale returns the deserialization method for the +// "FunkwhaleLibrary" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleLibrary, error) { + i, err := typelibrary.DeserializeLibrary(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeLikeActivityStreams returns the deserialization method for the // "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -2129,6 +2169,18 @@ func (this Manager) DeserializeTotalItemsPropertyActivityStreams() func(map[stri } } +// DeserializeTrackFunkwhale returns the deserialization method for the +// "FunkwhaleTrack" non-functional property in the vocabulary "Funkwhale" +func (this Manager) DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FunkwhaleTrack, error) { + i, err := typetrack.DeserializeTrack(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeTravelActivityStreams returns the deserialization method for the // "ActivityStreamsTravel" non-functional property in the vocabulary // "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go new file mode 100644 index 000000000..74336617f --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_disjoint.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +) + +// FunkwhaleAlbumIsDisjointWith returns true if Album is disjoint with the other's +// type. +func FunkwhaleAlbumIsDisjointWith(other vocab.Type) bool { + return typealbum.AlbumIsDisjointWith(other) +} + +// FunkwhaleArtistIsDisjointWith returns true if Artist is disjoint with the +// other's type. +func FunkwhaleArtistIsDisjointWith(other vocab.Type) bool { + return typeartist.ArtistIsDisjointWith(other) +} + +// FunkwhaleLibraryIsDisjointWith returns true if Library is disjoint with the +// other's type. +func FunkwhaleLibraryIsDisjointWith(other vocab.Type) bool { + return typelibrary.LibraryIsDisjointWith(other) +} + +// FunkwhaleTrackIsDisjointWith returns true if Track is disjoint with the other's +// type. +func FunkwhaleTrackIsDisjointWith(other vocab.Type) bool { + return typetrack.TrackIsDisjointWith(other) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go new file mode 100644 index 000000000..1559df467 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extendedby.go @@ -0,0 +1,39 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +) + +// FunkwhaleAlbumIsExtendedBy returns true if the other's type extends from Album. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func FunkwhaleAlbumIsExtendedBy(other vocab.Type) bool { + return typealbum.AlbumIsExtendedBy(other) +} + +// FunkwhaleArtistIsExtendedBy returns true if the other's type extends from +// Artist. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func FunkwhaleArtistIsExtendedBy(other vocab.Type) bool { + return typeartist.ArtistIsExtendedBy(other) +} + +// FunkwhaleLibraryIsExtendedBy returns true if the other's type extends from +// Library. Note that it returns false if the types are the same; see the +// "IsOrExtends" variant instead. +func FunkwhaleLibraryIsExtendedBy(other vocab.Type) bool { + return typelibrary.LibraryIsExtendedBy(other) +} + +// FunkwhaleTrackIsExtendedBy returns true if the other's type extends from Track. +// Note that it returns false if the types are the same; see the "IsOrExtends" +// variant instead. +func FunkwhaleTrackIsExtendedBy(other vocab.Type) bool { + return typetrack.TrackIsExtendedBy(other) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go new file mode 100644 index 000000000..7a34e4b7f --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_extends.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +) + +// FunkwhaleFunkwhaleAlbumExtends returns true if Album extends from the other's +// type. +func FunkwhaleFunkwhaleAlbumExtends(other vocab.Type) bool { + return typealbum.FunkwhaleAlbumExtends(other) +} + +// FunkwhaleFunkwhaleArtistExtends returns true if Artist extends from the other's +// type. +func FunkwhaleFunkwhaleArtistExtends(other vocab.Type) bool { + return typeartist.FunkwhaleArtistExtends(other) +} + +// FunkwhaleFunkwhaleLibraryExtends returns true if Library extends from the +// other's type. +func FunkwhaleFunkwhaleLibraryExtends(other vocab.Type) bool { + return typelibrary.FunkwhaleLibraryExtends(other) +} + +// FunkwhaleFunkwhaleTrackExtends returns true if Track extends from the other's +// type. +func FunkwhaleFunkwhaleTrackExtends(other vocab.Type) bool { + return typetrack.FunkwhaleTrackExtends(other) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go new file mode 100644 index 000000000..d8153b83a --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_isorextends.go @@ -0,0 +1,35 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +) + +// IsOrExtendsFunkwhaleAlbum returns true if the other provided type is the Album +// type or extends from the Album type. +func IsOrExtendsFunkwhaleAlbum(other vocab.Type) bool { + return typealbum.IsOrExtendsAlbum(other) +} + +// IsOrExtendsFunkwhaleArtist returns true if the other provided type is the +// Artist type or extends from the Artist type. +func IsOrExtendsFunkwhaleArtist(other vocab.Type) bool { + return typeartist.IsOrExtendsArtist(other) +} + +// IsOrExtendsFunkwhaleLibrary returns true if the other provided type is the +// Library type or extends from the Library type. +func IsOrExtendsFunkwhaleLibrary(other vocab.Type) bool { + return typelibrary.IsOrExtendsLibrary(other) +} + +// IsOrExtendsFunkwhaleTrack returns true if the other provided type is the Track +// type or extends from the Track type. +func IsOrExtendsFunkwhaleTrack(other vocab.Type) bool { + return typetrack.IsOrExtendsTrack(other) +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go new file mode 100644 index 000000000..ec7d76fe1 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_pkg_funkwhale_type_constructors.go @@ -0,0 +1,31 @@ +// Code generated by astool. DO NOT EDIT. + +package streams + +import ( + typealbum "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album" + typeartist "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist" + typelibrary "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library" + typetrack "codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track" + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" +) + +// NewFunkwhaleAlbum creates a new FunkwhaleAlbum +func NewFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return typealbum.NewFunkwhaleAlbum() +} + +// NewFunkwhaleArtist creates a new FunkwhaleArtist +func NewFunkwhaleArtist() vocab.FunkwhaleArtist { + return typeartist.NewFunkwhaleArtist() +} + +// NewFunkwhaleLibrary creates a new FunkwhaleLibrary +func NewFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return typelibrary.NewFunkwhaleLibrary() +} + +// NewFunkwhaleTrack creates a new FunkwhaleTrack +func NewFunkwhaleTrack() vocab.FunkwhaleTrack { + return typetrack.NewFunkwhaleTrack() +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go index a08c8f68c..6e90035e7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_resolver_utils.go @@ -55,6 +55,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsAdd) error { t = i return nil + }, func(ctx context.Context, i vocab.FunkwhaleAlbum) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsAnnounce) error { t = i return nil @@ -70,6 +73,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsArticle) error { t = i return nil + }, func(ctx context.Context, i vocab.FunkwhaleArtist) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsAudio) error { t = i return nil @@ -148,6 +154,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsLeave) error { t = i return nil + }, func(ctx context.Context, i vocab.FunkwhaleLibrary) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsLike) error { t = i return nil @@ -232,6 +241,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro }, func(ctx context.Context, i vocab.ActivityStreamsTombstone) error { t = i return nil + }, func(ctx context.Context, i vocab.FunkwhaleTrack) error { + t = i + return nil }, func(ctx context.Context, i vocab.ActivityStreamsTravel) error { t = i return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go index 864baf55e..ab64ef497 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_predicated_resolver.go @@ -35,6 +35,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsAdd) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) (bool, error): @@ -45,6 +47,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsArticle) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsAudio) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) (bool, error): @@ -97,6 +101,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsLeave) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsLike) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) (bool, error): @@ -153,6 +159,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) (bool, error): // Do nothing, this predicate has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) (bool, error): + // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) (bool, error): // Do nothing, this predicate has a correct signature. case func(context.Context, vocab.ActivityStreamsUndo) (bool, error): @@ -215,6 +223,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleAlbum) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleAlbum); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { @@ -270,6 +289,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleArtist) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleArtist); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsAudio); ok { @@ -556,6 +586,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleLibrary) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleLibrary); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsLike); ok { @@ -864,6 +905,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI } else { return false, ErrPredicateUnmatched } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { + if fn, ok := this.predicate.(func(context.Context, vocab.FunkwhaleTrack) (bool, error)); ok { + if v, ok := o.(vocab.FunkwhaleTrack); ok { + predicatePasses, err = fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return false, errCannotTypeAssertType + } + } else { + return false, ErrPredicateUnmatched + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok { if v, ok := o.(vocab.ActivityStreamsTravel); ok { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go index 78e5bbbe8..c7592e951 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_type_resolver.go @@ -34,6 +34,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAdd) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleAlbum) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAnnounce) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialAnnounceApproval) error: @@ -44,6 +46,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsArticle) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleArtist) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsAudio) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsBlock) error: @@ -96,6 +100,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLeave) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleLibrary) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsLike) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.GoToSocialLikeApproval) error: @@ -152,6 +158,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) { // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTombstone) error: // Do nothing, this callback has a correct signature. + case func(context.Context, vocab.FunkwhaleTrack) error: + // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsTravel) error: // Do nothing, this callback has a correct signature. case func(context.Context, vocab.ActivityStreamsUndo) error: @@ -204,6 +212,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Album" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleAlbum) error); ok { + if v, ok := o.(vocab.FunkwhaleAlbum); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Announce" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok { if v, ok := o.(vocab.ActivityStreamsAnnounce); ok { @@ -249,6 +266,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Artist" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleArtist) error); ok { + if v, ok := o.(vocab.FunkwhaleArtist); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Audio" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok { if v, ok := o.(vocab.ActivityStreamsAudio); ok { @@ -483,6 +509,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Library" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleLibrary) error); ok { + if v, ok := o.(vocab.FunkwhaleLibrary); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Like" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok { if v, ok := o.(vocab.ActivityStreamsLike); ok { @@ -735,6 +770,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface return errCannotTypeAssertType } } + } else if o.VocabularyURI() == "https://funkwhale.audio/ns" && o.GetTypeName() == "Track" { + if fn, ok := i.(func(context.Context, vocab.FunkwhaleTrack) error); ok { + if v, ok := o.(vocab.FunkwhaleTrack); ok { + return fn(ctx, v) + } else { + // This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code. + return errCannotTypeAssertType + } + } } else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Travel" { if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok { if v, ok := o.(vocab.ActivityStreamsTravel); ok { diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go index 2c72bb09d..cc07f6107 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go index e86c75b2c..a9d81afdd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -19,11 +19,13 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsActorPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsActorProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "actor". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsActorProperty) InsertActivityStreamsView(idx int, v v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "actor". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "actor". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsActorProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "actor". Invalidates all iterators. func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6808,6 +7172,58 @@ func (this *ActivityStreamsActorProperty) SetActivityStreamsView(idx int, v voca } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "actor". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsActorProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "actor". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go index ee3b70c38..362cb0825 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go index 827bb9ecc..080f9e57c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -19,11 +19,13 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "anyOf". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "anyOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "anyOf". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "anyOf". Invalidates all iterators. func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6808,6 +7172,58 @@ func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "anyOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAnyOfProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "anyOf". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go index ae3d9ec75..c055e7544 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go index 94c63ffcb..711f53ab7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -19,11 +19,13 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsView(v vocab }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "attachment". Invalidates iterators that are // traversing using Prev. @@ -4717,6 +4941,74 @@ func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsView(idx int } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "attachment". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "attachment". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4935,226 +5227,242 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5955,6 +6263,62 @@ func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsView(v voca } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "attachment". Invalidates all iterators. func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6821,6 +7185,58 @@ func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsView(idx int, v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "attachment". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttachmentProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "attachment". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go index 94675b182..2918f2260 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go index 7172e4d62..acb72e3a7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -19,11 +19,13 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3696,6 +3876,54 @@ func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsView(v voc }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "attributedTo". Invalidates iterators that are // traversing using Prev. @@ -4754,6 +4982,74 @@ func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsView(idx i } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "attributedTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "attributedTo". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4972,226 +5268,242 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5993,6 +6305,62 @@ func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsView(v vo } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "attributedTo". Invalidates all iterators. func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6859,6 +7227,58 @@ func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsView(idx int, } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "attributedTo". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsAttributedToProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "attributedTo". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go index 7de8b630b..5b983aadf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go index 7b2d59cd9..70d441900 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -19,11 +19,13 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "audience". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsView(idx int, } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "audience". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "audience". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsView(v vocab. } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "audience". Invalidates all iterators. func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsAudienceProperty) SetActivityStreamsView(idx int, v v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "audience". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsAudienceProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "audience". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go index 162946d16..1c491fec9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go index 918c9e3a6..9d8c0fd8a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -19,11 +19,13 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -137,6 +141,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsAnnounceMember: v, @@ -167,6 +177,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsAudioMember: v, @@ -293,6 +309,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsLikeMember: v, @@ -443,6 +465,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsTravelMember: v, @@ -860,6 +888,30 @@ func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -931,6 +983,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -946,6 +1001,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1009,6 +1067,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1084,6 +1145,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1110,11 +1174,13 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1136,6 +1202,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1161,6 +1228,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1552,6 +1620,34 @@ func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsBccPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1622,6 +1718,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1632,6 +1730,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1674,6 +1774,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1724,6 +1826,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1765,174 +1869,186 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1960,6 +2076,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1970,6 +2088,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2012,6 +2132,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2062,6 +2184,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2483,6 +2607,34 @@ func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2561,6 +2713,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2581,6 +2737,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2665,6 +2825,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2765,6 +2929,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2797,11 +2965,13 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2823,6 +2993,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2848,6 +3019,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2872,6 +3044,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2882,6 +3056,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2924,6 +3100,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2974,6 +3152,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3649,6 +3829,50 @@ func (this *ActivityStreamsBccProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "bcc". Invalidates iterators that are traversing // using Prev. @@ -4701,6 +4925,74 @@ func (this *ActivityStreamsBccProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "bcc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "bcc". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4919,226 +5211,242 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5939,6 +6247,62 @@ func (this *ActivityStreamsBccProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "bcc". Invalidates all iterators. func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6804,6 +7168,58 @@ func (this *ActivityStreamsBccProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "bcc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBccProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "bcc". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go index b056ece94..19cb8ba79 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go index d6c9a2e88..c8e0e7733 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -19,11 +19,13 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -137,6 +141,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsAnnounceMember: v, @@ -167,6 +177,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsAudioMember: v, @@ -293,6 +309,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsLikeMember: v, @@ -443,6 +465,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsTravelMember: v, @@ -860,6 +888,30 @@ func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -931,6 +983,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -946,6 +1001,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1009,6 +1067,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1084,6 +1145,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1110,11 +1174,13 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1136,6 +1202,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1161,6 +1228,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1552,6 +1620,34 @@ func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsBtoPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1622,6 +1718,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1632,6 +1730,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1674,6 +1774,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1724,6 +1826,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1765,174 +1869,186 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1960,6 +2076,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1970,6 +2088,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2012,6 +2132,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2062,6 +2184,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2483,6 +2607,34 @@ func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2561,6 +2713,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2581,6 +2737,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2665,6 +2825,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2765,6 +2929,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2797,11 +2965,13 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2823,6 +2993,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2848,6 +3019,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2872,6 +3044,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2882,6 +3056,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2924,6 +3100,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2974,6 +3152,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3649,6 +3829,50 @@ func (this *ActivityStreamsBtoProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "bto". Invalidates iterators that are traversing // using Prev. @@ -4701,6 +4925,74 @@ func (this *ActivityStreamsBtoProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "bto". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "bto". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4919,226 +5211,242 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5939,6 +6247,62 @@ func (this *ActivityStreamsBtoProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "bto". Invalidates all iterators. func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6804,6 +7168,58 @@ func (this *ActivityStreamsBtoProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "bto". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsBtoProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "bto". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go index 54db60540..a7f80de8a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go index 1936bf216..65f85417e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -19,11 +19,13 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -137,6 +141,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsAnnounceMember: v, @@ -167,6 +177,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsAudioMember: v, @@ -293,6 +309,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsLikeMember: v, @@ -443,6 +465,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsTravelMember: v, @@ -860,6 +888,30 @@ func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -931,6 +983,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -946,6 +1001,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1009,6 +1067,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1084,6 +1145,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1110,11 +1174,13 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1136,6 +1202,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1161,6 +1228,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1552,6 +1620,34 @@ func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsCcPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1622,6 +1718,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1632,6 +1730,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1674,6 +1774,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1724,6 +1826,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1765,174 +1869,186 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1960,6 +2076,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1970,6 +2088,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2012,6 +2132,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2062,6 +2184,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2483,6 +2607,34 @@ func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2561,6 +2713,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2581,6 +2737,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2665,6 +2825,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2765,6 +2929,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2797,11 +2965,13 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2823,6 +2993,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2848,6 +3019,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2872,6 +3044,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2882,6 +3056,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2924,6 +3100,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2974,6 +3152,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3649,6 +3829,50 @@ func (this *ActivityStreamsCcProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "cc". Invalidates iterators that are traversing // using Prev. @@ -4701,6 +4925,74 @@ func (this *ActivityStreamsCcProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "cc". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "cc". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4919,226 +5211,242 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5939,6 +6247,62 @@ func (this *ActivityStreamsCcProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "cc". Invalidates all iterators. func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6804,6 +7168,58 @@ func (this *ActivityStreamsCcProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "cc". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsCcProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "cc". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go index 1aa09c01a..ea795aad4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go index 5e95608cc..65e4d87d2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -26,11 +26,13 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -52,6 +54,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -77,6 +80,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -145,6 +149,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsAnnounceMember: v, @@ -175,6 +185,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsAudioMember: v, @@ -301,6 +317,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsLikeMember: v, @@ -451,6 +473,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsTravelMember: v, @@ -883,6 +911,30 @@ func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -954,6 +1006,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -969,6 +1024,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1032,6 +1090,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1107,6 +1168,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1148,11 +1212,13 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1174,6 +1240,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1199,6 +1266,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1590,6 +1658,34 @@ func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsClosedPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1674,6 +1770,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1684,6 +1782,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1726,6 +1826,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1776,6 +1878,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1823,174 +1927,186 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 6 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 7 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 8 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 9 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 10 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 11 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 12 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 13 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 14 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 15 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 16 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 17 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 18 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 19 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 20 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 21 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 38 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 39 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 40 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 41 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 42 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 43 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 44 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 45 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 46 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 47 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 48 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 49 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 50 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 51 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 52 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 53 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 54 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 55 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 56 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 57 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 58 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 59 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 60 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 61 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 62 } + if this.IsActivityStreamsUndo() { + return 63 + } + if this.IsActivityStreamsUpdate() { + return 64 + } + if this.IsActivityStreamsVideo() { + return 65 + } + if this.IsActivityStreamsView() { + return 66 + } if this.IsIRI() { return -2 } @@ -2022,6 +2138,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -2032,6 +2150,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2074,6 +2194,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2124,6 +2246,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2545,6 +2669,34 @@ func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2623,6 +2775,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2643,6 +2799,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2727,6 +2887,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2827,6 +2991,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2877,11 +3045,13 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2903,6 +3073,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2928,6 +3099,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2956,6 +3128,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2966,6 +3140,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -3008,6 +3184,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -3058,6 +3236,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3734,6 +3914,50 @@ func (this *ActivityStreamsClosedProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "closed". Invalidates iterators that are // traversing using Prev. @@ -4812,6 +5036,74 @@ func (this *ActivityStreamsClosedProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "closed". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "closed". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -5074,226 +5366,242 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 7 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 61 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6094,6 +6402,62 @@ func (this *ActivityStreamsClosedProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "closed". Invalidates all iterators. func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6990,6 +7354,58 @@ func (this *ActivityStreamsClosedProperty) SetActivityStreamsView(idx int, v voc } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "closed". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsClosedProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "closed". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go index d8db5855d..28f3ce9d6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go index deab1d7c3..cdbd05549 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -19,11 +19,13 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsContextPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsContextProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "context". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsContextProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "context". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "context". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsContextProperty) PrependActivityStreamsView(v vocab.A } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "context". Invalidates all iterators. func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsContextProperty) SetActivityStreamsView(idx int, v vo } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "context". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsContextProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "context". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go index 13f382b4b..ea9e6cc22 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -120,6 +128,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -221,6 +233,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go index 87bbaf477..c0be22be1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -18,11 +18,13 @@ type ActivityStreamsDescribesProperty struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -43,6 +45,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -67,6 +70,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -129,6 +133,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsAnnounceMember: v, @@ -159,6 +169,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsAudioMember: v, @@ -279,6 +295,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsLikeMember: v, @@ -423,6 +445,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsTravelMember: v, @@ -476,11 +504,13 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -501,6 +531,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -525,6 +556,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -898,6 +930,30 @@ func (this ActivityStreamsDescribesProperty) GetActivityStreamsView() vocab.Acti return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -960,6 +1016,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -975,6 +1034,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1035,6 +1097,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1107,6 +1172,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1132,11 +1200,13 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1157,6 +1227,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1181,6 +1252,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1558,6 +1630,34 @@ func (this ActivityStreamsDescribesProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsDescribesProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1619,6 +1719,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1629,6 +1731,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1669,6 +1773,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1717,6 +1823,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1755,168 +1863,180 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int { if this.IsActivityStreamsAdd() { return 3 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 4 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeApproval() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 57 } + if this.IsActivityStreamsUndo() { + return 58 + } + if this.IsActivityStreamsUpdate() { + return 59 + } + if this.IsActivityStreamsVideo() { + return 60 + } + if this.IsActivityStreamsView() { + return 61 + } if this.IsIRI() { return -2 } @@ -1942,6 +2062,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1952,6 +2074,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -1992,6 +2116,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2040,6 +2166,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2078,6 +2206,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2088,6 +2218,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2128,6 +2260,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2176,6 +2310,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -2556,6 +2692,34 @@ func (this *ActivityStreamsDescribesProperty) SetActivityStreamsView(v vocab.Act this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2623,6 +2787,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2643,6 +2811,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2723,6 +2895,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2819,6 +2995,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go index 76c14f1b2..2c3c0589d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -120,6 +128,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -221,6 +233,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go index 2d3c48dd3..640028ff1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -21,11 +21,13 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -46,6 +48,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -132,6 +136,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsAnnounceMember: v, @@ -162,6 +172,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsAudioMember: v, @@ -282,6 +298,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsLikeMember: v, @@ -426,6 +448,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsTravelMember: v, @@ -837,6 +865,30 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -899,6 +951,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -914,6 +969,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -974,6 +1032,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1046,6 +1107,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1078,11 +1142,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1103,6 +1169,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1127,6 +1194,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1504,6 +1572,34 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1572,6 +1668,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1582,6 +1680,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1622,6 +1722,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1670,6 +1772,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1711,168 +1815,180 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 30 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 31 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeApproval() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 48 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 49 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 50 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 51 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 52 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 53 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 54 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 55 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 56 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 57 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 58 } + if this.IsActivityStreamsUndo() { + return 59 + } + if this.IsActivityStreamsUpdate() { + return 60 + } + if this.IsActivityStreamsVideo() { + return 61 + } + if this.IsActivityStreamsView() { + return 62 + } if this.IsIRI() { return -2 } @@ -1900,6 +2016,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1910,6 +2028,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -1950,6 +2070,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -1998,6 +2120,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2405,6 +2529,34 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2472,6 +2624,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2492,6 +2648,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2572,6 +2732,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2668,6 +2832,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2708,11 +2876,13 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2733,6 +2903,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2757,6 +2928,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2781,6 +2953,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2791,6 +2965,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2831,6 +3007,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2879,6 +3057,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3541,6 +3721,50 @@ func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsView(v vocab }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "formerType". Invalidates iterators that are // traversing using Prev. @@ -4565,6 +4789,74 @@ func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsView(idx int } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "formerType". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "formerType". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4784,218 +5076,234 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 34 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5768,6 +6076,62 @@ func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsView(v voca } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "formerType". Invalidates all iterators. func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6609,6 +6973,58 @@ func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsView(idx int, v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "formerType". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "formerType". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go index 9346158a8..f95bf1def 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go index 027b74a51..853cfe0ed 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -19,11 +19,13 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsView(v vocab. }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "generator". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsView(idx int, } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "generator". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "generator". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsView(v vocab } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "generator". Invalidates all iterators. func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsView(idx int, v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "generator". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsGeneratorProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "generator". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go index 49104c160..02fbf08be 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go index 5b36baf3a..d7ad7dae1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -19,11 +19,13 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsView(v vocab. }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "inReplyTo". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsView(idx int, } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "inReplyTo". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "inReplyTo". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsView(v vocab } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "inReplyTo". Invalidates all iterators. func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsView(idx int, v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "inReplyTo". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsInReplyToProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "inReplyTo". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go index 0c41210c2..b3d433ce9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go index 33866275c..09ae36386 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -19,11 +19,13 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsView(v vocab }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "instrument". Invalidates iterators that are // traversing using Prev. @@ -4717,6 +4941,74 @@ func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsView(idx int } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "instrument". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "instrument". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4935,226 +5227,242 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5955,6 +6263,62 @@ func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsView(v voca } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "instrument". Invalidates all iterators. func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6821,6 +7185,58 @@ func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsView(idx int, v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "instrument". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsInstrumentProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "instrument". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go index 3bf1a6e3c..3289ac3f3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go index 30e67ccb6..f2cdb668f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -19,11 +19,13 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsItemsPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsItemsProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "items". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsItemsProperty) InsertActivityStreamsView(idx int, v v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "items". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "items". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsItemsProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "items". Invalidates all iterators. func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6808,6 +7172,58 @@ func (this *ActivityStreamsItemsProperty) SetActivityStreamsView(idx int, v voca } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "items". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsItemsProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "items". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go index 5cde2e613..feba0ecc9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go index 5c48210e3..19e93d6cf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -19,11 +19,13 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsLocationPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsLocationProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "location". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsLocationProperty) InsertActivityStreamsView(idx int, } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "location". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "location". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsLocationProperty) PrependActivityStreamsView(v vocab. } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "location". Invalidates all iterators. func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsLocationProperty) SetActivityStreamsView(idx int, v v } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "location". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsLocationProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "location". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go index cbb76fb81..8487a5a75 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go index e536f5ba5..2a9ad14dd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -19,11 +19,13 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsObjectPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsObjectProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "object". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsObjectProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "object". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "object". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsObjectProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "object". Invalidates all iterators. func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6809,6 +7173,58 @@ func (this *ActivityStreamsObjectProperty) SetActivityStreamsView(idx int, v voc } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "object". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsObjectProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "object". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go index d38a0617b..e6ac8fb90 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go index cc117cc09..42b8aff52 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -19,11 +19,13 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "oneOf". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "oneOf". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "oneOf". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "oneOf". Invalidates all iterators. func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6808,6 +7172,58 @@ func (this *ActivityStreamsOneOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "oneOf". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOneOfProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "oneOf". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go index 654018f65..c32a38460 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go index f5af6c6a9..d3e6cdef4 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -19,11 +19,13 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3696,6 +3876,54 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsView(v voc }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "orderedItems". Invalidates iterators that are // traversing using Prev. @@ -4754,6 +4982,74 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsView(idx i } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "orderedItems". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "orderedItems". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4972,226 +5268,242 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5993,6 +6305,62 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsView(v vo } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "orderedItems". Invalidates all iterators. func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6859,6 +7227,58 @@ func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsView(idx int, } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "orderedItems". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "orderedItems". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go index de5cd536e..783f51b19 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go index 948ff5782..95f3ddc4e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -19,11 +19,13 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsOriginPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsOriginProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "origin". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsOriginProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "origin". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "origin". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsOriginProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "origin". Invalidates all iterators. func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6809,6 +7173,58 @@ func (this *ActivityStreamsOriginProperty) SetActivityStreamsView(idx int, v voc } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "origin". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsOriginProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "origin". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go index a004fbc1d..f16e6ecaf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go index bc7f3bad2..4810f32ff 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -19,11 +19,13 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3660,6 +3840,50 @@ func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "preview". Invalidates iterators that are // traversing using Prev. @@ -4715,6 +4939,74 @@ func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "preview". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "preview". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4933,226 +5225,242 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5953,6 +6261,62 @@ func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsView(v vocab.A } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "preview". Invalidates all iterators. func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6819,6 +7183,58 @@ func (this *ActivityStreamsPreviewProperty) SetActivityStreamsView(idx int, v vo } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "preview". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsPreviewProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "preview". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go index 4a060be1a..83f7b36c6 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -120,6 +128,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -221,6 +233,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go index 23ad58a74..a35c51eaf 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -18,11 +18,13 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -43,6 +45,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -67,6 +70,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -129,6 +133,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsAnnounceMember: v, @@ -159,6 +169,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsAudioMember: v, @@ -279,6 +295,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsLikeMember: v, @@ -423,6 +445,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsTravelMember: v, @@ -826,6 +854,30 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -888,6 +940,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -903,6 +958,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -963,6 +1021,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1035,6 +1096,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1060,11 +1124,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1085,6 +1151,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1109,6 +1176,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1486,6 +1554,34 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1547,6 +1643,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1557,6 +1655,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1597,6 +1697,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1645,6 +1747,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1683,168 +1787,180 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 3 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 4 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsFollow() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsActivityStreamsGroup() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 31 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsLike() { return 32 } - if this.IsActivityStreamsNote() { + if this.IsGoToSocialLikeApproval() { return 33 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsListen() { return 34 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 57 } + if this.IsActivityStreamsUndo() { + return 58 + } + if this.IsActivityStreamsUpdate() { + return 59 + } + if this.IsActivityStreamsVideo() { + return 60 + } + if this.IsActivityStreamsView() { + return 61 + } if this.IsIRI() { return -2 } @@ -1870,6 +1986,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1880,6 +1998,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -1920,6 +2040,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -1968,6 +2090,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2375,6 +2499,34 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2442,6 +2594,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2462,6 +2618,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2542,6 +2702,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2638,6 +2802,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2669,11 +2837,13 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2694,6 +2864,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2718,6 +2889,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2740,6 +2912,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2750,6 +2924,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2790,6 +2966,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2838,6 +3016,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3535,6 +3715,54 @@ func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsView(v voc }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "relationship". Invalidates iterators that are // traversing using Prev. @@ -4548,6 +4776,74 @@ func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsView(idx i } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "relationship". Existing elements at that index and higher are +// shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "relationship". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -4745,218 +5041,234 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 4 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 5 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 5 { + } else if idx1 == 6 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 33 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5730,6 +6042,62 @@ func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsView(v vo } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "relationship". Invalidates all iterators. func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6556,6 +6924,58 @@ func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsView(idx int, } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "relationship". Panics if the index is out of bounds. Invalidates +// all iterators. +func (this *ActivityStreamsRelationshipProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "relationship". Panics if the index is out // of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go index ebc2f9629..ad5b2ff62 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go index 8e146a66a..9a20d2f01 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -19,11 +19,13 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsResultPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsResultProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "result". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsResultProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "result". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "result". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsResultProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "result". Invalidates all iterators. func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6809,6 +7173,58 @@ func (this *ActivityStreamsResultProperty) SetActivityStreamsView(idx int, v voc } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "result". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsResultProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "result". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go index ad421fbed..269814323 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go index 4984f4faa..488beedae 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -19,11 +19,13 @@ type ActivityStreamsSourceProperty struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsTravelMember: v, @@ -498,11 +526,13 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -524,6 +554,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -549,6 +580,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -936,6 +968,30 @@ func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.Activit return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -1007,6 +1063,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -1022,6 +1081,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1085,6 +1147,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1160,6 +1225,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1186,11 +1254,13 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1212,6 +1282,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1237,6 +1308,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1628,6 +1700,34 @@ func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsSourceProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1698,6 +1798,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1708,6 +1810,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1750,6 +1854,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1800,6 +1906,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1841,174 +1949,186 @@ func (this ActivityStreamsSourceProperty) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -2036,6 +2156,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -2046,6 +2168,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2088,6 +2212,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2138,6 +2264,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2178,6 +2306,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2188,6 +2318,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2230,6 +2362,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2280,6 +2414,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -2674,6 +2810,34 @@ func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.Activi this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2752,6 +2916,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2772,6 +2940,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2856,6 +3028,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2956,6 +3132,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go index 68268a679..79f2ae5c9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go index c62d94a27..2fa8b44a3 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -19,11 +19,13 @@ type ActivityStreamsSubjectProperty struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsTravelMember: v, @@ -498,11 +526,13 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -524,6 +554,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -549,6 +580,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -936,6 +968,30 @@ func (this ActivityStreamsSubjectProperty) GetActivityStreamsView() vocab.Activi return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -1007,6 +1063,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -1022,6 +1081,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1085,6 +1147,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1160,6 +1225,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1186,11 +1254,13 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1212,6 +1282,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1237,6 +1308,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1628,6 +1700,34 @@ func (this ActivityStreamsSubjectProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsSubjectProperty) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1698,6 +1798,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1708,6 +1810,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1750,6 +1854,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1800,6 +1906,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1841,174 +1949,186 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -2036,6 +2156,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -2046,6 +2168,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2088,6 +2212,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2138,6 +2264,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2178,6 +2306,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2188,6 +2318,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2230,6 +2362,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2280,6 +2414,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -2674,6 +2810,34 @@ func (this *ActivityStreamsSubjectProperty) SetActivityStreamsView(v vocab.Activ this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.Clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.Clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.Clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.Clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2752,6 +2916,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2772,6 +2940,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2856,6 +3028,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2956,6 +3132,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go index e08716927..35257972b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go index 6340a89e0..5bd53153f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -19,11 +19,13 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -137,6 +141,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsAnnounceMember: v, @@ -167,6 +177,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsAudioMember: v, @@ -293,6 +309,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsLikeMember: v, @@ -443,6 +465,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsTravelMember: v, @@ -860,6 +888,30 @@ func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -931,6 +983,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -946,6 +1001,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1009,6 +1067,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1084,6 +1145,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1110,11 +1174,13 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1136,6 +1202,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1161,6 +1228,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1552,6 +1620,34 @@ func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsTagPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1622,6 +1718,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1632,6 +1730,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1674,6 +1774,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1724,6 +1826,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1765,174 +1869,186 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1960,6 +2076,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1970,6 +2088,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2012,6 +2132,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2062,6 +2184,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2483,6 +2607,34 @@ func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2561,6 +2713,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2581,6 +2737,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2665,6 +2825,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2765,6 +2929,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2797,11 +2965,13 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2823,6 +2993,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2848,6 +3019,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2872,6 +3044,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2882,6 +3056,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2924,6 +3100,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2974,6 +3152,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3649,6 +3829,50 @@ func (this *ActivityStreamsTagProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "tag". Invalidates iterators that are traversing // using Prev. @@ -4701,6 +4925,74 @@ func (this *ActivityStreamsTagProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "tag". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "tag". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4919,226 +5211,242 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5939,6 +6247,62 @@ func (this *ActivityStreamsTagProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "tag". Invalidates all iterators. func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6804,6 +7168,58 @@ func (this *ActivityStreamsTagProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "tag". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTagProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "tag". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go index bd7669f1a..48446301e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go index ceb91a939..1d0821938 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -19,11 +19,13 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -138,6 +142,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsAnnounceMember: v, @@ -168,6 +178,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsAudioMember: v, @@ -294,6 +310,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsLikeMember: v, @@ -444,6 +466,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsTravelMember: v, @@ -861,6 +889,30 @@ func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -932,6 +984,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -947,6 +1002,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1010,6 +1068,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1085,6 +1146,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1111,11 +1175,13 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1137,6 +1203,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1162,6 +1229,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1553,6 +1621,34 @@ func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsTargetPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1623,6 +1719,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1633,6 +1731,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1675,6 +1775,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1725,6 +1827,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1766,174 +1870,186 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1961,6 +2077,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1971,6 +2089,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2013,6 +2133,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2063,6 +2185,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2484,6 +2608,34 @@ func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2562,6 +2714,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2582,6 +2738,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2666,6 +2826,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2766,6 +2930,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2798,11 +2966,13 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2824,6 +2994,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2849,6 +3020,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2873,6 +3045,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2883,6 +3057,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2925,6 +3101,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2975,6 +3153,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3651,6 +3831,50 @@ func (this *ActivityStreamsTargetProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "target". Invalidates iterators that are // traversing using Prev. @@ -4705,6 +4929,74 @@ func (this *ActivityStreamsTargetProperty) InsertActivityStreamsView(idx int, v } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "target". Existing elements at that index and higher are shifted +// back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "target". Existing elements at that index // and higher are shifted back once. Invalidates all iterators. @@ -4923,226 +5215,242 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5943,6 +6251,62 @@ func (this *ActivityStreamsTargetProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "target". Invalidates all iterators. func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6809,6 +7173,58 @@ func (this *ActivityStreamsTargetProperty) SetActivityStreamsView(idx int, v voc } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "target". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsTargetProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "target". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go index cf4bd327c..73cd3ce6a 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go @@ -21,6 +21,10 @@ type privateManager interface { // the "ActivityStreamsAdd" non-functional property in the vocabulary // "ActivityStreams" DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error) + // DeserializeAlbumFunkwhale returns the deserialization method for the + // "FunkwhaleAlbum" non-functional property in the vocabulary + // "Funkwhale" + DeserializeAlbumFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleAlbum, error) // DeserializeAnnounceActivityStreams returns the deserialization method // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" @@ -41,6 +45,10 @@ type privateManager interface { // for the "ActivityStreamsArticle" non-functional property in the // vocabulary "ActivityStreams" DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error) + // DeserializeArtistFunkwhale returns the deserialization method for the + // "FunkwhaleArtist" non-functional property in the vocabulary + // "Funkwhale" + DeserializeArtistFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleArtist, error) // DeserializeAudioActivityStreams returns the deserialization method for // the "ActivityStreamsAudio" non-functional property in the // vocabulary "ActivityStreams" @@ -123,6 +131,10 @@ type privateManager interface { // the "ActivityStreamsLeave" non-functional property in the // vocabulary "ActivityStreams" DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error) + // DeserializeLibraryFunkwhale returns the deserialization method for the + // "FunkwhaleLibrary" non-functional property in the vocabulary + // "Funkwhale" + DeserializeLibraryFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleLibrary, error) // DeserializeLikeActivityStreams returns the deserialization method for // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" @@ -232,6 +244,10 @@ type privateManager interface { // for the "ActivityStreamsTombstone" non-functional property in the // vocabulary "ActivityStreams" DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error) + // DeserializeTrackFunkwhale returns the deserialization method for the + // "FunkwhaleTrack" non-functional property in the vocabulary + // "Funkwhale" + DeserializeTrackFunkwhale() func(map[string]interface{}, map[string]string) (vocab.FunkwhaleTrack, error) // DeserializeTravelActivityStreams returns the deserialization method for // the "ActivityStreamsTravel" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go index 676ca504b..76d4195ce 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -19,11 +19,13 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsAcceptMember vocab.ActivityStreamsAccept activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd + funkwhaleAlbumMember vocab.FunkwhaleAlbum activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle + funkwhaleArtistMember vocab.FunkwhaleArtist activitystreamsAudioMember vocab.ActivityStreamsAudio activitystreamsBlockMember vocab.ActivityStreamsBlock activitystreamsCollectionMember vocab.ActivityStreamsCollection @@ -45,6 +47,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsInviteMember vocab.ActivityStreamsInvite activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave + funkwhaleLibraryMember vocab.FunkwhaleLibrary activitystreamsLikeMember vocab.ActivityStreamsLike gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen @@ -70,6 +73,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject activitystreamsTombstoneMember vocab.ActivityStreamsTombstone + funkwhaleTrackMember vocab.FunkwhaleTrack activitystreamsTravelMember vocab.ActivityStreamsTravel activitystreamsUndoMember vocab.ActivityStreamsUndo activitystreamsUpdateMember vocab.ActivityStreamsUpdate @@ -137,6 +141,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAlbumFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleAlbumMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsAnnounceMember: v, @@ -167,6 +177,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeArtistFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleArtistMember: v, + } + return this, nil } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsAudioMember: v, @@ -293,6 +309,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLibraryFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleLibraryMember: v, + } + return this, nil } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsLikeMember: v, @@ -443,6 +465,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeTrackFunkwhale()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + funkwhaleTrackMember: v, + } + return this, nil } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsTravelMember: v, @@ -860,6 +888,30 @@ func (this ActivityStreamsToPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetFunkwhaleAlbum returns the value of this property. When IsFunkwhaleAlbum +// returns false, GetFunkwhaleAlbum will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleAlbum() vocab.FunkwhaleAlbum { + return this.funkwhaleAlbumMember +} + +// GetFunkwhaleArtist returns the value of this property. When IsFunkwhaleArtist +// returns false, GetFunkwhaleArtist will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleArtist() vocab.FunkwhaleArtist { + return this.funkwhaleArtistMember +} + +// GetFunkwhaleLibrary returns the value of this property. When IsFunkwhaleLibrary +// returns false, GetFunkwhaleLibrary will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleLibrary() vocab.FunkwhaleLibrary { + return this.funkwhaleLibraryMember +} + +// GetFunkwhaleTrack returns the value of this property. When IsFunkwhaleTrack +// returns false, GetFunkwhaleTrack will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetFunkwhaleTrack() vocab.FunkwhaleTrack { + return this.funkwhaleTrackMember +} + // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval // will return an arbitrary value. @@ -931,6 +983,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd() } + if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum() + } if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } @@ -946,6 +1001,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle() } + if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist() + } if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio() } @@ -1009,6 +1067,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave() } + if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary() + } if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } @@ -1084,6 +1145,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone() } + if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack() + } if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel() } @@ -1110,11 +1174,13 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsAccept() || this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || + this.IsFunkwhaleAlbum() || this.IsActivityStreamsAnnounce() || this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || + this.IsFunkwhaleArtist() || this.IsActivityStreamsAudio() || this.IsActivityStreamsBlock() || this.IsActivityStreamsCollection() || @@ -1136,6 +1202,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsInvite() || this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || + this.IsFunkwhaleLibrary() || this.IsActivityStreamsLike() || this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || @@ -1161,6 +1228,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || this.IsActivityStreamsTombstone() || + this.IsFunkwhaleTrack() || this.IsActivityStreamsTravel() || this.IsActivityStreamsUndo() || this.IsActivityStreamsUpdate() || @@ -1552,6 +1620,34 @@ func (this ActivityStreamsToPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsFunkwhaleAlbum returns true if this property has a type of "Album". When +// true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleAlbum() bool { + return this.funkwhaleAlbumMember != nil +} + +// IsFunkwhaleArtist returns true if this property has a type of "Artist". When +// true, use the GetFunkwhaleArtist and SetFunkwhaleArtist methods to access +// and set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleArtist() bool { + return this.funkwhaleArtistMember != nil +} + +// IsFunkwhaleLibrary returns true if this property has a type of "Library". When +// true, use the GetFunkwhaleLibrary and SetFunkwhaleLibrary methods to access +// and set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleLibrary() bool { + return this.funkwhaleLibraryMember != nil +} + +// IsFunkwhaleTrack returns true if this property has a type of "Track". When +// true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods to access and +// set this property. +func (this ActivityStreamsToPropertyIterator) IsFunkwhaleTrack() bool { + return this.funkwhaleTrackMember != nil +} + // IsGoToSocialAnnounceApproval returns true if this property has a type of // "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and // SetGoToSocialAnnounceApproval methods to access and set this property. @@ -1622,6 +1718,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsActivity().JSONLDContext() } else if this.IsActivityStreamsAdd() { child = this.GetActivityStreamsAdd().JSONLDContext() + } else if this.IsFunkwhaleAlbum() { + child = this.GetFunkwhaleAlbum().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() } else if this.IsGoToSocialAnnounceApproval() { @@ -1632,6 +1730,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsArrive().JSONLDContext() } else if this.IsActivityStreamsArticle() { child = this.GetActivityStreamsArticle().JSONLDContext() + } else if this.IsFunkwhaleArtist() { + child = this.GetFunkwhaleArtist().JSONLDContext() } else if this.IsActivityStreamsAudio() { child = this.GetActivityStreamsAudio().JSONLDContext() } else if this.IsActivityStreamsBlock() { @@ -1674,6 +1774,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsJoin().JSONLDContext() } else if this.IsActivityStreamsLeave() { child = this.GetActivityStreamsLeave().JSONLDContext() + } else if this.IsFunkwhaleLibrary() { + child = this.GetFunkwhaleLibrary().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() } else if this.IsGoToSocialLikeApproval() { @@ -1724,6 +1826,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsTentativeReject().JSONLDContext() } else if this.IsActivityStreamsTombstone() { child = this.GetActivityStreamsTombstone().JSONLDContext() + } else if this.IsFunkwhaleTrack() { + child = this.GetFunkwhaleTrack().JSONLDContext() } else if this.IsActivityStreamsTravel() { child = this.GetActivityStreamsTravel().JSONLDContext() } else if this.IsActivityStreamsUndo() { @@ -1765,174 +1869,186 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAdd() { return 4 } - if this.IsActivityStreamsAnnounce() { + if this.IsFunkwhaleAlbum() { return 5 } - if this.IsGoToSocialAnnounceApproval() { + if this.IsActivityStreamsAnnounce() { return 6 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 7 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 8 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 9 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 10 } - if this.IsActivityStreamsBlock() { + if this.IsFunkwhaleArtist() { return 11 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsActivityStreamsEvent() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsFlag() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsTootHashtag() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsActivityStreamsIgnore() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsImage() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsFunkwhaleLibrary() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsLike() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMention() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsMove() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsNote() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOffer() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollection() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrderedCollectionPage() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsOrganization() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPage() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPerson() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsPlace() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsProfile() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsSchemaPropertyValue() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsQuestion() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRead() { return 50 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsReject() { return 51 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 52 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 53 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 54 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 55 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 56 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 57 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 58 } - if this.IsActivityStreamsVideo() { + if this.IsFunkwhaleTrack() { return 59 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsTravel() { return 60 } + if this.IsActivityStreamsUndo() { + return 61 + } + if this.IsActivityStreamsUpdate() { + return 62 + } + if this.IsActivityStreamsVideo() { + return 63 + } + if this.IsActivityStreamsView() { + return 64 + } if this.IsIRI() { return -2 } @@ -1960,6 +2076,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity()) } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().LessThan(o.GetFunkwhaleAlbum()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) } else if this.IsGoToSocialAnnounceApproval() { @@ -1970,6 +2088,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive()) } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle()) + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().LessThan(o.GetFunkwhaleArtist()) } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio()) } else if this.IsActivityStreamsBlock() { @@ -2012,6 +2132,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin()) } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().LessThan(o.GetFunkwhaleLibrary()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) } else if this.IsGoToSocialLikeApproval() { @@ -2062,6 +2184,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject()) } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone()) + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().LessThan(o.GetFunkwhaleTrack()) } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel()) } else if this.IsActivityStreamsUndo() { @@ -2483,6 +2607,34 @@ func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetFunkwhaleAlbum sets the value of this property. Calling IsFunkwhaleAlbum +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.clear() + this.funkwhaleAlbumMember = v +} + +// SetFunkwhaleArtist sets the value of this property. Calling IsFunkwhaleArtist +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.clear() + this.funkwhaleArtistMember = v +} + +// SetFunkwhaleLibrary sets the value of this property. Calling IsFunkwhaleLibrary +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.clear() + this.funkwhaleLibraryMember = v +} + +// SetFunkwhaleTrack sets the value of this property. Calling IsFunkwhaleTrack +// afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.clear() + this.funkwhaleTrackMember = v +} + // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -2561,6 +2713,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAdd(v) return nil } + if v, ok := t.(vocab.FunkwhaleAlbum); ok { + this.SetFunkwhaleAlbum(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAnnounce); ok { this.SetActivityStreamsAnnounce(v) return nil @@ -2581,6 +2737,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsArticle(v) return nil } + if v, ok := t.(vocab.FunkwhaleArtist); ok { + this.SetFunkwhaleArtist(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsAudio); ok { this.SetActivityStreamsAudio(v) return nil @@ -2665,6 +2825,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLeave(v) return nil } + if v, ok := t.(vocab.FunkwhaleLibrary); ok { + this.SetFunkwhaleLibrary(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsLike); ok { this.SetActivityStreamsLike(v) return nil @@ -2765,6 +2929,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsTombstone(v) return nil } + if v, ok := t.(vocab.FunkwhaleTrack); ok { + this.SetFunkwhaleTrack(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsTravel); ok { this.SetActivityStreamsTravel(v) return nil @@ -2797,11 +2965,13 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsAcceptMember = nil this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil + this.funkwhaleAlbumMember = nil this.activitystreamsAnnounceMember = nil this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil + this.funkwhaleArtistMember = nil this.activitystreamsAudioMember = nil this.activitystreamsBlockMember = nil this.activitystreamsCollectionMember = nil @@ -2823,6 +2993,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsInviteMember = nil this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil + this.funkwhaleLibraryMember = nil this.activitystreamsLikeMember = nil this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil @@ -2848,6 +3019,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil this.activitystreamsTombstoneMember = nil + this.funkwhaleTrackMember = nil this.activitystreamsTravelMember = nil this.activitystreamsUndoMember = nil this.activitystreamsUpdateMember = nil @@ -2872,6 +3044,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsActivity().Serialize() } else if this.IsActivityStreamsAdd() { return this.GetActivityStreamsAdd().Serialize() + } else if this.IsFunkwhaleAlbum() { + return this.GetFunkwhaleAlbum().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() } else if this.IsGoToSocialAnnounceApproval() { @@ -2882,6 +3056,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsArrive().Serialize() } else if this.IsActivityStreamsArticle() { return this.GetActivityStreamsArticle().Serialize() + } else if this.IsFunkwhaleArtist() { + return this.GetFunkwhaleArtist().Serialize() } else if this.IsActivityStreamsAudio() { return this.GetActivityStreamsAudio().Serialize() } else if this.IsActivityStreamsBlock() { @@ -2924,6 +3100,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsJoin().Serialize() } else if this.IsActivityStreamsLeave() { return this.GetActivityStreamsLeave().Serialize() + } else if this.IsFunkwhaleLibrary() { + return this.GetFunkwhaleLibrary().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() } else if this.IsGoToSocialLikeApproval() { @@ -2974,6 +3152,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsTentativeReject().Serialize() } else if this.IsActivityStreamsTombstone() { return this.GetActivityStreamsTombstone().Serialize() + } else if this.IsFunkwhaleTrack() { + return this.GetFunkwhaleTrack().Serialize() } else if this.IsActivityStreamsTravel() { return this.GetActivityStreamsTravel().Serialize() } else if this.IsActivityStreamsUndo() { @@ -3649,6 +3829,50 @@ func (this *ActivityStreamsToProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendFunkwhaleAlbum appends a Album value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleArtist appends a Artist value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleLibrary appends a Library value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendFunkwhaleTrack appends a Track value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back // of a list of the property "to". Invalidates iterators that are traversing // using Prev. @@ -4701,6 +4925,74 @@ func (this *ActivityStreamsToProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertFunkwhaleAlbum inserts a Album value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleArtist inserts a Artist value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleLibrary inserts a Library value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertFunkwhaleTrack inserts a Track value at the specified index for a +// property "to". Existing elements at that index and higher are shifted back +// once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the // specified index for a property "to". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. @@ -4919,226 +5211,242 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAdd() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetFunkwhaleAlbum() + rhs := this.properties[j].GetFunkwhaleAlbum() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsAnnounce() rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetGoToSocialAnnounceApproval() rhs := this.properties[j].GetGoToSocialAnnounceApproval() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { + lhs := this.properties[i].GetFunkwhaleArtist() + rhs := this.properties[j].GetFunkwhaleArtist() + return lhs.LessThan(rhs) + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { + lhs := this.properties[i].GetFunkwhaleLibrary() + rhs := this.properties[j].GetFunkwhaleLibrary() + return lhs.LessThan(rhs) + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 35 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 48 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { + lhs := this.properties[i].GetFunkwhaleTrack() + rhs := this.properties[j].GetFunkwhaleTrack() + return lhs.LessThan(rhs) + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5939,6 +6247,62 @@ func (this *ActivityStreamsToProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependFunkwhaleAlbum prepends a Album value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleAlbum(v vocab.FunkwhaleAlbum) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleArtist prepends a Artist value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleArtist(v vocab.FunkwhaleArtist) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleLibrary prepends a Library value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleLibrary(v vocab.FunkwhaleLibrary) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependFunkwhaleTrack prepends a Track value to the front of a list of the +// property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependFunkwhaleTrack(v vocab.FunkwhaleTrack) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the // front of a list of the property "to". Invalidates all iterators. func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { @@ -6804,6 +7168,58 @@ func (this *ActivityStreamsToProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetFunkwhaleAlbum sets a Album value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetFunkwhaleAlbum(idx int, v vocab.FunkwhaleAlbum) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleAlbumMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleArtist sets a Artist value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetFunkwhaleArtist(idx int, v vocab.FunkwhaleArtist) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleArtistMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleLibrary sets a Library value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetFunkwhaleLibrary(idx int, v vocab.FunkwhaleLibrary) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleLibraryMember: v, + myIdx: idx, + parent: this, + } +} + +// SetFunkwhaleTrack sets a Track value to be at the specified index for the +// property "to". Panics if the index is out of bounds. Invalidates all +// iterators. +func (this *ActivityStreamsToProperty) SetFunkwhaleTrack(idx int, v vocab.FunkwhaleTrack) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + funkwhaleTrackMember: v, + myIdx: idx, + parent: this, + } +} + // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the // specified index for the property "to". Panics if the index is out of // bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go index 3be31b0a8..0dd7b1ee9 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go @@ -200,7 +200,7 @@ func IsOrExtendsLink(other vocab.Type) bool { // LinkIsDisjointWith returns true if the other provided type is disjoint with the // Link type. func LinkIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go index d8cfc49c2..7b0af6770 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go @@ -198,7 +198,7 @@ func IsOrExtendsMention(other vocab.Type) bool { // MentionIsDisjointWith returns true if the other provided type is disjoint with // the Mention type. func MentionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go index b1d671859..ba9ba9d12 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go @@ -397,7 +397,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool { // Object type. Note that it returns false if the types are the same; see the // "IsOrExtendsObject" variant instead. func ObjectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + extensions := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go new file mode 100644 index 000000000..33c2d4a66 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typealbum contains the implementation for the Album type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typealbum diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go new file mode 100644 index 000000000..9e64bce65 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typealbum + +import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go new file mode 100644 index 000000000..6cfdc3978 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album/gen_type_funkwhale_album.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typealbum + +import ( + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleAlbum struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// AlbumIsDisjointWith returns true if the other provided type is disjoint with +// the Album type. +func AlbumIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// AlbumIsExtendedBy returns true if the other provided type extends from the +// Album type. Note that it returns false if the types are the same; see the +// "IsOrExtendsAlbum" variant instead. +func AlbumIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeAlbum creates a Album from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeAlbum(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleAlbum, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleAlbum{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Album" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Album", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Album" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Album") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// FunkwhaleAlbumExtends returns true if the Album type extends from the other +// type. +func FunkwhaleAlbumExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsAlbum returns true if the other provided type is the Album type or +// extends from the Album type. +func IsOrExtendsAlbum(other vocab.Type) bool { + if other.GetTypeName() == "Album" { + return true + } + return AlbumIsExtendedBy(other) +} + +// NewFunkwhaleAlbum creates a new Album type +func NewFunkwhaleAlbum() *FunkwhaleAlbum { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Album") + return &FunkwhaleAlbum{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleAlbum) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleAlbum) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleAlbum) GetTypeName() string { + return "Album" +} + +// GetUnknownProperties returns the unknown properties for the Album type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this FunkwhaleAlbum) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Album type extends from the other type. +func (this FunkwhaleAlbum) IsExtending(other vocab.Type) bool { + return FunkwhaleAlbumExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this FunkwhaleAlbum) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Album is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleAlbum) LessThan(o vocab.FunkwhaleAlbum) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this FunkwhaleAlbum) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Album" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Album" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleAlbum) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleAlbum) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleAlbum) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleAlbum) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleAlbum) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleAlbum) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleAlbum) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleAlbum) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleAlbum) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleAlbum) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleAlbum) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleAlbum) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleAlbum) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleAlbum) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleAlbum) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleAlbum) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleAlbum) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleAlbum) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleAlbum) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleAlbum) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleAlbum) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleAlbum) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleAlbum) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleAlbum) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleAlbum) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleAlbum) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleAlbum) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleAlbum) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleAlbum) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleAlbum) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleAlbum) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go new file mode 100644 index 000000000..80f858e0e --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeartist contains the implementation for the Artist type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typeartist diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go new file mode 100644 index 000000000..80cbc2134 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typeartist + +import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go new file mode 100644 index 000000000..3bf9d521c --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist/gen_type_funkwhale_artist.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typeartist + +import ( + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleArtist struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// ArtistIsDisjointWith returns true if the other provided type is disjoint with +// the Artist type. +func ArtistIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// ArtistIsExtendedBy returns true if the other provided type extends from the +// Artist type. Note that it returns false if the types are the same; see the +// "IsOrExtendsArtist" variant instead. +func ArtistIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// DeserializeArtist creates a Artist from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeArtist(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleArtist, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleArtist{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Artist" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Artist", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Artist" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Artist") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// FunkwhaleArtistExtends returns true if the Artist type extends from the other +// type. +func FunkwhaleArtistExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsArtist returns true if the other provided type is the Artist type or +// extends from the Artist type. +func IsOrExtendsArtist(other vocab.Type) bool { + if other.GetTypeName() == "Artist" { + return true + } + return ArtistIsExtendedBy(other) +} + +// NewFunkwhaleArtist creates a new Artist type +func NewFunkwhaleArtist() *FunkwhaleArtist { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Artist") + return &FunkwhaleArtist{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleArtist) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleArtist) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleArtist) GetTypeName() string { + return "Artist" +} + +// GetUnknownProperties returns the unknown properties for the Artist type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this FunkwhaleArtist) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Artist type extends from the other type. +func (this FunkwhaleArtist) IsExtending(other vocab.Type) bool { + return FunkwhaleArtistExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this FunkwhaleArtist) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Artist is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleArtist) LessThan(o vocab.FunkwhaleArtist) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this FunkwhaleArtist) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Artist" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Artist" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *FunkwhaleArtist) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleArtist) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleArtist) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleArtist) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleArtist) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleArtist) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleArtist) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleArtist) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleArtist) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleArtist) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleArtist) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleArtist) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleArtist) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleArtist) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleArtist) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleArtist) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleArtist) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleArtist) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleArtist) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleArtist) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleArtist) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleArtist) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleArtist) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleArtist) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleArtist) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleArtist) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleArtist) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleArtist) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleArtist) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleArtist) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleArtist) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleArtist) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleArtist) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleArtist) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleArtist) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleArtist) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go new file mode 100644 index 000000000..6e6412376 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typelibrary contains the implementation for the Library type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typelibrary diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go new file mode 100644 index 000000000..3fc267b3e --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typelibrary + +import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go new file mode 100644 index 000000000..5f3793b82 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library/gen_type_funkwhale_library.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typelibrary + +import ( + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleLibrary struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeLibrary creates a Library from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeLibrary(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleLibrary, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleLibrary{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Library" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Library", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Library" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Library") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// FunkwhaleLibraryExtends returns true if the Library type extends from the other +// type. +func FunkwhaleLibraryExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsLibrary returns true if the other provided type is the Library type +// or extends from the Library type. +func IsOrExtendsLibrary(other vocab.Type) bool { + if other.GetTypeName() == "Library" { + return true + } + return LibraryIsExtendedBy(other) +} + +// LibraryIsDisjointWith returns true if the other provided type is disjoint with +// the Library type. +func LibraryIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// LibraryIsExtendedBy returns true if the other provided type extends from the +// Library type. Note that it returns false if the types are the same; see the +// "IsOrExtendsLibrary" variant instead. +func LibraryIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// NewFunkwhaleLibrary creates a new Library type +func NewFunkwhaleLibrary() *FunkwhaleLibrary { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Library") + return &FunkwhaleLibrary{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleLibrary) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleLibrary) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleLibrary) GetTypeName() string { + return "Library" +} + +// GetUnknownProperties returns the unknown properties for the Library type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this FunkwhaleLibrary) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Library type extends from the other type. +func (this FunkwhaleLibrary) IsExtending(other vocab.Type) bool { + return FunkwhaleLibraryExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this FunkwhaleLibrary) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Library is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleLibrary) LessThan(o vocab.FunkwhaleLibrary) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this FunkwhaleLibrary) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Library" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Library" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleLibrary) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleLibrary) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleLibrary) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleLibrary) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleLibrary) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleLibrary) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleLibrary) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleLibrary) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleLibrary) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleLibrary) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleLibrary) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleLibrary) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleLibrary) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleLibrary) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleLibrary) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleLibrary) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleLibrary) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleLibrary) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleLibrary) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleLibrary) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleLibrary) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleLibrary) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleLibrary) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleLibrary) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleLibrary) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleLibrary) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleLibrary) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleLibrary) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleLibrary) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleLibrary) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleLibrary) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go new file mode 100644 index 000000000..fe42a8c8c --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typetrack contains the implementation for the Track type. All +// applications are strongly encouraged to use the interface instead of this +// concrete definition. The interfaces allow applications to consume only the +// types and properties needed and be independent of the go-fed implementation +// if another alternative implementation is created. This package is +// code-generated and subject to the same license as the go-fed tool used to +// generate it. +// +// This package is independent of other types' and properties' implementations +// by having a Manager injected into it to act as a factory for the concrete +// implementations. The implementations have been generated into their own +// separate subpackages for each vocabulary. +// +// Strongly consider using the interfaces instead of this package. +package typetrack diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go new file mode 100644 index 000000000..bc5a0d86c --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_pkg.go @@ -0,0 +1,179 @@ +// Code generated by astool. DO NOT EDIT. + +package typetrack + +import vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + +var mgr privateManager + +var typePropertyConstructor func() vocab.JSONLDTypeProperty + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface { + // DeserializeAltitudePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAltitudeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error) + // DeserializeAttachmentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsAttachmentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error) + // DeserializeAttributedToPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsAttributedToProperty" non-functional property in + // the vocabulary "ActivityStreams" + DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error) + // DeserializeAudiencePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsAudienceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error) + // DeserializeBccPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBccProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error) + // DeserializeBtoPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsBtoProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error) + // DeserializeCcPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsCcProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error) + // DeserializeContentPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContentProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error) + // DeserializeContextPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsContextProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error) + // DeserializeDurationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsDurationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error) + // DeserializeEndTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsEndTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error) + // DeserializeGeneratorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsGeneratorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeIconPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsIconProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error) + // DeserializeIdPropertyJSONLD returns the deserialization method for the + // "JSONLDIdProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error) + // DeserializeImagePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsImageProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error) + // DeserializeInReplyToPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsInReplyToProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error) + // DeserializeLikesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLikesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error) + // DeserializeLocationPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsLocationProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeMediaTypePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsMediaTypeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error) + // DeserializeNamePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsNameProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error) + // DeserializeObjectPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsObjectProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error) + // DeserializePreviewPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPreviewProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error) + // DeserializePublishedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsPublishedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error) + // DeserializeRepliesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsRepliesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error) + // DeserializeSensitivePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSensitiveProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) + // DeserializeSharesPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSharesProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error) + // DeserializeSourcePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSourceProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error) + // DeserializeStartTimePropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsStartTimeProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error) + // DeserializeSummaryPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsSummaryProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error) + // DeserializeTagPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTagProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error) + // DeserializeToPropertyActivityStreams returns the deserialization method + // for the "ActivityStreamsToProperty" non-functional property in the + // vocabulary "ActivityStreams" + DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error) + // DeserializeTypePropertyJSONLD returns the deserialization method for + // the "JSONLDTypeProperty" non-functional property in the vocabulary + // "JSONLD" + DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error) + // DeserializeUpdatedPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUpdatedProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error) + // DeserializeUrlPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsUrlProperty" non-functional property + // in the vocabulary "ActivityStreams" + DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error) +} + +// jsonldContexter is a private interface to determine the JSON-LD contexts and +// aliases needed for functional and non-functional properties. It is a helper +// interface for this implementation. +type jsonldContexter interface { + // JSONLDContext returns the JSONLD URIs required in the context string + // for this property and the specific values that are set. The value + // in the map is the alias used to import the property's value or + // values. + JSONLDContext() map[string]string +} + +// SetManager sets the manager package-global variable. For internal use only, do +// not use as part of Application behavior. Must be called at golang init time. +func SetManager(m privateManager) { + mgr = m +} + +// SetTypePropertyConstructor sets the "type" property's constructor in the +// package-global variable. For internal use only, do not use as part of +// Application behavior. Must be called at golang init time. Permits +// ActivityStreams types to correctly set their "type" property at +// construction time, so users don't have to remember to do so each time. It +// is dependency injected so other go-fed compatible implementations could +// inject their own type. +func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty) { + typePropertyConstructor = f +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go new file mode 100644 index 000000000..af5779872 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track/gen_type_funkwhale_track.go @@ -0,0 +1,1639 @@ +// Code generated by astool. DO NOT EDIT. + +package typetrack + +import ( + vocab "codeberg.org/superseriousbusiness/activity/streams/vocab" + "fmt" + "strings" +) + +type FunkwhaleTrack struct { + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeTrack creates a Track from a map representation that has been +// unmarshalled from a text or binary format. +func DeserializeTrack(m map[string]interface{}, aliasMap map[string]string) (*FunkwhaleTrack, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["https://funkwhale.audio/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &FunkwhaleTrack{ + alias: alias, + unknown: make(map[string]interface{}), + } + if typeValue, ok := m["type"]; !ok { + return nil, fmt.Errorf("no \"type\" property in map") + } else if typeString, ok := typeValue.(string); ok { + typeName := strings.TrimPrefix(typeString, aliasPrefix) + if typeName != "Track" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "Track", typeName) + } + // Fall through, success in finding a proper Type + } else if arrType, ok := typeValue.([]interface{}); ok { + found := false + for _, elemVal := range arrType { + if typeString, ok := elemVal.(string); ok && strings.TrimPrefix(typeString, aliasPrefix) == "Track" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "Track") + } + // Fall through, success in finding a proper Type + } else { + return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue) + } + // Begin: Known property deserialization + if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAltitude = p + } + if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttachment = p + } + if p, err := mgr.DeserializeAttributedToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAttributedTo = p + } + if p, err := mgr.DeserializeAudiencePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsAudience = p + } + if p, err := mgr.DeserializeBccPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBcc = p + } + if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsBto = p + } + if p, err := mgr.DeserializeCcPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsCc = p + } + if p, err := mgr.DeserializeContentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContent = p + } + if p, err := mgr.DeserializeContextPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsContext = p + } + if p, err := mgr.DeserializeDurationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsDuration = p + } + if p, err := mgr.DeserializeEndTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsEndTime = p + } + if p, err := mgr.DeserializeGeneratorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsGenerator = p + } + if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsIcon = p + } + if p, err := mgr.DeserializeIdPropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDId = p + } + if p, err := mgr.DeserializeImagePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsImage = p + } + if p, err := mgr.DeserializeInReplyToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInReplyTo = p + } + if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLikes = p + } + if p, err := mgr.DeserializeLocationPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsLocation = p + } + if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsMediaType = p + } + if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsName = p + } + if p, err := mgr.DeserializeObjectPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsObject = p + } + if p, err := mgr.DeserializePreviewPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPreview = p + } + if p, err := mgr.DeserializePublishedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsPublished = p + } + if p, err := mgr.DeserializeRepliesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsReplies = p + } + if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSensitive = p + } + if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsShares = p + } + if p, err := mgr.DeserializeSourcePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSource = p + } + if p, err := mgr.DeserializeStartTimePropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsStartTime = p + } + if p, err := mgr.DeserializeSummaryPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsSummary = p + } + if p, err := mgr.DeserializeTagPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTag = p + } + if p, err := mgr.DeserializeToPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTo = p + } + if p, err := mgr.DeserializeTypePropertyJSONLD()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.JSONLDType = p + } + if p, err := mgr.DeserializeUpdatedPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUpdated = p + } + if p, err := mgr.DeserializeUrlPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsUrl = p + } + // End: Known property deserialization + + // Begin: Unknown deserialization + for k, v := range m { + // Begin: Code that ensures a property name is unknown + if k == "altitude" { + continue + } else if k == "attachment" { + continue + } else if k == "attributedTo" { + continue + } else if k == "audience" { + continue + } else if k == "bcc" { + continue + } else if k == "bto" { + continue + } else if k == "cc" { + continue + } else if k == "content" { + continue + } else if k == "contentMap" { + continue + } else if k == "context" { + continue + } else if k == "duration" { + continue + } else if k == "endTime" { + continue + } else if k == "generator" { + continue + } else if k == "icon" { + continue + } else if k == "id" { + continue + } else if k == "image" { + continue + } else if k == "inReplyTo" { + continue + } else if k == "likes" { + continue + } else if k == "location" { + continue + } else if k == "mediaType" { + continue + } else if k == "name" { + continue + } else if k == "nameMap" { + continue + } else if k == "object" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "sensitive" { + continue + } else if k == "shares" { + continue + } else if k == "source" { + continue + } else if k == "startTime" { + continue + } else if k == "summary" { + continue + } else if k == "summaryMap" { + continue + } else if k == "tag" { + continue + } else if k == "to" { + continue + } else if k == "type" { + continue + } else if k == "updated" { + continue + } else if k == "url" { + continue + } // End: Code that ensures a property name is unknown + + this.unknown[k] = v + } + // End: Unknown deserialization + + return this, nil +} + +// FunkwhaleTrackExtends returns true if the Track type extends from the other +// type. +func FunkwhaleTrackExtends(other vocab.Type) bool { + extensions := []string{"Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// IsOrExtendsTrack returns true if the other provided type is the Track type or +// extends from the Track type. +func IsOrExtendsTrack(other vocab.Type) bool { + if other.GetTypeName() == "Track" { + return true + } + return TrackIsExtendedBy(other) +} + +// NewFunkwhaleTrack creates a new Track type +func NewFunkwhaleTrack() *FunkwhaleTrack { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("Track") + return &FunkwhaleTrack{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// TrackIsDisjointWith returns true if the other provided type is disjoint with +// the Track type. +func TrackIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// TrackIsExtendedBy returns true if the other provided type extends from the +// Track type. Note that it returns false if the types are the same; see the +// "IsOrExtendsTrack" variant instead. +func TrackIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this FunkwhaleTrack) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this FunkwhaleTrack) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this FunkwhaleTrack) GetTypeName() string { + return "Track" +} + +// GetUnknownProperties returns the unknown properties for the Track type. Note +// that this should not be used by app developers. It is only used to help +// determine which implementation is LessThan the other. Developers who are +// creating a different implementation of this type's interface can use this +// method in their LessThan implementation, but routine ActivityPub +// applications should not use this to bypass the code generation tool. +func (this FunkwhaleTrack) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the Track type extends from the other type. +func (this FunkwhaleTrack) IsExtending(other vocab.Type) bool { + return FunkwhaleTrackExtends(other) +} + +// JSONLDContext returns the JSONLD URIs required in the context string for this +// type and the specific properties that are set. The value in the map is the +// alias used to import the type and its properties. +func (this FunkwhaleTrack) JSONLDContext() map[string]string { + m := map[string]string{"https://funkwhale.audio/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m) + m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsAudience, m) + m = this.helperJSONLDContext(this.ActivityStreamsBcc, m) + m = this.helperJSONLDContext(this.ActivityStreamsBto, m) + m = this.helperJSONLDContext(this.ActivityStreamsCc, m) + m = this.helperJSONLDContext(this.ActivityStreamsContent, m) + m = this.helperJSONLDContext(this.ActivityStreamsContext, m) + m = this.helperJSONLDContext(this.ActivityStreamsDuration, m) + m = this.helperJSONLDContext(this.ActivityStreamsEndTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) + m = this.helperJSONLDContext(this.JSONLDId, m) + m = this.helperJSONLDContext(this.ActivityStreamsImage, m) + m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m) + m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) + m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) + m = this.helperJSONLDContext(this.ActivityStreamsName, m) + m = this.helperJSONLDContext(this.ActivityStreamsObject, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m) + m = this.helperJSONLDContext(this.ActivityStreamsShares, m) + m = this.helperJSONLDContext(this.ActivityStreamsSource, m) + m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m) + m = this.helperJSONLDContext(this.ActivityStreamsSummary, m) + m = this.helperJSONLDContext(this.ActivityStreamsTag, m) + m = this.helperJSONLDContext(this.ActivityStreamsTo, m) + m = this.helperJSONLDContext(this.JSONLDType, m) + m = this.helperJSONLDContext(this.ActivityStreamsUpdated, m) + m = this.helperJSONLDContext(this.ActivityStreamsUrl, m) + + return m +} + +// LessThan computes if this Track is lesser, with an arbitrary but stable +// determination. +func (this FunkwhaleTrack) LessThan(o vocab.FunkwhaleTrack) bool { + // Begin: Compare known properties + // Compare property "altitude" + if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attachment" + if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "attributedTo" + if lhs, rhs := this.ActivityStreamsAttributedTo, o.GetActivityStreamsAttributedTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "audience" + if lhs, rhs := this.ActivityStreamsAudience, o.GetActivityStreamsAudience(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bcc" + if lhs, rhs := this.ActivityStreamsBcc, o.GetActivityStreamsBcc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "bto" + if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "cc" + if lhs, rhs := this.ActivityStreamsCc, o.GetActivityStreamsCc(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "content" + if lhs, rhs := this.ActivityStreamsContent, o.GetActivityStreamsContent(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "context" + if lhs, rhs := this.ActivityStreamsContext, o.GetActivityStreamsContext(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "duration" + if lhs, rhs := this.ActivityStreamsDuration, o.GetActivityStreamsDuration(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "endTime" + if lhs, rhs := this.ActivityStreamsEndTime, o.GetActivityStreamsEndTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "generator" + if lhs, rhs := this.ActivityStreamsGenerator, o.GetActivityStreamsGenerator(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "icon" + if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "id" + if lhs, rhs := this.JSONLDId, o.GetJSONLDId(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "image" + if lhs, rhs := this.ActivityStreamsImage, o.GetActivityStreamsImage(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "inReplyTo" + if lhs, rhs := this.ActivityStreamsInReplyTo, o.GetActivityStreamsInReplyTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "likes" + if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "location" + if lhs, rhs := this.ActivityStreamsLocation, o.GetActivityStreamsLocation(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "mediaType" + if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "name" + if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "object" + if lhs, rhs := this.ActivityStreamsObject, o.GetActivityStreamsObject(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "preview" + if lhs, rhs := this.ActivityStreamsPreview, o.GetActivityStreamsPreview(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "published" + if lhs, rhs := this.ActivityStreamsPublished, o.GetActivityStreamsPublished(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "replies" + if lhs, rhs := this.ActivityStreamsReplies, o.GetActivityStreamsReplies(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "sensitive" + if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "shares" + if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "source" + if lhs, rhs := this.ActivityStreamsSource, o.GetActivityStreamsSource(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "startTime" + if lhs, rhs := this.ActivityStreamsStartTime, o.GetActivityStreamsStartTime(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "summary" + if lhs, rhs := this.ActivityStreamsSummary, o.GetActivityStreamsSummary(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "tag" + if lhs, rhs := this.ActivityStreamsTag, o.GetActivityStreamsTag(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "to" + if lhs, rhs := this.ActivityStreamsTo, o.GetActivityStreamsTo(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "type" + if lhs, rhs := this.JSONLDType, o.GetJSONLDType(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "updated" + if lhs, rhs := this.ActivityStreamsUpdated, o.GetActivityStreamsUpdated(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // Compare property "url" + if lhs, rhs := this.ActivityStreamsUrl, o.GetActivityStreamsUrl(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil + // End: Compare known properties + + // Begin: Compare unknown properties (only by number of them) + if len(this.unknown) < len(o.GetUnknownProperties()) { + return true + } else if len(o.GetUnknownProperties()) < len(this.unknown) { + return false + } // End: Compare unknown properties (only by number of them) + + // All properties are the same. + return false +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. +func (this FunkwhaleTrack) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "Track" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "Track" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "altitude" + if this.ActivityStreamsAltitude != nil { + if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAltitude.Name()] = i + } + } + // Maybe serialize property "attachment" + if this.ActivityStreamsAttachment != nil { + if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttachment.Name()] = i + } + } + // Maybe serialize property "attributedTo" + if this.ActivityStreamsAttributedTo != nil { + if i, err := this.ActivityStreamsAttributedTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAttributedTo.Name()] = i + } + } + // Maybe serialize property "audience" + if this.ActivityStreamsAudience != nil { + if i, err := this.ActivityStreamsAudience.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsAudience.Name()] = i + } + } + // Maybe serialize property "bcc" + if this.ActivityStreamsBcc != nil { + if i, err := this.ActivityStreamsBcc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBcc.Name()] = i + } + } + // Maybe serialize property "bto" + if this.ActivityStreamsBto != nil { + if i, err := this.ActivityStreamsBto.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsBto.Name()] = i + } + } + // Maybe serialize property "cc" + if this.ActivityStreamsCc != nil { + if i, err := this.ActivityStreamsCc.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsCc.Name()] = i + } + } + // Maybe serialize property "content" + if this.ActivityStreamsContent != nil { + if i, err := this.ActivityStreamsContent.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContent.Name()] = i + } + } + // Maybe serialize property "context" + if this.ActivityStreamsContext != nil { + if i, err := this.ActivityStreamsContext.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsContext.Name()] = i + } + } + // Maybe serialize property "duration" + if this.ActivityStreamsDuration != nil { + if i, err := this.ActivityStreamsDuration.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsDuration.Name()] = i + } + } + // Maybe serialize property "endTime" + if this.ActivityStreamsEndTime != nil { + if i, err := this.ActivityStreamsEndTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsEndTime.Name()] = i + } + } + // Maybe serialize property "generator" + if this.ActivityStreamsGenerator != nil { + if i, err := this.ActivityStreamsGenerator.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsGenerator.Name()] = i + } + } + // Maybe serialize property "icon" + if this.ActivityStreamsIcon != nil { + if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsIcon.Name()] = i + } + } + // Maybe serialize property "id" + if this.JSONLDId != nil { + if i, err := this.JSONLDId.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDId.Name()] = i + } + } + // Maybe serialize property "image" + if this.ActivityStreamsImage != nil { + if i, err := this.ActivityStreamsImage.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsImage.Name()] = i + } + } + // Maybe serialize property "inReplyTo" + if this.ActivityStreamsInReplyTo != nil { + if i, err := this.ActivityStreamsInReplyTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInReplyTo.Name()] = i + } + } + // Maybe serialize property "likes" + if this.ActivityStreamsLikes != nil { + if i, err := this.ActivityStreamsLikes.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLikes.Name()] = i + } + } + // Maybe serialize property "location" + if this.ActivityStreamsLocation != nil { + if i, err := this.ActivityStreamsLocation.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsLocation.Name()] = i + } + } + // Maybe serialize property "mediaType" + if this.ActivityStreamsMediaType != nil { + if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsMediaType.Name()] = i + } + } + // Maybe serialize property "name" + if this.ActivityStreamsName != nil { + if i, err := this.ActivityStreamsName.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsName.Name()] = i + } + } + // Maybe serialize property "object" + if this.ActivityStreamsObject != nil { + if i, err := this.ActivityStreamsObject.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsObject.Name()] = i + } + } + // Maybe serialize property "preview" + if this.ActivityStreamsPreview != nil { + if i, err := this.ActivityStreamsPreview.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPreview.Name()] = i + } + } + // Maybe serialize property "published" + if this.ActivityStreamsPublished != nil { + if i, err := this.ActivityStreamsPublished.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsPublished.Name()] = i + } + } + // Maybe serialize property "replies" + if this.ActivityStreamsReplies != nil { + if i, err := this.ActivityStreamsReplies.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsReplies.Name()] = i + } + } + // Maybe serialize property "sensitive" + if this.ActivityStreamsSensitive != nil { + if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSensitive.Name()] = i + } + } + // Maybe serialize property "shares" + if this.ActivityStreamsShares != nil { + if i, err := this.ActivityStreamsShares.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsShares.Name()] = i + } + } + // Maybe serialize property "source" + if this.ActivityStreamsSource != nil { + if i, err := this.ActivityStreamsSource.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSource.Name()] = i + } + } + // Maybe serialize property "startTime" + if this.ActivityStreamsStartTime != nil { + if i, err := this.ActivityStreamsStartTime.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsStartTime.Name()] = i + } + } + // Maybe serialize property "summary" + if this.ActivityStreamsSummary != nil { + if i, err := this.ActivityStreamsSummary.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsSummary.Name()] = i + } + } + // Maybe serialize property "tag" + if this.ActivityStreamsTag != nil { + if i, err := this.ActivityStreamsTag.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTag.Name()] = i + } + } + // Maybe serialize property "to" + if this.ActivityStreamsTo != nil { + if i, err := this.ActivityStreamsTo.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTo.Name()] = i + } + } + // Maybe serialize property "type" + if this.JSONLDType != nil { + if i, err := this.JSONLDType.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.JSONLDType.Name()] = i + } + } + // Maybe serialize property "updated" + if this.ActivityStreamsUpdated != nil { + if i, err := this.ActivityStreamsUpdated.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUpdated.Name()] = i + } + } + // Maybe serialize property "url" + if this.ActivityStreamsUrl != nil { + if i, err := this.ActivityStreamsUrl.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsUrl.Name()] = i + } + } + // End: Serialize known properties + + // Begin: Serialize unknown properties + for k, v := range this.unknown { + // To be safe, ensure we aren't overwriting a known property + if _, has := m[k]; !has { + m[k] = v + } + } + // End: Serialize unknown properties + + return m, nil +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *FunkwhaleTrack) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *FunkwhaleTrack) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *FunkwhaleTrack) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *FunkwhaleTrack) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *FunkwhaleTrack) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *FunkwhaleTrack) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *FunkwhaleTrack) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *FunkwhaleTrack) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *FunkwhaleTrack) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *FunkwhaleTrack) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *FunkwhaleTrack) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *FunkwhaleTrack) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *FunkwhaleTrack) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *FunkwhaleTrack) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *FunkwhaleTrack) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *FunkwhaleTrack) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *FunkwhaleTrack) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *FunkwhaleTrack) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *FunkwhaleTrack) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *FunkwhaleTrack) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *FunkwhaleTrack) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *FunkwhaleTrack) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *FunkwhaleTrack) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *FunkwhaleTrack) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *FunkwhaleTrack) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *FunkwhaleTrack) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *FunkwhaleTrack) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *FunkwhaleTrack) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *FunkwhaleTrack) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *FunkwhaleTrack) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *FunkwhaleTrack) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *FunkwhaleTrack) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *FunkwhaleTrack) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *FunkwhaleTrack) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this FunkwhaleTrack) VocabularyURI() string { + return "https://funkwhale.audio/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this FunkwhaleTrack) helperJSONLDContext(i jsonldContexter, toMerge map[string]string) map[string]string { + if i == nil { + return toMerge + } + for k, v := range i.JSONLDContext() { + /* + Since the literal maps in this function are determined at + code-generation time, this loop should not overwrite an existing key with a + new value. + */ + toMerge[k] = v + } + return toMerge +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go index f8227b800..b0e8f050d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go @@ -179,7 +179,7 @@ func DeserializeHashtag(m map[string]interface{}, aliasMap map[string]string) (* // HashtagIsDisjointWith returns true if the other provided type is disjoint with // the Hashtag type. func HashtagIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go index cb9bf7253..c0e0e9e5e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/util.go @@ -14,9 +14,9 @@ const ( // only applicable to go-fed at code-generation time. jsonLDContext = "@context" - asNS = "https://www.w3.org/ns/activitystreams" - tootNS = "http://joinmastodon.org/ns" - schemaNS = "http://schema.org" + asNS = "https://www.w3.org/ns/activitystreams" + tootNS = "http://joinmastodon.org/ns" + schemaNS = "http://schema.org" ) // Map of inlines @context entries that may need to be added diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go index 43123a3f6..9eff11664 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_actor_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsActorPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsActorPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsActorPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -996,6 +1040,22 @@ type ActivityStreamsActorProperty interface { // the property "actor". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "actor". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "actor". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "actor". Invalidates iterators // that are traversing using Prev. @@ -1267,6 +1327,22 @@ type ActivityStreamsActorProperty interface { // for a property "actor". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "actor". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "actor". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "actor". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1494,6 +1570,18 @@ type ActivityStreamsActorProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "actor". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "actor". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "actor". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "actor". Invalidates all // iterators. @@ -1749,6 +1837,22 @@ type ActivityStreamsActorProperty interface { // for the property "actor". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "actor". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "actor". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go index 97428635c..cda3db5e1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_anyOf_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsAnyOfPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsAnyOfPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsAnyOfPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -975,6 +1019,22 @@ type ActivityStreamsAnyOfProperty interface { // the property "anyOf". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "anyOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "anyOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "anyOf". Invalidates iterators // that are traversing using Prev. @@ -1246,6 +1306,22 @@ type ActivityStreamsAnyOfProperty interface { // for a property "anyOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "anyOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "anyOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "anyOf". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1473,6 +1549,18 @@ type ActivityStreamsAnyOfProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "anyOf". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "anyOf". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "anyOf". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "anyOf". Invalidates all // iterators. @@ -1728,6 +1816,22 @@ type ActivityStreamsAnyOfProperty interface { // for the property "anyOf". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "anyOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "anyOf". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go index 4405fc6cc..baf2e22f2 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attachment_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsAttachmentPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsAttachmentPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsAttachmentPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -970,6 +1014,22 @@ type ActivityStreamsAttachmentProperty interface { // the property "attachment". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "attachment". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "attachment". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "attachment". Invalidates // iterators that are traversing using Prev. @@ -1246,6 +1306,22 @@ type ActivityStreamsAttachmentProperty interface { // for a property "attachment". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "attachment". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "attachment". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "attachment". Existing elements // at that index and higher are shifted back once. Invalidates all @@ -1481,6 +1557,18 @@ type ActivityStreamsAttachmentProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "attachment". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "attachment". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "attachment". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "attachment". Invalidates all // iterators. @@ -1738,6 +1826,22 @@ type ActivityStreamsAttachmentProperty interface { // for the property "attachment". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "attachment". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "attachment". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "attachment". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go index d8db24248..560d3a261 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_attributedTo_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsAttributedToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsAttributedToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsAttributedToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -987,6 +1031,22 @@ type ActivityStreamsAttributedToProperty interface { // the property "attributedTo". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "attributedTo". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "attributedTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "attributedTo". Invalidates // iterators that are traversing using Prev. @@ -1263,6 +1323,22 @@ type ActivityStreamsAttributedToProperty interface { // for a property "attributedTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "attributedTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "attributedTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "attributedTo". Existing // elements at that index and higher are shifted back once. @@ -1498,6 +1574,18 @@ type ActivityStreamsAttributedToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "attributedTo". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "attributedTo". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "attributedTo". Invalidates all // iterators. @@ -1755,6 +1843,22 @@ type ActivityStreamsAttributedToProperty interface { // for the property "attributedTo". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "attributedTo". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "attributedTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "attributedTo". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go index f986fdd7d..9e69f9320 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_audience_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsAudiencePropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsAudiencePropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsAudiencePropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -972,6 +1016,22 @@ type ActivityStreamsAudienceProperty interface { // the property "audience". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "audience". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "audience". Invalidates // iterators that are traversing using Prev. @@ -1248,6 +1308,22 @@ type ActivityStreamsAudienceProperty interface { // for a property "audience". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "audience". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "audience". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "audience". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "audience". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1482,6 +1558,18 @@ type ActivityStreamsAudienceProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "audience". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "audience". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "audience". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "audience". Invalidates all // iterators. @@ -1739,6 +1827,22 @@ type ActivityStreamsAudienceProperty interface { // for the property "audience". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "audience". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "audience". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go index e87c8d9d1..0f065871c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bcc_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsBccPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsBccPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsBccPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -968,6 +1012,22 @@ type ActivityStreamsBccProperty interface { // the property "bcc". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "bcc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "bcc". Invalidates iterators // that are traversing using Prev. @@ -1236,6 +1296,22 @@ type ActivityStreamsBccProperty interface { // for a property "bcc". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "bcc". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "bcc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "bcc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -1462,6 +1538,18 @@ type ActivityStreamsBccProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "bcc". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "bcc". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "bcc". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "bcc". Invalidates all // iterators. @@ -1717,6 +1805,22 @@ type ActivityStreamsBccProperty interface { // for the property "bcc". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "bcc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "bcc". Panics if the index is // out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go index 2e4fac8ba..3683a053e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_bto_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsBtoPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsBtoPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsBtoPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -968,6 +1012,22 @@ type ActivityStreamsBtoProperty interface { // the property "bto". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "bto". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "bto". Invalidates iterators // that are traversing using Prev. @@ -1236,6 +1296,22 @@ type ActivityStreamsBtoProperty interface { // for a property "bto". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "bto". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "bto". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "bto". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -1462,6 +1538,18 @@ type ActivityStreamsBtoProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "bto". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "bto". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "bto". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "bto". Invalidates all // iterators. @@ -1717,6 +1805,22 @@ type ActivityStreamsBtoProperty interface { // for the property "bto". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "bto". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "bto". Panics if the index is // out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go index 5a46f40a7..e059fd15f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_cc_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsCcPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsCcPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsCcPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -968,6 +1012,20 @@ type ActivityStreamsCcProperty interface { // the property "cc". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "cc". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "cc". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "cc". Invalidates iterators that // are traversing using Prev. @@ -1234,6 +1292,22 @@ type ActivityStreamsCcProperty interface { // for a property "cc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "cc". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "cc". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -1459,6 +1533,18 @@ type ActivityStreamsCcProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "cc". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "cc". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "cc". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "cc". Invalidates all iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -1713,6 +1799,22 @@ type ActivityStreamsCcProperty interface { // for the property "cc". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "cc". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "cc". Panics if the index is // out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go index 827819f82..04c05de1b 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_closed_interface.go @@ -228,6 +228,22 @@ type ActivityStreamsClosedPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -503,6 +519,22 @@ type ActivityStreamsClosedPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -728,6 +760,18 @@ type ActivityStreamsClosedPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -989,6 +1033,22 @@ type ActivityStreamsClosedProperty interface { // the property "closed". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "closed". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "closed". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "closed". Invalidates iterators // that are traversing using Prev. @@ -1268,6 +1328,22 @@ type ActivityStreamsClosedProperty interface { // for a property "closed". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "closed". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "closed". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "closed". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1503,6 +1579,18 @@ type ActivityStreamsClosedProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "closed". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "closed". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "closed". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "closed". Invalidates all // iterators. @@ -1764,6 +1852,22 @@ type ActivityStreamsClosedProperty interface { // for the property "closed". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "closed". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "closed". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go index 392ad727c..01fc24b71 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_context_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsContextPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsContextPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsContextPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -982,6 +1026,22 @@ type ActivityStreamsContextProperty interface { // the property "context". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "context". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "context". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "context". Invalidates iterators // that are traversing using Prev. @@ -1253,6 +1313,22 @@ type ActivityStreamsContextProperty interface { // for a property "context". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "context". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "context". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "context". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "context". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1484,6 +1560,18 @@ type ActivityStreamsContextProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "context". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "context". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "context". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "context". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "context". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "context". Invalidates all // iterators. @@ -1741,6 +1829,22 @@ type ActivityStreamsContextProperty interface { // for the property "context". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "context". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "context". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go index 551a1f866..d2d0998a7 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_describes_interface.go @@ -232,6 +232,22 @@ type ActivityStreamsDescribesProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -488,6 +504,22 @@ type ActivityStreamsDescribesProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -696,6 +728,18 @@ type ActivityStreamsDescribesProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go index faa9c42be..493b70fca 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_formerType_interface.go @@ -217,6 +217,22 @@ type ActivityStreamsFormerTypePropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -477,6 +493,22 @@ type ActivityStreamsFormerTypePropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -688,6 +720,18 @@ type ActivityStreamsFormerTypePropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -937,6 +981,22 @@ type ActivityStreamsFormerTypeProperty interface { // the property "formerType". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "formerType". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "formerType". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "formerType". Invalidates // iterators that are traversing using Prev. @@ -1205,6 +1265,22 @@ type ActivityStreamsFormerTypeProperty interface { // for a property "formerType". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "formerType". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "formerType". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "formerType". Existing elements // at that index and higher are shifted back once. Invalidates all @@ -1434,6 +1510,18 @@ type ActivityStreamsFormerTypeProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "formerType". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "formerType". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "formerType". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "formerType". Invalidates all // iterators. @@ -1683,6 +1771,22 @@ type ActivityStreamsFormerTypeProperty interface { // for the property "formerType". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "formerType". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "formerType". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "formerType". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go index 91c4d88c0..ba6312e82 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_generator_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsGeneratorPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsGeneratorPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsGeneratorPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -968,6 +1012,22 @@ type ActivityStreamsGeneratorProperty interface { // the property "generator". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "generator". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "generator". Invalidates // iterators that are traversing using Prev. @@ -1244,6 +1304,22 @@ type ActivityStreamsGeneratorProperty interface { // for a property "generator". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "generator". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "generator". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "generator". Existing elements // at that index and higher are shifted back once. Invalidates all @@ -1479,6 +1555,18 @@ type ActivityStreamsGeneratorProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "generator". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "generator". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "generator". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "generator". Invalidates all // iterators. @@ -1736,6 +1824,22 @@ type ActivityStreamsGeneratorProperty interface { // for the property "generator". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "generator". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "generator". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go index cef1b4dd0..eec2d6122 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_inReplyTo_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsInReplyToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsInReplyToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsInReplyToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -978,6 +1022,22 @@ type ActivityStreamsInReplyToProperty interface { // the property "inReplyTo". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "inReplyTo". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "inReplyTo". Invalidates // iterators that are traversing using Prev. @@ -1254,6 +1314,22 @@ type ActivityStreamsInReplyToProperty interface { // for a property "inReplyTo". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "inReplyTo". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "inReplyTo". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "inReplyTo". Existing elements // at that index and higher are shifted back once. Invalidates all @@ -1489,6 +1565,18 @@ type ActivityStreamsInReplyToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "inReplyTo". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "inReplyTo". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "inReplyTo". Invalidates all // iterators. @@ -1746,6 +1834,22 @@ type ActivityStreamsInReplyToProperty interface { // for the property "inReplyTo". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "inReplyTo". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "inReplyTo". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go index fecb0a043..b9471eee1 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_instrument_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsInstrumentPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsInstrumentPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsInstrumentPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -976,6 +1020,22 @@ type ActivityStreamsInstrumentProperty interface { // the property "instrument". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "instrument". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "instrument". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "instrument". Invalidates // iterators that are traversing using Prev. @@ -1252,6 +1312,22 @@ type ActivityStreamsInstrumentProperty interface { // for a property "instrument". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "instrument". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "instrument". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "instrument". Existing elements // at that index and higher are shifted back once. Invalidates all @@ -1487,6 +1563,18 @@ type ActivityStreamsInstrumentProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "instrument". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "instrument". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "instrument". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "instrument". Invalidates all // iterators. @@ -1744,6 +1832,22 @@ type ActivityStreamsInstrumentProperty interface { // for the property "instrument". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "instrument". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "instrument". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "instrument". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go index 882d49020..083e27454 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_items_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsItemsPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsItemsPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsItemsPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -975,6 +1019,22 @@ type ActivityStreamsItemsProperty interface { // the property "items". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "items". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "items". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "items". Invalidates iterators // that are traversing using Prev. @@ -1246,6 +1306,22 @@ type ActivityStreamsItemsProperty interface { // for a property "items". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "items". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "items". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "items". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1473,6 +1549,18 @@ type ActivityStreamsItemsProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "items". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "items". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "items". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "items". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "items". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "items". Invalidates all // iterators. @@ -1728,6 +1816,22 @@ type ActivityStreamsItemsProperty interface { // for the property "items". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "items". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "items". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go index 59e09a800..81b5d7562 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_location_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsLocationPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsLocationPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsLocationPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -974,6 +1018,22 @@ type ActivityStreamsLocationProperty interface { // the property "location". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "location". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "location". Invalidates // iterators that are traversing using Prev. @@ -1250,6 +1310,22 @@ type ActivityStreamsLocationProperty interface { // for a property "location". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "location". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "location". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "location". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "location". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1484,6 +1560,18 @@ type ActivityStreamsLocationProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "location". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "location". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "location". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "location". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "location". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "location". Invalidates all // iterators. @@ -1741,6 +1829,22 @@ type ActivityStreamsLocationProperty interface { // for the property "location". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "location". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "location". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go index 9bd842da5..109bc77bd 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_object_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsObjectPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsObjectPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsObjectPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -995,6 +1039,22 @@ type ActivityStreamsObjectProperty interface { // the property "object". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "object". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "object". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "object". Invalidates iterators // that are traversing using Prev. @@ -1266,6 +1326,22 @@ type ActivityStreamsObjectProperty interface { // for a property "object". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "object". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "object". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "object". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1493,6 +1569,18 @@ type ActivityStreamsObjectProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "object". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "object". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "object". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "object". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "object". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "object". Invalidates all // iterators. @@ -1748,6 +1836,22 @@ type ActivityStreamsObjectProperty interface { // for the property "object". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "object". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "object". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go index 1c7631444..a4f5b093e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_oneOf_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsOneOfPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsOneOfPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsOneOfPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -975,6 +1019,22 @@ type ActivityStreamsOneOfProperty interface { // the property "oneOf". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "oneOf". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "oneOf". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "oneOf". Invalidates iterators // that are traversing using Prev. @@ -1246,6 +1306,22 @@ type ActivityStreamsOneOfProperty interface { // for a property "oneOf". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "oneOf". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "oneOf". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "oneOf". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1473,6 +1549,18 @@ type ActivityStreamsOneOfProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "oneOf". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "oneOf". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "oneOf". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "oneOf". Invalidates all // iterators. @@ -1728,6 +1816,22 @@ type ActivityStreamsOneOfProperty interface { // for the property "oneOf". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "oneOf". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "oneOf". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go index 8d690543a..6d6399f09 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_orderedItems_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsOrderedItemsPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -976,6 +1020,22 @@ type ActivityStreamsOrderedItemsProperty interface { // the property "orderedItems". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "orderedItems". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "orderedItems". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "orderedItems". Invalidates // iterators that are traversing using Prev. @@ -1252,6 +1312,22 @@ type ActivityStreamsOrderedItemsProperty interface { // for a property "orderedItems". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "orderedItems". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "orderedItems". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "orderedItems". Existing // elements at that index and higher are shifted back once. @@ -1487,6 +1563,18 @@ type ActivityStreamsOrderedItemsProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "orderedItems". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "orderedItems". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "orderedItems". Invalidates all // iterators. @@ -1744,6 +1832,22 @@ type ActivityStreamsOrderedItemsProperty interface { // for the property "orderedItems". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "orderedItems". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "orderedItems". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "orderedItems". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go index 4a6075f62..f93bf0c4f 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_origin_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsOriginPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsOriginPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsOriginPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -976,6 +1020,22 @@ type ActivityStreamsOriginProperty interface { // the property "origin". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "origin". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "origin". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "origin". Invalidates iterators // that are traversing using Prev. @@ -1247,6 +1307,22 @@ type ActivityStreamsOriginProperty interface { // for a property "origin". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "origin". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "origin". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "origin". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1474,6 +1550,18 @@ type ActivityStreamsOriginProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "origin". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "origin". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "origin". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "origin". Invalidates all // iterators. @@ -1729,6 +1817,22 @@ type ActivityStreamsOriginProperty interface { // for the property "origin". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "origin". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "origin". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go index 86a26dd5e..870629847 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_preview_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsPreviewPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsPreviewPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsPreviewPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -973,6 +1017,22 @@ type ActivityStreamsPreviewProperty interface { // the property "preview". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "preview". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "preview". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "preview". Invalidates iterators // that are traversing using Prev. @@ -1244,6 +1304,22 @@ type ActivityStreamsPreviewProperty interface { // for a property "preview". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "preview". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "preview". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "preview". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "preview". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1475,6 +1551,18 @@ type ActivityStreamsPreviewProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "preview". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "preview". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "preview". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "preview". Invalidates all // iterators. @@ -1732,6 +1820,22 @@ type ActivityStreamsPreviewProperty interface { // for the property "preview". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "preview". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "preview". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go index 5d7af2887..bef57ed28 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_relationship_interface.go @@ -217,6 +217,22 @@ type ActivityStreamsRelationshipPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -473,6 +489,22 @@ type ActivityStreamsRelationshipPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -680,6 +712,18 @@ type ActivityStreamsRelationshipPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -935,6 +979,22 @@ type ActivityStreamsRelationshipProperty interface { // the property "relationship". Invalidates iterators that are // traversing using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "relationship". Invalidates iterators that are + // traversing using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "relationship". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "relationship". Invalidates // iterators that are traversing using Prev. @@ -1199,6 +1259,22 @@ type ActivityStreamsRelationshipProperty interface { // for a property "relationship". Existing elements at that index and // higher are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "relationship". Existing elements at that index and + // higher are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "relationship". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "relationship". Existing // elements at that index and higher are shifted back once. @@ -1424,6 +1500,18 @@ type ActivityStreamsRelationshipProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "relationship". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "relationship". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "relationship". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "relationship". Invalidates all // iterators. @@ -1670,6 +1758,22 @@ type ActivityStreamsRelationshipProperty interface { // for the property "relationship". Panics if the index is out of // bounds. Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "relationship". Panics if the index is out of + // bounds. Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "relationship". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "relationship". Panics if the // index is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go index 450cde074..2d5417f52 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_result_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsResultPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsResultPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsResultPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -974,6 +1018,22 @@ type ActivityStreamsResultProperty interface { // the property "result". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "result". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "result". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "result". Invalidates iterators // that are traversing using Prev. @@ -1245,6 +1305,22 @@ type ActivityStreamsResultProperty interface { // for a property "result". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "result". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "result". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "result". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1472,6 +1548,18 @@ type ActivityStreamsResultProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "result". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "result". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "result". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "result". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "result". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "result". Invalidates all // iterators. @@ -1727,6 +1815,22 @@ type ActivityStreamsResultProperty interface { // for the property "result". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "result". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "result". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go index 68fbacbd6..3b03c616c 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_source_interface.go @@ -250,6 +250,22 @@ type ActivityStreamsSourceProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -517,6 +533,22 @@ type ActivityStreamsSourceProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -735,6 +767,18 @@ type ActivityStreamsSourceProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go index 50387ef43..d95d2b145 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_subject_interface.go @@ -245,6 +245,22 @@ type ActivityStreamsSubjectProperty interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -512,6 +528,22 @@ type ActivityStreamsSubjectProperty interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -730,6 +762,18 @@ type ActivityStreamsSubjectProperty interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go index 8295fdab6..713049d0e 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_tag_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsTagPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsTagPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsTagPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -972,6 +1016,22 @@ type ActivityStreamsTagProperty interface { // the property "tag". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "tag". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "tag". Invalidates iterators // that are traversing using Prev. @@ -1240,6 +1300,22 @@ type ActivityStreamsTagProperty interface { // for a property "tag". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "tag". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "tag". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "tag". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -1466,6 +1542,18 @@ type ActivityStreamsTagProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "tag". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "tag". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "tag". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "tag". Invalidates all // iterators. @@ -1721,6 +1809,22 @@ type ActivityStreamsTagProperty interface { // for the property "tag". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "tag". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "tag". Panics if the index is // out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go index 3aa67b046..58015337d 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_target_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsTargetPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsTargetPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsTargetPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -983,6 +1027,22 @@ type ActivityStreamsTargetProperty interface { // the property "target". Invalidates iterators that are traversing // using Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "target". Invalidates iterators that are traversing + // using Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "target". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "target". Invalidates iterators // that are traversing using Prev. @@ -1254,6 +1314,22 @@ type ActivityStreamsTargetProperty interface { // for a property "target". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "target". Existing elements at that index and higher + // are shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "target". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "target". Existing elements at // that index and higher are shifted back once. Invalidates all @@ -1481,6 +1557,18 @@ type ActivityStreamsTargetProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "target". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "target". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "target". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "target". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "target". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "target". Invalidates all // iterators. @@ -1736,6 +1824,22 @@ type ActivityStreamsTargetProperty interface { // for the property "target". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "target". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "target". Panics if the index // is out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go index 1f9065737..3ca40db54 100644 --- a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_to_interface.go @@ -225,6 +225,22 @@ type ActivityStreamsToPropertyIterator interface { // IsActivityStreamsView returns false, GetActivityStreamsView will // return an arbitrary value. GetActivityStreamsView() ActivityStreamsView + // GetFunkwhaleAlbum returns the value of this property. When + // IsFunkwhaleAlbum returns false, GetFunkwhaleAlbum will return an + // arbitrary value. + GetFunkwhaleAlbum() FunkwhaleAlbum + // GetFunkwhaleArtist returns the value of this property. When + // IsFunkwhaleArtist returns false, GetFunkwhaleArtist will return an + // arbitrary value. + GetFunkwhaleArtist() FunkwhaleArtist + // GetFunkwhaleLibrary returns the value of this property. When + // IsFunkwhaleLibrary returns false, GetFunkwhaleLibrary will return + // an arbitrary value. + GetFunkwhaleLibrary() FunkwhaleLibrary + // GetFunkwhaleTrack returns the value of this property. When + // IsFunkwhaleTrack returns false, GetFunkwhaleTrack will return an + // arbitrary value. + GetFunkwhaleTrack() FunkwhaleTrack // GetGoToSocialAnnounceApproval returns the value of this property. When // IsGoToSocialAnnounceApproval returns false, // GetGoToSocialAnnounceApproval will return an arbitrary value. @@ -492,6 +508,22 @@ type ActivityStreamsToPropertyIterator interface { // "View". When true, use the GetActivityStreamsView and // SetActivityStreamsView methods to access and set this property. IsActivityStreamsView() bool + // IsFunkwhaleAlbum returns true if this property has a type of "Album". + // When true, use the GetFunkwhaleAlbum and SetFunkwhaleAlbum methods + // to access and set this property. + IsFunkwhaleAlbum() bool + // IsFunkwhaleArtist returns true if this property has a type of "Artist". + // When true, use the GetFunkwhaleArtist and SetFunkwhaleArtist + // methods to access and set this property. + IsFunkwhaleArtist() bool + // IsFunkwhaleLibrary returns true if this property has a type of + // "Library". When true, use the GetFunkwhaleLibrary and + // SetFunkwhaleLibrary methods to access and set this property. + IsFunkwhaleLibrary() bool + // IsFunkwhaleTrack returns true if this property has a type of "Track". + // When true, use the GetFunkwhaleTrack and SetFunkwhaleTrack methods + // to access and set this property. + IsFunkwhaleTrack() bool // IsGoToSocialAnnounceApproval returns true if this property has a type // of "AnnounceApproval". When true, use the // GetGoToSocialAnnounceApproval and SetGoToSocialAnnounceApproval @@ -709,6 +741,18 @@ type ActivityStreamsToPropertyIterator interface { // SetActivityStreamsView sets the value of this property. Calling // IsActivityStreamsView afterwards returns true. SetActivityStreamsView(v ActivityStreamsView) + // SetFunkwhaleAlbum sets the value of this property. Calling + // IsFunkwhaleAlbum afterwards returns true. + SetFunkwhaleAlbum(v FunkwhaleAlbum) + // SetFunkwhaleArtist sets the value of this property. Calling + // IsFunkwhaleArtist afterwards returns true. + SetFunkwhaleArtist(v FunkwhaleArtist) + // SetFunkwhaleLibrary sets the value of this property. Calling + // IsFunkwhaleLibrary afterwards returns true. + SetFunkwhaleLibrary(v FunkwhaleLibrary) + // SetFunkwhaleTrack sets the value of this property. Calling + // IsFunkwhaleTrack afterwards returns true. + SetFunkwhaleTrack(v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets the value of this property. Calling // IsGoToSocialAnnounceApproval afterwards returns true. SetGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -968,6 +1012,20 @@ type ActivityStreamsToProperty interface { // the property "to". Invalidates iterators that are traversing using // Prev. AppendActivityStreamsView(v ActivityStreamsView) + // AppendFunkwhaleAlbum appends a Album value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleAlbum(v FunkwhaleAlbum) + // AppendFunkwhaleArtist appends a Artist value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleArtist(v FunkwhaleArtist) + // AppendFunkwhaleLibrary appends a Library value to the back of a list of + // the property "to". Invalidates iterators that are traversing using + // Prev. + AppendFunkwhaleLibrary(v FunkwhaleLibrary) + // AppendFunkwhaleTrack appends a Track value to the back of a list of the + // property "to". Invalidates iterators that are traversing using Prev. + AppendFunkwhaleTrack(v FunkwhaleTrack) // AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to // the back of a list of the property "to". Invalidates iterators that // are traversing using Prev. @@ -1234,6 +1292,22 @@ type ActivityStreamsToProperty interface { // for a property "to". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. InsertActivityStreamsView(idx int, v ActivityStreamsView) + // InsertFunkwhaleAlbum inserts a Album value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // InsertFunkwhaleArtist inserts a Artist value at the specified index for + // a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleArtist(idx int, v FunkwhaleArtist) + // InsertFunkwhaleLibrary inserts a Library value at the specified index + // for a property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // InsertFunkwhaleTrack inserts a Track value at the specified index for a + // property "to". Existing elements at that index and higher are + // shifted back once. Invalidates all iterators. + InsertFunkwhaleTrack(idx int, v FunkwhaleTrack) // InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at // the specified index for a property "to". Existing elements at that // index and higher are shifted back once. Invalidates all iterators. @@ -1459,6 +1533,18 @@ type ActivityStreamsToProperty interface { // PrependActivityStreamsView prepends a View value to the front of a list // of the property "to". Invalidates all iterators. PrependActivityStreamsView(v ActivityStreamsView) + // PrependFunkwhaleAlbum prepends a Album value to the front of a list of + // the property "to". Invalidates all iterators. + PrependFunkwhaleAlbum(v FunkwhaleAlbum) + // PrependFunkwhaleArtist prepends a Artist value to the front of a list + // of the property "to". Invalidates all iterators. + PrependFunkwhaleArtist(v FunkwhaleArtist) + // PrependFunkwhaleLibrary prepends a Library value to the front of a list + // of the property "to". Invalidates all iterators. + PrependFunkwhaleLibrary(v FunkwhaleLibrary) + // PrependFunkwhaleTrack prepends a Track value to the front of a list of + // the property "to". Invalidates all iterators. + PrependFunkwhaleTrack(v FunkwhaleTrack) // PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to // the front of a list of the property "to". Invalidates all iterators. PrependGoToSocialAnnounceApproval(v GoToSocialAnnounceApproval) @@ -1713,6 +1799,22 @@ type ActivityStreamsToProperty interface { // for the property "to". Panics if the index is out of bounds. // Invalidates all iterators. SetActivityStreamsView(idx int, v ActivityStreamsView) + // SetFunkwhaleAlbum sets a Album value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleAlbum(idx int, v FunkwhaleAlbum) + // SetFunkwhaleArtist sets a Artist value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleArtist(idx int, v FunkwhaleArtist) + // SetFunkwhaleLibrary sets a Library value to be at the specified index + // for the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleLibrary(idx int, v FunkwhaleLibrary) + // SetFunkwhaleTrack sets a Track value to be at the specified index for + // the property "to". Panics if the index is out of bounds. + // Invalidates all iterators. + SetFunkwhaleTrack(idx int, v FunkwhaleTrack) // SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at // the specified index for the property "to". Panics if the index is // out of bounds. Invalidates all iterators. diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go new file mode 100644 index 000000000..e07f5be05 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_album_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleAlbum interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Album type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Album type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Album is lesser, with an arbitrary but stable + // determination. + LessThan(o FunkwhaleAlbum) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go new file mode 100644 index 000000000..1ed43d51a --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_artist_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleArtist interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Artist + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Artist type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Artist is lesser, with an arbitrary but + // stable determination. + LessThan(o FunkwhaleArtist) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go new file mode 100644 index 000000000..cd878ab74 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_library_interface.go @@ -0,0 +1,200 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleLibrary interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Library + // type. Note that this should not be used by app developers. It is + // only used to help determine which implementation is LessThan the + // other. Developers who are creating a different implementation of + // this type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Library type extends from the other + // type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Library is lesser, with an arbitrary but + // stable determination. + LessThan(o FunkwhaleLibrary) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go new file mode 100644 index 000000000..ac0509c09 --- /dev/null +++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/vocab/gen_type_funkwhale_track_interface.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package vocab + +type FunkwhaleTrack interface { + // GetActivityStreamsAltitude returns the "altitude" property if it + // exists, and nil otherwise. + GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty + // GetActivityStreamsAttachment returns the "attachment" property if it + // exists, and nil otherwise. + GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty + // GetActivityStreamsAttributedTo returns the "attributedTo" property if + // it exists, and nil otherwise. + GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty + // GetActivityStreamsAudience returns the "audience" property if it + // exists, and nil otherwise. + GetActivityStreamsAudience() ActivityStreamsAudienceProperty + // GetActivityStreamsBcc returns the "bcc" property if it exists, and nil + // otherwise. + GetActivityStreamsBcc() ActivityStreamsBccProperty + // GetActivityStreamsBto returns the "bto" property if it exists, and nil + // otherwise. + GetActivityStreamsBto() ActivityStreamsBtoProperty + // GetActivityStreamsCc returns the "cc" property if it exists, and nil + // otherwise. + GetActivityStreamsCc() ActivityStreamsCcProperty + // GetActivityStreamsContent returns the "content" property if it exists, + // and nil otherwise. + GetActivityStreamsContent() ActivityStreamsContentProperty + // GetActivityStreamsContext returns the "context" property if it exists, + // and nil otherwise. + GetActivityStreamsContext() ActivityStreamsContextProperty + // GetActivityStreamsDuration returns the "duration" property if it + // exists, and nil otherwise. + GetActivityStreamsDuration() ActivityStreamsDurationProperty + // GetActivityStreamsEndTime returns the "endTime" property if it exists, + // and nil otherwise. + GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty + // GetActivityStreamsGenerator returns the "generator" property if it + // exists, and nil otherwise. + GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty + // GetActivityStreamsIcon returns the "icon" property if it exists, and + // nil otherwise. + GetActivityStreamsIcon() ActivityStreamsIconProperty + // GetActivityStreamsImage returns the "image" property if it exists, and + // nil otherwise. + GetActivityStreamsImage() ActivityStreamsImageProperty + // GetActivityStreamsInReplyTo returns the "inReplyTo" property if it + // exists, and nil otherwise. + GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty + // GetActivityStreamsLikes returns the "likes" property if it exists, and + // nil otherwise. + GetActivityStreamsLikes() ActivityStreamsLikesProperty + // GetActivityStreamsLocation returns the "location" property if it + // exists, and nil otherwise. + GetActivityStreamsLocation() ActivityStreamsLocationProperty + // GetActivityStreamsMediaType returns the "mediaType" property if it + // exists, and nil otherwise. + GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty + // GetActivityStreamsName returns the "name" property if it exists, and + // nil otherwise. + GetActivityStreamsName() ActivityStreamsNameProperty + // GetActivityStreamsObject returns the "object" property if it exists, + // and nil otherwise. + GetActivityStreamsObject() ActivityStreamsObjectProperty + // GetActivityStreamsPreview returns the "preview" property if it exists, + // and nil otherwise. + GetActivityStreamsPreview() ActivityStreamsPreviewProperty + // GetActivityStreamsPublished returns the "published" property if it + // exists, and nil otherwise. + GetActivityStreamsPublished() ActivityStreamsPublishedProperty + // GetActivityStreamsReplies returns the "replies" property if it exists, + // and nil otherwise. + GetActivityStreamsReplies() ActivityStreamsRepliesProperty + // GetActivityStreamsSensitive returns the "sensitive" property if it + // exists, and nil otherwise. + GetActivityStreamsSensitive() ActivityStreamsSensitiveProperty + // GetActivityStreamsShares returns the "shares" property if it exists, + // and nil otherwise. + GetActivityStreamsShares() ActivityStreamsSharesProperty + // GetActivityStreamsSource returns the "source" property if it exists, + // and nil otherwise. + GetActivityStreamsSource() ActivityStreamsSourceProperty + // GetActivityStreamsStartTime returns the "startTime" property if it + // exists, and nil otherwise. + GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty + // GetActivityStreamsSummary returns the "summary" property if it exists, + // and nil otherwise. + GetActivityStreamsSummary() ActivityStreamsSummaryProperty + // GetActivityStreamsTag returns the "tag" property if it exists, and nil + // otherwise. + GetActivityStreamsTag() ActivityStreamsTagProperty + // GetActivityStreamsTo returns the "to" property if it exists, and nil + // otherwise. + GetActivityStreamsTo() ActivityStreamsToProperty + // GetActivityStreamsUpdated returns the "updated" property if it exists, + // and nil otherwise. + GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty + // GetActivityStreamsUrl returns the "url" property if it exists, and nil + // otherwise. + GetActivityStreamsUrl() ActivityStreamsUrlProperty + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. + GetJSONLDId() JSONLDIdProperty + // GetJSONLDType returns the "type" property if it exists, and nil + // otherwise. + GetJSONLDType() JSONLDTypeProperty + // GetTypeName returns the name of this type. + GetTypeName() string + // GetUnknownProperties returns the unknown properties for the Track type. + // Note that this should not be used by app developers. It is only + // used to help determine which implementation is LessThan the other. + // Developers who are creating a different implementation of this + // type's interface can use this method in their LessThan + // implementation, but routine ActivityPub applications should not use + // this to bypass the code generation tool. + GetUnknownProperties() map[string]interface{} + // IsExtending returns true if the Track type extends from the other type. + IsExtending(other Type) bool + // JSONLDContext returns the JSONLD URIs required in the context string + // for this type and the specific properties that are set. The value + // in the map is the alias used to import the type and its properties. + JSONLDContext() map[string]string + // LessThan computes if this Track is lesser, with an arbitrary but stable + // determination. + LessThan(o FunkwhaleTrack) bool + // Serialize converts this into an interface representation suitable for + // marshalling into a text or binary format. + Serialize() (map[string]interface{}, error) + // SetActivityStreamsAltitude sets the "altitude" property. + SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty) + // SetActivityStreamsAttachment sets the "attachment" property. + SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty) + // SetActivityStreamsAttributedTo sets the "attributedTo" property. + SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty) + // SetActivityStreamsAudience sets the "audience" property. + SetActivityStreamsAudience(i ActivityStreamsAudienceProperty) + // SetActivityStreamsBcc sets the "bcc" property. + SetActivityStreamsBcc(i ActivityStreamsBccProperty) + // SetActivityStreamsBto sets the "bto" property. + SetActivityStreamsBto(i ActivityStreamsBtoProperty) + // SetActivityStreamsCc sets the "cc" property. + SetActivityStreamsCc(i ActivityStreamsCcProperty) + // SetActivityStreamsContent sets the "content" property. + SetActivityStreamsContent(i ActivityStreamsContentProperty) + // SetActivityStreamsContext sets the "context" property. + SetActivityStreamsContext(i ActivityStreamsContextProperty) + // SetActivityStreamsDuration sets the "duration" property. + SetActivityStreamsDuration(i ActivityStreamsDurationProperty) + // SetActivityStreamsEndTime sets the "endTime" property. + SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty) + // SetActivityStreamsGenerator sets the "generator" property. + SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty) + // SetActivityStreamsIcon sets the "icon" property. + SetActivityStreamsIcon(i ActivityStreamsIconProperty) + // SetActivityStreamsImage sets the "image" property. + SetActivityStreamsImage(i ActivityStreamsImageProperty) + // SetActivityStreamsInReplyTo sets the "inReplyTo" property. + SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty) + // SetActivityStreamsLikes sets the "likes" property. + SetActivityStreamsLikes(i ActivityStreamsLikesProperty) + // SetActivityStreamsLocation sets the "location" property. + SetActivityStreamsLocation(i ActivityStreamsLocationProperty) + // SetActivityStreamsMediaType sets the "mediaType" property. + SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) + // SetActivityStreamsName sets the "name" property. + SetActivityStreamsName(i ActivityStreamsNameProperty) + // SetActivityStreamsObject sets the "object" property. + SetActivityStreamsObject(i ActivityStreamsObjectProperty) + // SetActivityStreamsPreview sets the "preview" property. + SetActivityStreamsPreview(i ActivityStreamsPreviewProperty) + // SetActivityStreamsPublished sets the "published" property. + SetActivityStreamsPublished(i ActivityStreamsPublishedProperty) + // SetActivityStreamsReplies sets the "replies" property. + SetActivityStreamsReplies(i ActivityStreamsRepliesProperty) + // SetActivityStreamsSensitive sets the "sensitive" property. + SetActivityStreamsSensitive(i ActivityStreamsSensitiveProperty) + // SetActivityStreamsShares sets the "shares" property. + SetActivityStreamsShares(i ActivityStreamsSharesProperty) + // SetActivityStreamsSource sets the "source" property. + SetActivityStreamsSource(i ActivityStreamsSourceProperty) + // SetActivityStreamsStartTime sets the "startTime" property. + SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty) + // SetActivityStreamsSummary sets the "summary" property. + SetActivityStreamsSummary(i ActivityStreamsSummaryProperty) + // SetActivityStreamsTag sets the "tag" property. + SetActivityStreamsTag(i ActivityStreamsTagProperty) + // SetActivityStreamsTo sets the "to" property. + SetActivityStreamsTo(i ActivityStreamsToProperty) + // SetActivityStreamsUpdated sets the "updated" property. + SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty) + // SetActivityStreamsUrl sets the "url" property. + SetActivityStreamsUrl(i ActivityStreamsUrlProperty) + // SetJSONLDId sets the "id" property. + SetJSONLDId(i JSONLDIdProperty) + // SetJSONLDType sets the "type" property. + SetJSONLDType(i JSONLDTypeProperty) + // VocabularyURI returns the vocabulary's URI as a string. + VocabularyURI() string +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 5167a208d..526d23247 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -66,7 +66,7 @@ codeberg.org/gruf/go-storage/s3 # codeberg.org/gruf/go-structr v0.9.0 ## explicit; go 1.22 codeberg.org/gruf/go-structr -# codeberg.org/superseriousbusiness/activity v1.12.0-gts +# codeberg.org/superseriousbusiness/activity v1.13.0-gts ## explicit; go 1.21 codeberg.org/superseriousbusiness/activity/pub codeberg.org/superseriousbusiness/activity/streams @@ -202,6 +202,10 @@ codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_und codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_update codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_video codeberg.org/superseriousbusiness/activity/streams/impl/activitystreams/type_view +codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_album +codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_artist +codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_library +codeberg.org/superseriousbusiness/activity/streams/impl/funkwhale/type_track codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_always codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvalrequired codeberg.org/superseriousbusiness/activity/streams/impl/gotosocial/property_approvedby