diff options
| author | 2025-07-09 16:50:25 +0200 | |
|---|---|---|
| committer | 2025-07-09 16:50:25 +0200 | |
| commit | dcfc9b7885e7ed4f7886a35ccb3e007c293d3521 (patch) | |
| tree | 3bef2a25b9c8178bdfbece05a5165c94a5a7ae03 /vendor/code.superseriousbusiness.org/activity/streams/impl | |
| parent | [performance] use our own typed value context types for Value() key checking ... (diff) | |
| download | gotosocial-dcfc9b7885e7ed4f7886a35ccb3e007c293d3521.tar.xz | |
[feature] Use `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb` properties for web visibility of statuses (#4315)
This pull request implements two new properties on ActivityPub actors: `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb`.
As documented, these properties allow actors to signal their preference for whether or not their posts should be hidden from unauthenticated web views (ie., web pages like the GtS frontend, web apps like the Mastodon frontend, web APIs like the Mastodon public timeline API, etc). This allows remote accounts to *opt in* to having their unlisted visibility posts shown in (for example) the replies section of the web view of a GtS thread. In future, we can also use these properties to determine whether we should show boosts of a remote actor's post on a GtS profile, and that sort of thing.
In keeping with our stance around privacy by default, GtS assumes `true` for `hidesCcPublicFromUnauthedWeb` if the property is not set on a remote actor, ie., hide unlisted/unlocked posts by default. `hidesToPublicFromUnauthedWeb` is assumed to be `false` if the property is not set on a remote actor, ie., show public posts by default.
~~WIP as I still want to work on the documentation for this a bit.~~
New props are already in the namespace document: https://gotosocial.org/ns
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4315
Reviewed-by: kim <gruf@noreply.codeberg.org>
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'vendor/code.superseriousbusiness.org/activity/streams/impl')
82 files changed, 8640 insertions, 2609 deletions
diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go index 75edcc679..eb7651f2b 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go index 9ebcc6db4..8f29a611d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -37,6 +37,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsActorPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "actor". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "actor". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "actor". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6921,6 +6999,20 @@ func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "actor". Invalidates all iterators. func (this *ActivityStreamsActorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7912,6 +8004,19 @@ func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go index ad2be2ce6..ea6667e5e 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go index d4a22f0d4..d803781ec 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -37,6 +37,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "anyOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "anyOf". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "anyOf". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6921,6 +6999,20 @@ func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "anyOf". Invalidates all iterators. func (this *ActivityStreamsAnyOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7912,6 +8004,19 @@ func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go index 29fb6634d..76178a57e 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go index 81f56f071..126c353fe 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -37,6 +37,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4280,6 +4326,17 @@ func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "attachment". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "attachment". Invalidates iterators that are traversing // using Prev. @@ -5528,6 +5585,23 @@ func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "attachment". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5750,194 +5824,198 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6935,6 +7013,20 @@ func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "attachment". Invalidates all iterators. func (this *ActivityStreamsAttachmentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7926,6 +8018,19 @@ func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go index 9755352c6..74bab1ad8 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go index 04267548b..36940e566 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -37,6 +37,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4320,6 +4366,18 @@ func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "attributedTo". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAttributedToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "attributedTo". Invalidates iterators that are traversing // using Prev. @@ -5569,6 +5627,23 @@ func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL) } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "attributedTo". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5791,194 +5866,198 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6977,6 +7056,20 @@ func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "attributedTo". Invalidates all iterators. func (this *ActivityStreamsAttributedToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7968,6 +8061,19 @@ func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go index 3e8f4ddcc..3afe4af48 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go index 70280dd94..46605b417 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -37,6 +37,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "audience". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "audience". Invalidates iterators that are traversing using // Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "audience". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6933,6 +7011,20 @@ func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "audience". Invalidates all iterators. func (this *ActivityStreamsAudienceProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7924,6 +8016,19 @@ func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go index e3e71450c..6c9237a45 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go index 476472d9f..23d92a977 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -37,6 +37,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -255,6 +256,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsEventMember: v, @@ -1023,6 +1030,13 @@ func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1121,6 +1135,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1294,6 +1311,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1826,6 +1844,13 @@ func (this ActivityStreamsBccPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1905,6 +1930,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,150 +2113,153 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2293,6 +2323,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2897,6 +2929,13 @@ func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3020,6 +3059,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3242,6 +3285,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3345,6 +3389,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4265,6 +4311,17 @@ func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "bcc". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsBccProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -5510,6 +5567,23 @@ func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "bcc". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5732,194 +5806,198 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6915,6 +6993,20 @@ func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "bcc". Invalidates all iterators. func (this *ActivityStreamsBccProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7906,6 +7998,19 @@ func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go index d2b265bcb..01963388a 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go index 5bdb72cac..3117eab32 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -37,6 +37,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -255,6 +256,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsEventMember: v, @@ -1023,6 +1030,13 @@ func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1121,6 +1135,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1294,6 +1311,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1826,6 +1844,13 @@ func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1905,6 +1930,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,150 +2113,153 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2293,6 +2323,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2897,6 +2929,13 @@ func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3020,6 +3059,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3242,6 +3285,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3345,6 +3389,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4265,6 +4311,17 @@ func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "bto". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsBtoProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -5510,6 +5567,23 @@ func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "bto". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5732,194 +5806,198 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6915,6 +6993,20 @@ func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "bto". Invalidates all iterators. func (this *ActivityStreamsBtoProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7906,6 +7998,19 @@ func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go index e0ba13656..45d1c6606 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go index 930063768..af08d75eb 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -37,6 +37,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -255,6 +256,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsEventMember: v, @@ -1023,6 +1030,13 @@ func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1121,6 +1135,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1294,6 +1311,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1826,6 +1844,13 @@ func (this ActivityStreamsCcPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1905,6 +1930,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,150 +2113,153 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2293,6 +2323,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2897,6 +2929,13 @@ func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3020,6 +3059,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3242,6 +3285,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3345,6 +3389,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4265,6 +4311,17 @@ func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "cc". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsCcProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -5510,6 +5567,23 @@ func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "cc". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -5732,194 +5806,198 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6915,6 +6993,20 @@ func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "cc". Invalidates all iterators. func (this *ActivityStreamsCcProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7906,6 +7998,19 @@ func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go index 1dfcf9653..e62ec819f 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go index d2ed32d7a..2f11f39d0 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -44,6 +44,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -263,6 +264,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsEventMember: v, @@ -1046,6 +1053,13 @@ func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1144,6 +1158,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1332,6 +1349,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1864,6 +1882,13 @@ func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1957,6 +1982,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2144,150 +2171,153 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 24 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 25 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 26 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 27 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 28 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 29 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 30 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 31 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 32 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 33 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 34 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 35 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 36 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 37 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 38 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 39 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 40 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 41 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 42 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 43 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 44 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 45 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 46 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 47 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 48 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 49 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 50 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 51 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 52 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 53 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 54 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 55 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 56 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 57 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 58 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 59 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 60 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 61 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 62 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 63 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 64 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 65 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 66 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 67 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 68 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 69 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 70 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 71 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 72 } + if this.IsActivityStreamsView() { + return 73 + } if this.IsIRI() { return -2 } @@ -2355,6 +2385,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2959,6 +2991,13 @@ func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3082,6 +3121,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3322,6 +3365,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3429,6 +3473,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4353,6 +4399,17 @@ func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "closed". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "closed". Invalidates iterators that are traversing using // Prev. @@ -5623,6 +5680,23 @@ func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "closed". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5889,194 +5963,198 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 25 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 71 { + } else if idx1 == 72 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 72 { + } else if idx1 == 73 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -7073,6 +7151,20 @@ func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "closed". Invalidates all iterators. func (this *ActivityStreamsClosedProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -8094,6 +8186,19 @@ func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go index cf30a8655..3be289683 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go index 590719bcd..3df50c4a1 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -37,6 +37,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsContextPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "context". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "context". Invalidates iterators that are traversing using // Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "context". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6932,6 +7010,20 @@ func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "context". Invalidates all iterators. func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7923,6 +8015,19 @@ func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go index 5127ea951..84313265f 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go index 139e0a8b9..e67766f8a 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -36,6 +36,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -247,6 +248,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsEventMember: v, @@ -564,6 +571,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -1071,6 +1079,13 @@ func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsDescribesProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1160,6 +1175,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1326,6 +1344,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1842,6 +1861,13 @@ func (this ActivityStreamsDescribesProperty) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsDescribesProperty) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1912,6 +1938,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,144 +2114,147 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int { if this.IsTootEmoji() { return 21 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 22 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 35 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 36 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 37 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 38 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 39 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 40 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 41 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 42 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 43 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 44 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 45 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 46 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 47 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 48 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 49 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 50 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 51 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 52 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 53 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 54 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 55 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 56 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 57 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 58 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 59 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 60 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 61 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 62 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 63 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 64 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 65 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 66 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 67 } + if this.IsActivityStreamsView() { + return 68 + } if this.IsIRI() { return -2 } @@ -2285,6 +2316,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2441,6 +2474,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -3000,6 +3035,13 @@ func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.Clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3112,6 +3154,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go index f6d4de64e..d37d48ac4 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go index 66a784524..ecc1c52d0 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -39,6 +39,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -250,6 +251,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsEventMember: v, @@ -1000,6 +1007,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1089,6 +1103,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1262,6 +1279,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1778,6 +1796,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1855,6 +1880,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2032,144 +2059,147 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 28 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 29 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 30 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 31 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 32 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 33 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 34 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 35 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 36 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 37 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 38 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 39 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 40 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 41 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 42 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 43 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 44 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 45 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 46 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 47 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 48 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 49 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 50 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 51 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 52 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 53 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 54 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 55 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 56 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 57 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 58 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 59 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 60 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 61 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 62 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 63 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 64 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 65 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 66 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 67 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 68 } + if this.IsActivityStreamsView() { + return 69 + } if this.IsIRI() { return -2 } @@ -2233,6 +2263,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2819,6 +2851,13 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -2931,6 +2970,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3153,6 +3196,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3254,6 +3298,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4161,6 +4207,17 @@ func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "formerType". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "formerType". Invalidates iterators that are traversing // using Prev. @@ -5376,6 +5433,23 @@ func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "formerType". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5599,186 +5673,190 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6748,6 +6826,20 @@ func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "formerType". Invalidates all iterators. func (this *ActivityStreamsFormerTypeProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7714,6 +7806,19 @@ func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go index c0a57ce1c..4feffb155 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go index 0fead0258..c3bb024ab 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -37,6 +37,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "generator". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "generator". Invalidates iterators that are traversing // using Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "generator". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6933,6 +7011,20 @@ func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "generator". Invalidates all iterators. func (this *ActivityStreamsGeneratorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7924,6 +8016,19 @@ func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go index 4a3e2ec55..ff1cbb28d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go index 3e03a769f..f75363f37 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -37,6 +37,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "inReplyTo". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "inReplyTo". Invalidates iterators that are traversing // using Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "inReplyTo". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6933,6 +7011,20 @@ func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "inReplyTo". Invalidates all iterators. func (this *ActivityStreamsInReplyToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7924,6 +8016,19 @@ func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go index 9d6fe156b..f3962775d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go index 234d3f3a6..0a9d98675 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -37,6 +37,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4280,6 +4326,17 @@ func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "instrument". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "instrument". Invalidates iterators that are traversing // using Prev. @@ -5528,6 +5585,23 @@ func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "instrument". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5750,194 +5824,198 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6935,6 +7013,20 @@ func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "instrument". Invalidates all iterators. func (this *ActivityStreamsInstrumentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7926,6 +8018,19 @@ func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go index 1ab2dc2ad..c05612781 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go index 554c9d113..860ab6c8b 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -37,6 +37,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "items". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "items". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "items". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6921,6 +6999,20 @@ func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "items". Invalidates all iterators. func (this *ActivityStreamsItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7912,6 +8004,19 @@ func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go index d1cbcc55a..6dffcb1be 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go index 714b5de87..06d0fdc28 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -37,6 +37,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "location". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "location". Invalidates iterators that are traversing using // Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "location". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6933,6 +7011,20 @@ func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "location". Invalidates all iterators. func (this *ActivityStreamsLocationProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7924,6 +8016,19 @@ func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go index 77ff4c192..cdbc315ee 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go index 74fe58c0b..dd0b0ec0e 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -37,6 +37,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "object". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "object". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "object". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6922,6 +7000,20 @@ func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "object". Invalidates all iterators. func (this *ActivityStreamsObjectProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7913,6 +8005,19 @@ func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go index c3777073e..25ee48b30 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go index 99bc8de63..74d763b23 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -37,6 +37,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "oneOf". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "oneOf". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "oneOf". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6921,6 +6999,20 @@ func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "oneOf". Invalidates all iterators. func (this *ActivityStreamsOneOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7912,6 +8004,19 @@ func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go index e0808ddd9..4f9fedf0e 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go index 0fbdb709a..1e04b6ea6 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -37,6 +37,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4320,6 +4366,18 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "orderedItems". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "orderedItems". Invalidates iterators that are traversing // using Prev. @@ -5569,6 +5627,23 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL) } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "orderedItems". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5791,194 +5866,198 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6977,6 +7056,20 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "orderedItems". Invalidates all iterators. func (this *ActivityStreamsOrderedItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7968,6 +8061,19 @@ func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go index 36c215a9f..2b32a0be3 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go index 7913548be..f0cac66c4 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -37,6 +37,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "origin". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "origin". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "origin". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6922,6 +7000,20 @@ func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "origin". Invalidates all iterators. func (this *ActivityStreamsOriginProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7913,6 +8005,19 @@ func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go index a599471f9..515ead95d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go index 40e30d94e..698363d9d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -37,6 +37,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4279,6 +4325,17 @@ func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "preview". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "preview". Invalidates iterators that are traversing using // Prev. @@ -5526,6 +5583,23 @@ func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "preview". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5748,194 +5822,198 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6932,6 +7010,20 @@ func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "preview". Invalidates all iterators. func (this *ActivityStreamsPreviewProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7923,6 +8015,19 @@ func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go index fa834843b..cc58571aa 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go index ff4e90a08..74f29b90d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -36,6 +36,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -247,6 +248,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsEventMember: v, @@ -989,6 +996,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1078,6 +1092,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1244,6 +1261,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1760,6 +1778,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1830,6 +1855,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2004,144 +2031,147 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 21 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 22 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 23 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 24 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 25 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 26 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 27 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 28 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 29 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 30 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 31 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 32 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 33 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 34 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 35 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 36 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 37 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 38 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 39 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 40 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 41 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 42 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 43 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 44 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 45 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 46 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 47 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 48 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 49 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 50 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 51 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 52 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 53 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 54 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 55 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 56 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 57 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 58 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 59 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 60 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 61 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 62 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 63 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 64 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 65 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 66 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 67 } + if this.IsActivityStreamsView() { + return 68 + } if this.IsIRI() { return -2 } @@ -2203,6 +2233,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2789,6 +2821,13 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -2901,6 +2940,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3114,6 +3157,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3213,6 +3257,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4159,6 +4205,18 @@ func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "relationship". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsRelationshipProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "relationship". Invalidates iterators that are traversing // using Prev. @@ -5363,6 +5421,23 @@ func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL) } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "relationship". Existing elements at that index and higher // are shifted back once. Invalidates all iterators. @@ -5564,186 +5639,190 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 22 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6714,6 +6793,20 @@ func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "relationship". Invalidates all iterators. func (this *ActivityStreamsRelationshipProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7665,6 +7758,19 @@ func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go index 69cb742e7..b03c56040 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go index 79c332078..97497473d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -37,6 +37,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsResultPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "result". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "result". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "result". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6922,6 +7000,20 @@ func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "result". Invalidates all iterators. func (this *ActivityStreamsResultProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7913,6 +8005,19 @@ func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go index 605afc62b..35f6bb998 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go index adf02f58c..a677bcc7c 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -37,6 +37,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsEventMember: v, @@ -586,6 +593,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -1109,6 +1117,13 @@ func (this ActivityStreamsSourceProperty) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsSourceProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1207,6 +1222,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1380,6 +1398,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1912,6 +1931,13 @@ func (this ActivityStreamsSourceProperty) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsSourceProperty) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1991,6 +2017,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2172,150 +2200,153 @@ func (this ActivityStreamsSourceProperty) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2379,6 +2410,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2541,6 +2574,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -3118,6 +3153,13 @@ func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.Clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsSourceProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3241,6 +3283,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go index a74fd272a..9d3e01e3c 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go index 8ca25935f..968c0b51e 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -37,6 +37,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsEventMember: v, @@ -586,6 +593,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -1109,6 +1117,13 @@ func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsSubjectProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1207,6 +1222,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1380,6 +1398,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1912,6 +1931,13 @@ func (this ActivityStreamsSubjectProperty) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsSubjectProperty) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1991,6 +2017,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2172,150 +2200,153 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2379,6 +2410,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2541,6 +2574,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -3118,6 +3153,13 @@ func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.Clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3241,6 +3283,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go index 431e72b0d..c4147a57d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go index e619deeef..68d7f41ca 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -37,6 +37,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -255,6 +256,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsEventMember: v, @@ -1023,6 +1030,13 @@ func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1121,6 +1135,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1294,6 +1311,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1826,6 +1844,13 @@ func (this ActivityStreamsTagPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1905,6 +1930,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,150 +2113,153 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2293,6 +2323,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2897,6 +2929,13 @@ func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3020,6 +3059,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3242,6 +3285,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3345,6 +3389,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4265,6 +4311,17 @@ func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "tag". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsTagProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -5510,6 +5567,23 @@ func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "tag". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5732,194 +5806,198 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6915,6 +6993,20 @@ func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "tag". Invalidates all iterators. func (this *ActivityStreamsTagProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7906,6 +7998,19 @@ func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go index fb97befb1..4526c7b59 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go index e86bdff83..f00ca942a 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -37,6 +37,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -256,6 +257,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsEventMember: v, @@ -1024,6 +1031,13 @@ func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1122,6 +1136,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1295,6 +1312,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1827,6 +1845,13 @@ func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1906,6 +1931,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2087,150 +2114,153 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2294,6 +2324,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2898,6 +2930,13 @@ func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3021,6 +3060,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3243,6 +3286,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3346,6 +3390,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4270,6 +4316,17 @@ func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "target". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "target". Invalidates iterators that are traversing using // Prev. @@ -5516,6 +5573,23 @@ func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "target". Existing elements at that index and higher are // shifted back once. Invalidates all iterators. @@ -5738,194 +5812,198 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6922,6 +7000,20 @@ func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "target". Invalidates all iterators. func (this *ActivityStreamsTargetProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7913,6 +8005,19 @@ func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go index af7cbcb2e..52eaeacc1 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_pkg.go @@ -89,6 +89,10 @@ type privateManager interface { // for the "ActivityStreamsDocument" non-functional property in the // vocabulary "ActivityStreams" DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error) + // DeserializeEmojiReactLitePub returns the deserialization method for the + // "LitePubEmojiReact" non-functional property in the vocabulary + // "LitePub" + DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) // DeserializeEmojiToot returns the deserialization method for the // "TootEmoji" non-functional property in the vocabulary "Toot" DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go index 5c290d0f2..2112a7ae2 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -37,6 +37,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsDislikeMember vocab.ActivityStreamsDislike activitystreamsDocumentMember vocab.ActivityStreamsDocument tootEmojiMember vocab.TootEmoji + litepubEmojiReactMember vocab.LitePubEmojiReact activitystreamsEventMember vocab.ActivityStreamsEvent activitystreamsFlagMember vocab.ActivityStreamsFlag activitystreamsFollowMember vocab.ActivityStreamsFollow @@ -255,6 +256,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st tootEmojiMember: v, } return this, nil + } else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + litepubEmojiReactMember: v, + } + return this, nil } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsEventMember: v, @@ -1023,6 +1030,13 @@ func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL { return this.iri } +// GetLitePubEmojiReact returns the value of this property. When +// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an +// arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact { + return this.litepubEmojiReactMember +} + // GetSchemaPropertyValue returns the value of this property. When // IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an // arbitrary value. @@ -1121,6 +1135,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsTootEmoji() { return this.GetTootEmoji() } + if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact() + } if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent() } @@ -1294,6 +1311,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsDislike() || this.IsActivityStreamsDocument() || this.IsTootEmoji() || + this.IsLitePubEmojiReact() || this.IsActivityStreamsEvent() || this.IsActivityStreamsFlag() || this.IsActivityStreamsFollow() || @@ -1826,6 +1844,13 @@ func (this ActivityStreamsToPropertyIterator) IsIRI() bool { return this.iri != nil } +// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact". +// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to +// access and set this property. +func (this ActivityStreamsToPropertyIterator) IsLitePubEmojiReact() bool { + return this.litepubEmojiReactMember != nil +} + // IsSchemaPropertyValue returns true if this property has a type of // "PropertyValue". When true, use the GetSchemaPropertyValue and // SetSchemaPropertyValue methods to access and set this property. @@ -1905,6 +1930,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsDocument().JSONLDContext() } else if this.IsTootEmoji() { child = this.GetTootEmoji().JSONLDContext() + } else if this.IsLitePubEmojiReact() { + child = this.GetLitePubEmojiReact().JSONLDContext() } else if this.IsActivityStreamsEvent() { child = this.GetActivityStreamsEvent().JSONLDContext() } else if this.IsActivityStreamsFlag() { @@ -2086,150 +2113,153 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int { if this.IsTootEmoji() { return 22 } - if this.IsActivityStreamsEvent() { + if this.IsLitePubEmojiReact() { return 23 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 24 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 25 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 26 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 27 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 28 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 29 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 30 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 31 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 32 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 33 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 34 } - if this.IsFunkwhaleLibrary() { + if this.IsActivityStreamsLeave() { return 35 } - if this.IsActivityStreamsLike() { + if this.IsFunkwhaleLibrary() { return 36 } - if this.IsGoToSocialLikeApproval() { + if this.IsActivityStreamsLike() { return 37 } - if this.IsGoToSocialLikeAuthorization() { + if this.IsGoToSocialLikeApproval() { return 38 } - if this.IsGoToSocialLikeRequest() { + if this.IsGoToSocialLikeAuthorization() { return 39 } - if this.IsActivityStreamsListen() { + if this.IsGoToSocialLikeRequest() { return 40 } - if this.IsActivityStreamsMention() { + if this.IsActivityStreamsListen() { return 41 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsMention() { return 42 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMove() { return 43 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsNote() { return 44 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsOffer() { return 45 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOrderedCollection() { return 46 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollectionPage() { return 47 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrganization() { return 48 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsPage() { return 49 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPerson() { return 50 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPlace() { return 51 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsProfile() { return 52 } - if this.IsActivityStreamsQuestion() { + if this.IsSchemaPropertyValue() { return 53 } - if this.IsActivityStreamsRead() { + if this.IsActivityStreamsQuestion() { return 54 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsRead() { return 55 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsReject() { return 56 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsRelationship() { return 57 } - if this.IsGoToSocialReplyApproval() { + if this.IsActivityStreamsRemove() { return 58 } - if this.IsGoToSocialReplyAuthorization() { + if this.IsGoToSocialReplyApproval() { return 59 } - if this.IsGoToSocialReplyRequest() { + if this.IsGoToSocialReplyAuthorization() { return 60 } - if this.IsActivityStreamsService() { + if this.IsGoToSocialReplyRequest() { return 61 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsService() { return 62 } - if this.IsActivityStreamsTentativeReject() { + if this.IsActivityStreamsTentativeAccept() { return 63 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsTentativeReject() { return 64 } - if this.IsFunkwhaleTrack() { + if this.IsActivityStreamsTombstone() { return 65 } - if this.IsActivityStreamsTravel() { + if this.IsFunkwhaleTrack() { return 66 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTravel() { return 67 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsUndo() { return 68 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsUpdate() { return 69 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsVideo() { return 70 } + if this.IsActivityStreamsView() { + return 71 + } if this.IsIRI() { return -2 } @@ -2293,6 +2323,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument()) } else if this.IsTootEmoji() { return this.GetTootEmoji().LessThan(o.GetTootEmoji()) + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact()) } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent()) } else if this.IsActivityStreamsFlag() { @@ -2897,6 +2929,13 @@ func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) { this.iri = v } +// SetLitePubEmojiReact sets the value of this property. Calling +// IsLitePubEmojiReact afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.clear() + this.litepubEmojiReactMember = v +} + // SetSchemaPropertyValue sets the value of this property. Calling // IsSchemaPropertyValue afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -3020,6 +3059,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetTootEmoji(v) return nil } + if v, ok := t.(vocab.LitePubEmojiReact); ok { + this.SetLitePubEmojiReact(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsEvent); ok { this.SetActivityStreamsEvent(v) return nil @@ -3242,6 +3285,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsDislikeMember = nil this.activitystreamsDocumentMember = nil this.tootEmojiMember = nil + this.litepubEmojiReactMember = nil this.activitystreamsEventMember = nil this.activitystreamsFlagMember = nil this.activitystreamsFollowMember = nil @@ -3345,6 +3389,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsDocument().Serialize() } else if this.IsTootEmoji() { return this.GetTootEmoji().Serialize() + } else if this.IsLitePubEmojiReact() { + return this.GetLitePubEmojiReact().Serialize() } else if this.IsActivityStreamsEvent() { return this.GetActivityStreamsEvent().Serialize() } else if this.IsActivityStreamsFlag() { @@ -4265,6 +4311,17 @@ func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) { }) } +// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the +// property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendSchemaPropertyValue appends a PropertyValue value to the back of a list // of the property "to". Invalidates iterators that are traversing using Prev. func (this *ActivityStreamsToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -5510,6 +5567,23 @@ func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) { } } +// InsertLitePubEmojiReact inserts a EmojiReact 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) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // InsertSchemaPropertyValue inserts a PropertyValue value at the specified index // for a property "to". Existing elements at that index and higher are shifted // back once. Invalidates all iterators. @@ -5732,194 +5806,198 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool { rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) } else if idx1 == 23 { + lhs := this.properties[i].GetLitePubEmojiReact() + rhs := this.properties[j].GetLitePubEmojiReact() + return lhs.LessThan(rhs) + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 36 { lhs := this.properties[i].GetFunkwhaleLibrary() rhs := this.properties[j].GetFunkwhaleLibrary() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 38 { lhs := this.properties[i].GetGoToSocialLikeApproval() rhs := this.properties[j].GetGoToSocialLikeApproval() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 39 { lhs := this.properties[i].GetGoToSocialLikeAuthorization() rhs := this.properties[j].GetGoToSocialLikeAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 40 { lhs := this.properties[i].GetGoToSocialLikeRequest() rhs := this.properties[j].GetGoToSocialLikeRequest() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 53 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 59 { lhs := this.properties[i].GetGoToSocialReplyApproval() rhs := this.properties[j].GetGoToSocialReplyApproval() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 60 { lhs := this.properties[i].GetGoToSocialReplyAuthorization() rhs := this.properties[j].GetGoToSocialReplyAuthorization() return lhs.LessThan(rhs) - } else if idx1 == 60 { + } else if idx1 == 61 { lhs := this.properties[i].GetGoToSocialReplyRequest() rhs := this.properties[j].GetGoToSocialReplyRequest() return lhs.LessThan(rhs) - } else if idx1 == 61 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 62 { + } else if idx1 == 63 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 63 { + } else if idx1 == 64 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 64 { + } else if idx1 == 65 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 65 { + } else if idx1 == 66 { lhs := this.properties[i].GetFunkwhaleTrack() rhs := this.properties[j].GetFunkwhaleTrack() return lhs.LessThan(rhs) - } else if idx1 == 66 { + } else if idx1 == 67 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 67 { + } else if idx1 == 68 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 68 { + } else if idx1 == 69 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 69 { + } else if idx1 == 70 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 70 { + } else if idx1 == 71 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -6915,6 +6993,20 @@ func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) { } } +// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of +// the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependSchemaPropertyValue prepends a PropertyValue value to the front of a // list of the property "to". Invalidates all iterators. func (this *ActivityStreamsToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) { @@ -7906,6 +7998,19 @@ func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) { } } +// SetLitePubEmojiReact sets a EmojiReact 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) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + litepubEmojiReactMember: v, + myIdx: idx, + parent: this, + } +} + // SetSchemaPropertyValue sets a PropertyValue 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/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go index 7592749e4..6b6706cbb 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go @@ -88,7 +88,7 @@ func ActivityIsDisjointWith(other vocab.Type) bool { // Activity type. Note that it returns false if the types are the same; see // the "IsOrExtendsActivity" variant instead. func ActivityIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Add", "Announce", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} + extensions := []string{"Accept", "Add", "Announce", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "EmojiReact", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go index b1c70d6fb..93bd237e5 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_pkg.go @@ -84,6 +84,16 @@ type privateManager interface { // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) + // DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) // DeserializeIconPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsIconProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go index 2b73bfaff..bdba222cd 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go @@ -35,6 +35,8 @@ type ActivityStreamsApplication struct { ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty + GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty @@ -229,6 +231,16 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string } else if p != nil { this.ActivityStreamsGenerator = p } + if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesCcPublicFromUnauthedWeb = p + } + if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesToPublicFromUnauthedWeb = p + } if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -427,6 +439,10 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string continue } else if k == "generator" { continue + } else if k == "hidesCcPublicFromUnauthedWeb" { + continue + } else if k == "hidesToPublicFromUnauthedWeb" { + continue } else if k == "icon" { continue } else if k == "id" { @@ -780,6 +796,18 @@ func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStr return this.ActivityStreamsUrl } +// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the +// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsApplication) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty { + return this.GoToSocialHidesCcPublicFromUnauthedWeb +} + +// GetGoToSocialHidesToPublicFromUnauthedWeb returns the +// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsApplication) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty { + return this.GoToSocialHidesToPublicFromUnauthedWeb +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsApplication) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -856,6 +884,8 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m) + m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) m = this.helperJSONLDContext(this.ActivityStreamsImage, m) @@ -1147,6 +1177,34 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "hidesCcPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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) { @@ -1748,6 +1806,22 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro m[this.ActivityStreamsGenerator.Name()] = i } } + // Maybe serialize property "hidesCcPublicFromUnauthedWeb" + if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i + } + } + // Maybe serialize property "hidesToPublicFromUnauthedWeb" + if this.GoToSocialHidesToPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i + } + } // Maybe serialize property "icon" if this.ActivityStreamsIcon != nil { if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { @@ -2226,6 +2300,18 @@ func (this *ActivityStreamsApplication) SetActivityStreamsUrl(i vocab.ActivitySt this.ActivityStreamsUrl = i } +// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the +// "hidesCcPublicFromUnauthedWeb" property. +func (this *ActivityStreamsApplication) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) { + this.GoToSocialHidesCcPublicFromUnauthedWeb = i +} + +// SetGoToSocialHidesToPublicFromUnauthedWeb sets the +// "hidesToPublicFromUnauthedWeb" property. +func (this *ActivityStreamsApplication) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) { + this.GoToSocialHidesToPublicFromUnauthedWeb = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsApplication) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go index 5f7803be3..c9d9889b1 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_pkg.go @@ -84,6 +84,16 @@ type privateManager interface { // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) + // DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) // DeserializeIconPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsIconProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go index 19e2875d9..0fad38494 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_group/gen_type_activitystreams_group.go @@ -35,6 +35,8 @@ type ActivityStreamsGroup struct { ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty + GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty @@ -209,6 +211,16 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac } else if p != nil { this.ActivityStreamsGenerator = p } + if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesCcPublicFromUnauthedWeb = p + } + if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesToPublicFromUnauthedWeb = p + } if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -407,6 +419,10 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac continue } else if k == "generator" { continue + } else if k == "hidesCcPublicFromUnauthedWeb" { + continue + } else if k == "hidesToPublicFromUnauthedWeb" { + continue } else if k == "icon" { continue } else if k == "id" { @@ -780,6 +796,18 @@ func (this ActivityStreamsGroup) GetActivityStreamsUrl() vocab.ActivityStreamsUr return this.ActivityStreamsUrl } +// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the +// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsGroup) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty { + return this.GoToSocialHidesCcPublicFromUnauthedWeb +} + +// GetGoToSocialHidesToPublicFromUnauthedWeb returns the +// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsGroup) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty { + return this.GoToSocialHidesToPublicFromUnauthedWeb +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsGroup) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -856,6 +884,8 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m) + m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) m = this.helperJSONLDContext(this.ActivityStreamsImage, m) @@ -1147,6 +1177,34 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "hidesCcPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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) { @@ -1748,6 +1806,22 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsGenerator.Name()] = i } } + // Maybe serialize property "hidesCcPublicFromUnauthedWeb" + if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i + } + } + // Maybe serialize property "hidesToPublicFromUnauthedWeb" + if this.GoToSocialHidesToPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i + } + } // Maybe serialize property "icon" if this.ActivityStreamsIcon != nil { if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { @@ -2226,6 +2300,18 @@ func (this *ActivityStreamsGroup) SetActivityStreamsUrl(i vocab.ActivityStreamsU this.ActivityStreamsUrl = i } +// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the +// "hidesCcPublicFromUnauthedWeb" property. +func (this *ActivityStreamsGroup) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) { + this.GoToSocialHidesCcPublicFromUnauthedWeb = i +} + +// SetGoToSocialHidesToPublicFromUnauthedWeb sets the +// "hidesToPublicFromUnauthedWeb" property. +func (this *ActivityStreamsGroup) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) { + this.GoToSocialHidesToPublicFromUnauthedWeb = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsGroup) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go index 27f927e71..3a0404564 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ b/vendor/code.superseriousbusiness.org/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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "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", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "EmojiReact", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go index 537c95b34..d61dbc16d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ b/vendor/code.superseriousbusiness.org/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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "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", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "EmojiReact", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go index 7def5af57..3b8090608 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ b/vendor/code.superseriousbusiness.org/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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "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", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + extensions := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "EmojiReact", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go index a3b2e4496..80b6f8ac3 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_pkg.go @@ -84,6 +84,16 @@ type privateManager interface { // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) + // DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) // DeserializeIconPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsIconProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go index 8784a0157..74bd3a654 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_organization/gen_type_activitystreams_organization.go @@ -35,6 +35,8 @@ type ActivityStreamsOrganization struct { ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty + GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty @@ -209,6 +211,16 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin } else if p != nil { this.ActivityStreamsGenerator = p } + if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesCcPublicFromUnauthedWeb = p + } + if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesToPublicFromUnauthedWeb = p + } if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -407,6 +419,10 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin continue } else if k == "generator" { continue + } else if k == "hidesCcPublicFromUnauthedWeb" { + continue + } else if k == "hidesToPublicFromUnauthedWeb" { + continue } else if k == "icon" { continue } else if k == "id" { @@ -780,6 +796,18 @@ func (this ActivityStreamsOrganization) GetActivityStreamsUrl() vocab.ActivitySt return this.ActivityStreamsUrl } +// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the +// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsOrganization) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty { + return this.GoToSocialHidesCcPublicFromUnauthedWeb +} + +// GetGoToSocialHidesToPublicFromUnauthedWeb returns the +// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsOrganization) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty { + return this.GoToSocialHidesToPublicFromUnauthedWeb +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsOrganization) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -856,6 +884,8 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m) + m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) m = this.helperJSONLDContext(this.ActivityStreamsImage, m) @@ -1147,6 +1177,34 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "hidesCcPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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) { @@ -1748,6 +1806,22 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err m[this.ActivityStreamsGenerator.Name()] = i } } + // Maybe serialize property "hidesCcPublicFromUnauthedWeb" + if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i + } + } + // Maybe serialize property "hidesToPublicFromUnauthedWeb" + if this.GoToSocialHidesToPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i + } + } // Maybe serialize property "icon" if this.ActivityStreamsIcon != nil { if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { @@ -2226,6 +2300,18 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsUrl(i vocab.ActivityS this.ActivityStreamsUrl = i } +// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the +// "hidesCcPublicFromUnauthedWeb" property. +func (this *ActivityStreamsOrganization) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) { + this.GoToSocialHidesCcPublicFromUnauthedWeb = i +} + +// SetGoToSocialHidesToPublicFromUnauthedWeb sets the +// "hidesToPublicFromUnauthedWeb" property. +func (this *ActivityStreamsOrganization) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) { + this.GoToSocialHidesToPublicFromUnauthedWeb = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsOrganization) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go index 8b72acc8c..30fd607a1 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_pkg.go @@ -84,6 +84,16 @@ type privateManager interface { // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) + // DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) // DeserializeIconPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsIconProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go index bad346077..851a1ef0c 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_person/gen_type_activitystreams_person.go @@ -35,6 +35,8 @@ type ActivityStreamsPerson struct { ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty + GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty @@ -209,6 +211,16 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A } else if p != nil { this.ActivityStreamsGenerator = p } + if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesCcPublicFromUnauthedWeb = p + } + if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesToPublicFromUnauthedWeb = p + } if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -407,6 +419,10 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A continue } else if k == "generator" { continue + } else if k == "hidesCcPublicFromUnauthedWeb" { + continue + } else if k == "hidesToPublicFromUnauthedWeb" { + continue } else if k == "icon" { continue } else if k == "id" { @@ -780,6 +796,18 @@ func (this ActivityStreamsPerson) GetActivityStreamsUrl() vocab.ActivityStreamsU return this.ActivityStreamsUrl } +// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the +// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsPerson) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty { + return this.GoToSocialHidesCcPublicFromUnauthedWeb +} + +// GetGoToSocialHidesToPublicFromUnauthedWeb returns the +// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsPerson) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty { + return this.GoToSocialHidesToPublicFromUnauthedWeb +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsPerson) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -856,6 +884,8 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m) + m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) m = this.helperJSONLDContext(this.ActivityStreamsImage, m) @@ -1147,6 +1177,34 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool { // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "hidesCcPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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) { @@ -1748,6 +1806,22 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsGenerator.Name()] = i } } + // Maybe serialize property "hidesCcPublicFromUnauthedWeb" + if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i + } + } + // Maybe serialize property "hidesToPublicFromUnauthedWeb" + if this.GoToSocialHidesToPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i + } + } // Maybe serialize property "icon" if this.ActivityStreamsIcon != nil { if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { @@ -2226,6 +2300,18 @@ func (this *ActivityStreamsPerson) SetActivityStreamsUrl(i vocab.ActivityStreams this.ActivityStreamsUrl = i } +// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the +// "hidesCcPublicFromUnauthedWeb" property. +func (this *ActivityStreamsPerson) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) { + this.GoToSocialHidesCcPublicFromUnauthedWeb = i +} + +// SetGoToSocialHidesToPublicFromUnauthedWeb sets the +// "hidesToPublicFromUnauthedWeb" property. +func (this *ActivityStreamsPerson) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) { + this.GoToSocialHidesToPublicFromUnauthedWeb = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsPerson) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go index c06ee9999..4e6f1353d 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_pkg.go @@ -84,6 +84,16 @@ type privateManager interface { // method for the "ActivityStreamsGeneratorProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error) + // DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) + // DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the + // deserialization method for the + // "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional + // property in the vocabulary "GoToSocial" + DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) // DeserializeIconPropertyActivityStreams returns the deserialization // method for the "ActivityStreamsIconProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go index 1d9083026..b5a7b1571 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/type_service/gen_type_activitystreams_service.go @@ -35,6 +35,8 @@ type ActivityStreamsService struct { ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty + GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty JSONLDId vocab.JSONLDIdProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty @@ -209,6 +211,16 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* } else if p != nil { this.ActivityStreamsGenerator = p } + if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesCcPublicFromUnauthedWeb = p + } + if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.GoToSocialHidesToPublicFromUnauthedWeb = p + } if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -407,6 +419,10 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (* continue } else if k == "generator" { continue + } else if k == "hidesCcPublicFromUnauthedWeb" { + continue + } else if k == "hidesToPublicFromUnauthedWeb" { + continue } else if k == "icon" { continue } else if k == "id" { @@ -780,6 +796,18 @@ func (this ActivityStreamsService) GetActivityStreamsUrl() vocab.ActivityStreams return this.ActivityStreamsUrl } +// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the +// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsService) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty { + return this.GoToSocialHidesCcPublicFromUnauthedWeb +} + +// GetGoToSocialHidesToPublicFromUnauthedWeb returns the +// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise. +func (this ActivityStreamsService) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty { + return this.GoToSocialHidesToPublicFromUnauthedWeb +} + // GetJSONLDId returns the "id" property if it exists, and nil otherwise. func (this ActivityStreamsService) GetJSONLDId() vocab.JSONLDIdProperty { return this.JSONLDId @@ -856,6 +884,8 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m) m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m) + m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m) + m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m) m = this.helperJSONLDContext(this.ActivityStreamsIcon, m) m = this.helperJSONLDContext(this.JSONLDId, m) m = this.helperJSONLDContext(this.ActivityStreamsImage, m) @@ -1147,6 +1177,34 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "hidesCcPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb" + if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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) { @@ -1748,6 +1806,22 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) { m[this.ActivityStreamsGenerator.Name()] = i } } + // Maybe serialize property "hidesCcPublicFromUnauthedWeb" + if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i + } + } + // Maybe serialize property "hidesToPublicFromUnauthedWeb" + if this.GoToSocialHidesToPublicFromUnauthedWeb != nil { + if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i + } + } // Maybe serialize property "icon" if this.ActivityStreamsIcon != nil { if i, err := this.ActivityStreamsIcon.Serialize(); err != nil { @@ -2226,6 +2300,18 @@ func (this *ActivityStreamsService) SetActivityStreamsUrl(i vocab.ActivityStream this.ActivityStreamsUrl = i } +// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the +// "hidesCcPublicFromUnauthedWeb" property. +func (this *ActivityStreamsService) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) { + this.GoToSocialHidesCcPublicFromUnauthedWeb = i +} + +// SetGoToSocialHidesToPublicFromUnauthedWeb sets the +// "hidesToPublicFromUnauthedWeb" property. +func (this *ActivityStreamsService) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) { + this.GoToSocialHidesToPublicFromUnauthedWeb = i +} + // SetJSONLDId sets the "id" property. func (this *ActivityStreamsService) SetJSONLDId(i vocab.JSONLDIdProperty) { this.JSONLDId = i diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_doc.go new file mode 100644 index 000000000..94dfd6688 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyhidesccpublicfromunauthedweb contains the implementation for +// the hidesCcPublicFromUnauthedWeb property. 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 propertyhidesccpublicfromunauthedweb diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_pkg.go new file mode 100644 index 000000000..853c8afa9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhidesccpublicfromunauthedweb + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// 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 +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_property_gotosocial_hidesCcPublicFromUnauthedWeb.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_property_gotosocial_hidesCcPublicFromUnauthedWeb.go new file mode 100644 index 000000000..2db523700 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb/gen_property_gotosocial_hidesCcPublicFromUnauthedWeb.go @@ -0,0 +1,206 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhidesccpublicfromunauthedweb + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialHidesCcPublicFromUnauthedWebProperty is the functional property +// "hidesCcPublicFromUnauthedWeb". It is permitted to be a single +// default-valued value type. +type GoToSocialHidesCcPublicFromUnauthedWebProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeHidesCcPublicFromUnauthedWebProperty creates a +// "hidesCcPublicFromUnauthedWeb" property from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeHidesCcPublicFromUnauthedWebProperty(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialHidesCcPublicFromUnauthedWebProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "hidesCcPublicFromUnauthedWeb" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "hidesCcPublicFromUnauthedWeb") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialHidesCcPublicFromUnauthedWebProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &GoToSocialHidesCcPublicFromUnauthedWebProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &GoToSocialHidesCcPublicFromUnauthedWebProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialHidesCcPublicFromUnauthedWebProperty creates a new +// hidesCcPublicFromUnauthedWeb property. +func NewGoToSocialHidesCcPublicFromUnauthedWebProperty() *GoToSocialHidesCcPublicFromUnauthedWebProperty { + return &GoToSocialHidesCcPublicFromUnauthedWebProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *GoToSocialHidesCcPublicFromUnauthedWebProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = false +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) IsXMLSchemaBoolean() bool { + return this.hasBooleanMember +} + +// 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. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + 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. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) KindIndex() int { + if this.IsXMLSchemaBoolean() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) LessThan(o vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return boolean.LessBoolean(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "hidesCcPublicFromUnauthedWeb". +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "hidesCcPublicFromUnauthedWeb" + } else { + return "hidesCcPublicFromUnauthedWeb" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialHidesCcPublicFromUnauthedWebProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *GoToSocialHidesCcPublicFromUnauthedWebProperty) Set(v bool) { + this.Clear() + this.xmlschemaBooleanMember = v + this.hasBooleanMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialHidesCcPublicFromUnauthedWebProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_doc.go new file mode 100644 index 000000000..efc511490 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package propertyhidestopublicfromunauthedweb contains the implementation for +// the hidesToPublicFromUnauthedWeb property. 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 propertyhidestopublicfromunauthedweb diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_pkg.go new file mode 100644 index 000000000..16e11ea5c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_pkg.go @@ -0,0 +1,15 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhidestopublicfromunauthedweb + +var mgr privateManager + +// privateManager abstracts the code-generated manager that provides access to +// concrete implementations. +type privateManager interface{} + +// 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 +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_property_gotosocial_hidesToPublicFromUnauthedWeb.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_property_gotosocial_hidesToPublicFromUnauthedWeb.go new file mode 100644 index 000000000..2709d031c --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb/gen_property_gotosocial_hidesToPublicFromUnauthedWeb.go @@ -0,0 +1,206 @@ +// Code generated by astool. DO NOT EDIT. + +package propertyhidestopublicfromunauthedweb + +import ( + boolean "code.superseriousbusiness.org/activity/streams/values/boolean" + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "net/url" +) + +// GoToSocialHidesToPublicFromUnauthedWebProperty is the functional property +// "hidesToPublicFromUnauthedWeb". It is permitted to be a single +// default-valued value type. +type GoToSocialHidesToPublicFromUnauthedWebProperty struct { + xmlschemaBooleanMember bool + hasBooleanMember bool + unknown interface{} + iri *url.URL + alias string +} + +// DeserializeHidesToPublicFromUnauthedWebProperty creates a +// "hidesToPublicFromUnauthedWeb" property from an interface representation +// that has been unmarshalled from a text or binary format. +func DeserializeHidesToPublicFromUnauthedWebProperty(m map[string]interface{}, aliasMap map[string]string) (*GoToSocialHidesToPublicFromUnauthedWebProperty, error) { + alias := "" + if a, ok := aliasMap["https://gotosocial.org/ns"]; ok { + alias = a + } + propName := "hidesToPublicFromUnauthedWeb" + if len(alias) > 0 { + // Use alias both to find the property, and set within the property. + propName = fmt.Sprintf("%s:%s", alias, "hidesToPublicFromUnauthedWeb") + } + i, ok := m[propName] + + if ok { + if s, ok := i.(string); ok { + u, err := url.Parse(s) + // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst + // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy + if err == nil && len(u.Scheme) > 0 { + this := &GoToSocialHidesToPublicFromUnauthedWebProperty{ + alias: alias, + iri: u, + } + return this, nil + } + } + if v, err := boolean.DeserializeBoolean(i); err == nil { + this := &GoToSocialHidesToPublicFromUnauthedWebProperty{ + alias: alias, + hasBooleanMember: true, + xmlschemaBooleanMember: v, + } + return this, nil + } + this := &GoToSocialHidesToPublicFromUnauthedWebProperty{ + alias: alias, + unknown: i, + } + return this, nil + } + return nil, nil +} + +// NewGoToSocialHidesToPublicFromUnauthedWebProperty creates a new +// hidesToPublicFromUnauthedWeb property. +func NewGoToSocialHidesToPublicFromUnauthedWebProperty() *GoToSocialHidesToPublicFromUnauthedWebProperty { + return &GoToSocialHidesToPublicFromUnauthedWebProperty{alias: ""} +} + +// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean +// afterwards will return false. +func (this *GoToSocialHidesToPublicFromUnauthedWebProperty) Clear() { + this.unknown = nil + this.iri = nil + this.hasBooleanMember = false +} + +// Get returns the value of this property. When IsXMLSchemaBoolean returns false, +// Get will return any arbitrary value. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) Get() bool { + return this.xmlschemaBooleanMember +} + +// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will +// return any arbitrary value. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) GetIRI() *url.URL { + return this.iri +} + +// HasAny returns true if the value or IRI is set. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) HasAny() bool { + return this.IsXMLSchemaBoolean() || this.iri != nil +} + +// IsIRI returns true if this property is an IRI. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) IsIRI() bool { + return this.iri != nil +} + +// IsXMLSchemaBoolean returns true if this property is set and not an IRI. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) IsXMLSchemaBoolean() bool { + return this.hasBooleanMember +} + +// 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. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) JSONLDContext() map[string]string { + m := map[string]string{"https://gotosocial.org/ns": this.alias} + var child map[string]string + + /* + 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. + */ + for k, v := range child { + m[k] = v + } + return m +} + +// KindIndex computes an arbitrary value for indexing this kind of value. This is +// a leaky API detail only for folks looking to replace the go-fed +// implementation. Applications should not use this method. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) KindIndex() int { + if this.IsXMLSchemaBoolean() { + return 0 + } + if this.IsIRI() { + return -2 + } + return -1 +} + +// LessThan compares two instances of this property with an arbitrary but stable +// comparison. Applications should not use this because it is only meant to +// help alternative implementations to go-fed to be able to normalize +// nonfunctional properties. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) LessThan(o vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) bool { + // LessThan comparison for if either or both are IRIs. + if this.IsIRI() && o.IsIRI() { + return this.iri.String() < o.GetIRI().String() + } else if this.IsIRI() { + // IRIs are always less than other values, none, or unknowns + return true + } else if o.IsIRI() { + // This other, none, or unknown value is always greater than IRIs + return false + } + // LessThan comparison for the single value or unknown value. + if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Both are unknowns. + return false + } else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() { + // Values are always greater than unknown values. + return false + } else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() { + // Unknowns are always less than known values. + return true + } else { + // Actual comparison. + return boolean.LessBoolean(this.Get(), o.Get()) + } +} + +// Name returns the name of this property: "hidesToPublicFromUnauthedWeb". +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) Name() string { + if len(this.alias) > 0 { + return this.alias + ":" + "hidesToPublicFromUnauthedWeb" + } else { + return "hidesToPublicFromUnauthedWeb" + } +} + +// Serialize converts this into an interface representation suitable for +// marshalling into a text or binary format. Applications should not need this +// function as most typical use cases serialize types instead of individual +// properties. It is exposed for alternatives to go-fed implementations to use. +func (this GoToSocialHidesToPublicFromUnauthedWebProperty) Serialize() (interface{}, error) { + if this.IsXMLSchemaBoolean() { + return boolean.SerializeBoolean(this.Get()) + } else if this.IsIRI() { + return this.iri.String(), nil + } + return this.unknown, nil +} + +// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will +// return true. +func (this *GoToSocialHidesToPublicFromUnauthedWebProperty) Set(v bool) { + this.Clear() + this.xmlschemaBooleanMember = v + this.hasBooleanMember = true +} + +// SetIRI sets the value of this property. Calling IsIRI afterwards will return +// true. +func (this *GoToSocialHidesToPublicFromUnauthedWebProperty) SetIRI(v *url.URL) { + this.Clear() + this.iri = v +} diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_doc.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_doc.go new file mode 100644 index 000000000..87cd993f9 --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_doc.go @@ -0,0 +1,17 @@ +// Code generated by astool. DO NOT EDIT. + +// Package typeemojireact contains the implementation for the EmojiReact 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 typeemojireact diff --git a/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_pkg.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_pkg.go new file mode 100644 index 000000000..c7c5581fd --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_pkg.go @@ -0,0 +1,199 @@ +// Code generated by astool. DO NOT EDIT. + +package typeemojireact + +import vocab "code.superseriousbusiness.org/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 { + // DeserializeActorPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsActorProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeActorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActorProperty, error) + // 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) + // DeserializeInstrumentPropertyActivityStreams returns the + // deserialization method for the "ActivityStreamsInstrumentProperty" + // non-functional property in the vocabulary "ActivityStreams" + DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, 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) + // DeserializeOriginPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsOriginProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeOriginPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOriginProperty, 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) + // DeserializeResultPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsResultProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, 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) + // DeserializeTargetPropertyActivityStreams returns the deserialization + // method for the "ActivityStreamsTargetProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeTargetPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTargetProperty, 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/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_type_litepub_emojireact.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_type_litepub_emojireact.go new file mode 100644 index 000000000..6c5e2f08a --- /dev/null +++ b/vendor/code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact/gen_type_litepub_emojireact.go @@ -0,0 +1,1872 @@ +// Code generated by astool. DO NOT EDIT. + +package typeemojireact + +import ( + vocab "code.superseriousbusiness.org/activity/streams/vocab" + "fmt" + "strings" +) + +// { +// "actor": "https://example.org/users/alice", +// "content": ":Kappa:", +// "id": "https://example.org/activities/65379d47-b7aa-4ef6-8e4f-41149dda1d2c", +// "object": "https://example.org/objects/57caeb99-424c-4692-b74f-0a6682050932", +// "tag": [ +// { +// "icon": { +// "mediaType": "image/png", +// "type": "Image", +// "url": "https://example.com/files/kappa.png" +// }, +// "id": "https://example.com/emoji/123", +// "name": ":Kappa:", +// "type": "Emoji" +// } +// ], +// "to": [ +// "https://example.org/users/alice/followers", +// "https://example.org/users/bob" +// ], +// "type": "EmojiReact" +// } +type LitePubEmojiReact struct { + ActivityStreamsActor vocab.ActivityStreamsActorProperty + 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 + ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOrigin vocab.ActivityStreamsOriginProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsResult vocab.ActivityStreamsResultProperty + ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ActivityStreamsTarget vocab.ActivityStreamsTargetProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} +} + +// DeserializeEmojiReact creates a EmojiReact from a map representation that has +// been unmarshalled from a text or binary format. +func DeserializeEmojiReact(m map[string]interface{}, aliasMap map[string]string) (*LitePubEmojiReact, error) { + alias := "" + aliasPrefix := "" + if a, ok := aliasMap["http://litepub.social/ns"]; ok { + alias = a + aliasPrefix = a + ":" + } + this := &LitePubEmojiReact{ + 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 != "EmojiReact" { + return nil, fmt.Errorf("\"type\" property is not of %q type: %s", "EmojiReact", 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) == "EmojiReact" { + found = true + break + } + } + if !found { + return nil, fmt.Errorf("could not find a \"type\" property of value %q", "EmojiReact") + } + // 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.DeserializeActorPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsActor = p + } + 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.DeserializeInstrumentPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsInstrument = 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.DeserializeOriginPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsOrigin = 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.DeserializeResultPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsResult = 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.DeserializeTargetPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsTarget = 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 == "actor" { + continue + } else 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 == "instrument" { + 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 == "origin" { + continue + } else if k == "preview" { + continue + } else if k == "published" { + continue + } else if k == "replies" { + continue + } else if k == "result" { + 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 == "target" { + 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 +} + +// EmojiReactIsDisjointWith returns true if the other provided type is disjoint +// with the EmojiReact type. +func EmojiReactIsDisjointWith(other vocab.Type) bool { + disjointWith := []string{"Hashtag", "Link", "Mention"} + for _, disjoint := range disjointWith { + if disjoint == other.GetTypeName() { + return true + } + } + return false +} + +// EmojiReactIsExtendedBy returns true if the other provided type extends from the +// EmojiReact type. Note that it returns false if the types are the same; see +// the "IsOrExtendsEmojiReact" variant instead. +func EmojiReactIsExtendedBy(other vocab.Type) bool { + // Shortcut implementation: is not extended by anything. + return false +} + +// IsOrExtendsEmojiReact returns true if the other provided type is the EmojiReact +// type or extends from the EmojiReact type. +func IsOrExtendsEmojiReact(other vocab.Type) bool { + if other.GetTypeName() == "EmojiReact" { + return true + } + return EmojiReactIsExtendedBy(other) +} + +// LitePubEmojiReactExtends returns true if the EmojiReact type extends from the +// other type. +func LitePubEmojiReactExtends(other vocab.Type) bool { + extensions := []string{"Activity", "Object"} + for _, ext := range extensions { + if ext == other.GetTypeName() { + return true + } + } + return false +} + +// NewLitePubEmojiReact creates a new EmojiReact type +func NewLitePubEmojiReact() *LitePubEmojiReact { + typeProp := typePropertyConstructor() + typeProp.AppendXMLSchemaString("EmojiReact") + return &LitePubEmojiReact{ + JSONLDType: typeProp, + alias: "", + unknown: make(map[string]interface{}), + } +} + +// GetActivityStreamsActor returns the "actor" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsActor() vocab.ActivityStreamsActorProperty { + return this.ActivityStreamsActor +} + +// GetActivityStreamsAltitude returns the "altitude" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty { + return this.ActivityStreamsAltitude +} + +// GetActivityStreamsAttachment returns the "attachment" property if it exists, +// and nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty { + return this.ActivityStreamsAttachment +} + +// GetActivityStreamsAttributedTo returns the "attributedTo" property if it +// exists, and nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty { + return this.ActivityStreamsAttributedTo +} + +// GetActivityStreamsAudience returns the "audience" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty { + return this.ActivityStreamsAudience +} + +// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty { + return this.ActivityStreamsBcc +} + +// GetActivityStreamsBto returns the "bto" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty { + return this.ActivityStreamsBto +} + +// GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty { + return this.ActivityStreamsCc +} + +// GetActivityStreamsContent returns the "content" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty { + return this.ActivityStreamsContent +} + +// GetActivityStreamsContext returns the "context" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty { + return this.ActivityStreamsContext +} + +// GetActivityStreamsDuration returns the "duration" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty { + return this.ActivityStreamsDuration +} + +// GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty { + return this.ActivityStreamsEndTime +} + +// GetActivityStreamsGenerator returns the "generator" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty { + return this.ActivityStreamsGenerator +} + +// GetActivityStreamsIcon returns the "icon" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty { + return this.ActivityStreamsIcon +} + +// GetActivityStreamsImage returns the "image" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty { + return this.ActivityStreamsImage +} + +// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty { + return this.ActivityStreamsInReplyTo +} + +// GetActivityStreamsInstrument returns the "instrument" property if it exists, +// and nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsInstrument() vocab.ActivityStreamsInstrumentProperty { + return this.ActivityStreamsInstrument +} + +// GetActivityStreamsLikes returns the "likes" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty { + return this.ActivityStreamsLikes +} + +// GetActivityStreamsLocation returns the "location" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty { + return this.ActivityStreamsLocation +} + +// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { + return this.ActivityStreamsMediaType +} + +// GetActivityStreamsName returns the "name" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsName() vocab.ActivityStreamsNameProperty { + return this.ActivityStreamsName +} + +// GetActivityStreamsObject returns the "object" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty { + return this.ActivityStreamsObject +} + +// GetActivityStreamsOrigin returns the "origin" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsOrigin() vocab.ActivityStreamsOriginProperty { + return this.ActivityStreamsOrigin +} + +// GetActivityStreamsPreview returns the "preview" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty { + return this.ActivityStreamsPreview +} + +// GetActivityStreamsPublished returns the "published" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty { + return this.ActivityStreamsPublished +} + +// GetActivityStreamsReplies returns the "replies" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty { + return this.ActivityStreamsReplies +} + +// GetActivityStreamsResult returns the "result" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsResult() vocab.ActivityStreamsResultProperty { + return this.ActivityStreamsResult +} + +// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty { + return this.ActivityStreamsSensitive +} + +// GetActivityStreamsShares returns the "shares" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty { + return this.ActivityStreamsShares +} + +// GetActivityStreamsSource returns the "source" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty { + return this.ActivityStreamsSource +} + +// GetActivityStreamsStartTime returns the "startTime" property if it exists, and +// nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty { + return this.ActivityStreamsStartTime +} + +// GetActivityStreamsSummary returns the "summary" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty { + return this.ActivityStreamsSummary +} + +// GetActivityStreamsTag returns the "tag" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty { + return this.ActivityStreamsTag +} + +// GetActivityStreamsTarget returns the "target" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsTarget() vocab.ActivityStreamsTargetProperty { + return this.ActivityStreamsTarget +} + +// GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise. +func (this LitePubEmojiReact) GetActivityStreamsTo() vocab.ActivityStreamsToProperty { + return this.ActivityStreamsTo +} + +// GetActivityStreamsUpdated returns the "updated" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty { + return this.ActivityStreamsUpdated +} + +// GetActivityStreamsUrl returns the "url" property if it exists, and nil +// otherwise. +func (this LitePubEmojiReact) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty { + return this.ActivityStreamsUrl +} + +// GetJSONLDId returns the "id" property if it exists, and nil otherwise. +func (this LitePubEmojiReact) GetJSONLDId() vocab.JSONLDIdProperty { + return this.JSONLDId +} + +// GetJSONLDType returns the "type" property if it exists, and nil otherwise. +func (this LitePubEmojiReact) GetJSONLDType() vocab.JSONLDTypeProperty { + return this.JSONLDType +} + +// GetTypeName returns the name of this type. +func (this LitePubEmojiReact) GetTypeName() string { + return "EmojiReact" +} + +// GetUnknownProperties returns the unknown properties for the EmojiReact 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 LitePubEmojiReact) GetUnknownProperties() map[string]interface{} { + return this.unknown +} + +// IsExtending returns true if the EmojiReact type extends from the other type. +func (this LitePubEmojiReact) IsExtending(other vocab.Type) bool { + return LitePubEmojiReactExtends(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 LitePubEmojiReact) JSONLDContext() map[string]string { + m := map[string]string{"http://litepub.social/ns": this.alias} + m = this.helperJSONLDContext(this.ActivityStreamsActor, m) + 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.ActivityStreamsInstrument, 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.ActivityStreamsOrigin, m) + m = this.helperJSONLDContext(this.ActivityStreamsPreview, m) + m = this.helperJSONLDContext(this.ActivityStreamsPublished, m) + m = this.helperJSONLDContext(this.ActivityStreamsReplies, m) + m = this.helperJSONLDContext(this.ActivityStreamsResult, 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.ActivityStreamsTarget, 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 EmojiReact is lesser, with an arbitrary but stable +// determination. +func (this LitePubEmojiReact) LessThan(o vocab.LitePubEmojiReact) bool { + // Begin: Compare known properties + // Compare property "actor" + if lhs, rhs := this.ActivityStreamsActor, o.GetActivityStreamsActor(); 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 "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 "instrument" + if lhs, rhs := this.ActivityStreamsInstrument, o.GetActivityStreamsInstrument(); 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 "origin" + if lhs, rhs := this.ActivityStreamsOrigin, o.GetActivityStreamsOrigin(); 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 "result" + if lhs, rhs := this.ActivityStreamsResult, o.GetActivityStreamsResult(); 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 "target" + if lhs, rhs := this.ActivityStreamsTarget, o.GetActivityStreamsTarget(); 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 LitePubEmojiReact) Serialize() (map[string]interface{}, error) { + m := make(map[string]interface{}) + typeName := "EmojiReact" + if len(this.alias) > 0 { + typeName = this.alias + ":" + "EmojiReact" + } + m["type"] = typeName + // Begin: Serialize known properties + // Maybe serialize property "actor" + if this.ActivityStreamsActor != nil { + if i, err := this.ActivityStreamsActor.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsActor.Name()] = i + } + } + // 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 "instrument" + if this.ActivityStreamsInstrument != nil { + if i, err := this.ActivityStreamsInstrument.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsInstrument.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 "origin" + if this.ActivityStreamsOrigin != nil { + if i, err := this.ActivityStreamsOrigin.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsOrigin.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 "result" + if this.ActivityStreamsResult != nil { + if i, err := this.ActivityStreamsResult.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsResult.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 "target" + if this.ActivityStreamsTarget != nil { + if i, err := this.ActivityStreamsTarget.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsTarget.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 +} + +// SetActivityStreamsActor sets the "actor" property. +func (this *LitePubEmojiReact) SetActivityStreamsActor(i vocab.ActivityStreamsActorProperty) { + this.ActivityStreamsActor = i +} + +// SetActivityStreamsAltitude sets the "altitude" property. +func (this *LitePubEmojiReact) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) { + this.ActivityStreamsAltitude = i +} + +// SetActivityStreamsAttachment sets the "attachment" property. +func (this *LitePubEmojiReact) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty) { + this.ActivityStreamsAttachment = i +} + +// SetActivityStreamsAttributedTo sets the "attributedTo" property. +func (this *LitePubEmojiReact) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty) { + this.ActivityStreamsAttributedTo = i +} + +// SetActivityStreamsAudience sets the "audience" property. +func (this *LitePubEmojiReact) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty) { + this.ActivityStreamsAudience = i +} + +// SetActivityStreamsBcc sets the "bcc" property. +func (this *LitePubEmojiReact) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty) { + this.ActivityStreamsBcc = i +} + +// SetActivityStreamsBto sets the "bto" property. +func (this *LitePubEmojiReact) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty) { + this.ActivityStreamsBto = i +} + +// SetActivityStreamsCc sets the "cc" property. +func (this *LitePubEmojiReact) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty) { + this.ActivityStreamsCc = i +} + +// SetActivityStreamsContent sets the "content" property. +func (this *LitePubEmojiReact) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty) { + this.ActivityStreamsContent = i +} + +// SetActivityStreamsContext sets the "context" property. +func (this *LitePubEmojiReact) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty) { + this.ActivityStreamsContext = i +} + +// SetActivityStreamsDuration sets the "duration" property. +func (this *LitePubEmojiReact) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty) { + this.ActivityStreamsDuration = i +} + +// SetActivityStreamsEndTime sets the "endTime" property. +func (this *LitePubEmojiReact) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty) { + this.ActivityStreamsEndTime = i +} + +// SetActivityStreamsGenerator sets the "generator" property. +func (this *LitePubEmojiReact) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty) { + this.ActivityStreamsGenerator = i +} + +// SetActivityStreamsIcon sets the "icon" property. +func (this *LitePubEmojiReact) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty) { + this.ActivityStreamsIcon = i +} + +// SetActivityStreamsImage sets the "image" property. +func (this *LitePubEmojiReact) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty) { + this.ActivityStreamsImage = i +} + +// SetActivityStreamsInReplyTo sets the "inReplyTo" property. +func (this *LitePubEmojiReact) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty) { + this.ActivityStreamsInReplyTo = i +} + +// SetActivityStreamsInstrument sets the "instrument" property. +func (this *LitePubEmojiReact) SetActivityStreamsInstrument(i vocab.ActivityStreamsInstrumentProperty) { + this.ActivityStreamsInstrument = i +} + +// SetActivityStreamsLikes sets the "likes" property. +func (this *LitePubEmojiReact) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty) { + this.ActivityStreamsLikes = i +} + +// SetActivityStreamsLocation sets the "location" property. +func (this *LitePubEmojiReact) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty) { + this.ActivityStreamsLocation = i +} + +// SetActivityStreamsMediaType sets the "mediaType" property. +func (this *LitePubEmojiReact) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { + this.ActivityStreamsMediaType = i +} + +// SetActivityStreamsName sets the "name" property. +func (this *LitePubEmojiReact) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) { + this.ActivityStreamsName = i +} + +// SetActivityStreamsObject sets the "object" property. +func (this *LitePubEmojiReact) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty) { + this.ActivityStreamsObject = i +} + +// SetActivityStreamsOrigin sets the "origin" property. +func (this *LitePubEmojiReact) SetActivityStreamsOrigin(i vocab.ActivityStreamsOriginProperty) { + this.ActivityStreamsOrigin = i +} + +// SetActivityStreamsPreview sets the "preview" property. +func (this *LitePubEmojiReact) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty) { + this.ActivityStreamsPreview = i +} + +// SetActivityStreamsPublished sets the "published" property. +func (this *LitePubEmojiReact) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty) { + this.ActivityStreamsPublished = i +} + +// SetActivityStreamsReplies sets the "replies" property. +func (this *LitePubEmojiReact) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty) { + this.ActivityStreamsReplies = i +} + +// SetActivityStreamsResult sets the "result" property. +func (this *LitePubEmojiReact) SetActivityStreamsResult(i vocab.ActivityStreamsResultProperty) { + this.ActivityStreamsResult = i +} + +// SetActivityStreamsSensitive sets the "sensitive" property. +func (this *LitePubEmojiReact) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) { + this.ActivityStreamsSensitive = i +} + +// SetActivityStreamsShares sets the "shares" property. +func (this *LitePubEmojiReact) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) { + this.ActivityStreamsShares = i +} + +// SetActivityStreamsSource sets the "source" property. +func (this *LitePubEmojiReact) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty) { + this.ActivityStreamsSource = i +} + +// SetActivityStreamsStartTime sets the "startTime" property. +func (this *LitePubEmojiReact) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty) { + this.ActivityStreamsStartTime = i +} + +// SetActivityStreamsSummary sets the "summary" property. +func (this *LitePubEmojiReact) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty) { + this.ActivityStreamsSummary = i +} + +// SetActivityStreamsTag sets the "tag" property. +func (this *LitePubEmojiReact) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty) { + this.ActivityStreamsTag = i +} + +// SetActivityStreamsTarget sets the "target" property. +func (this *LitePubEmojiReact) SetActivityStreamsTarget(i vocab.ActivityStreamsTargetProperty) { + this.ActivityStreamsTarget = i +} + +// SetActivityStreamsTo sets the "to" property. +func (this *LitePubEmojiReact) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty) { + this.ActivityStreamsTo = i +} + +// SetActivityStreamsUpdated sets the "updated" property. +func (this *LitePubEmojiReact) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty) { + this.ActivityStreamsUpdated = i +} + +// SetActivityStreamsUrl sets the "url" property. +func (this *LitePubEmojiReact) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty) { + this.ActivityStreamsUrl = i +} + +// SetJSONLDId sets the "id" property. +func (this *LitePubEmojiReact) SetJSONLDId(i vocab.JSONLDIdProperty) { + this.JSONLDId = i +} + +// SetJSONLDType sets the "type" property. +func (this *LitePubEmojiReact) SetJSONLDType(i vocab.JSONLDTypeProperty) { + this.JSONLDType = i +} + +// VocabularyURI returns the vocabulary's URI as a string. +func (this LitePubEmojiReact) VocabularyURI() string { + return "http://litepub.social/ns" +} + +// helperJSONLDContext obtains the context uris and their aliases from a property, +// if it is not nil. +func (this LitePubEmojiReact) 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/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go b/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go index 80221b0d4..2582cd484 100644 --- a/vendor/code.superseriousbusiness.org/activity/streams/impl/toot/type_hashtag/gen_type_toot_hashtag.go +++ b/vendor/code.superseriousbusiness.org/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", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "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", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Album", "Announce", "AnnounceApproval", "AnnounceAuthorization", "AnnounceRequest", "Application", "Arrive", "Article", "Artist", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "EmojiReact", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Library", "Like", "LikeApproval", "LikeAuthorization", "LikeRequest", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "ReplyAuthorization", "ReplyRequest", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Track", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true |
