diff options
Diffstat (limited to 'vendor/code.superseriousbusiness.org/activity/streams/impl/activitystreams/property_items')
2 files changed, 204 insertions, 95 deletions
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. |
