diff options
| author | 2025-02-19 18:09:54 +0100 | |
|---|---|---|
| committer | 2025-02-19 18:09:54 +0100 | |
| commit | 96716e4f43341beb3431a7caad10d48e6ca844ae (patch) | |
| tree | 49e0771a80c5ecdf2cfc42969036fa6044382209 /vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams | |
| parent | adds more code comments and some small code formatting tweaks (#3799) (diff) | |
| download | gotosocial-96716e4f43341beb3431a7caad10d48e6ca844ae.tar.xz | |
[feature] Forward-compatibility with Approval objects (#3807)
* vendor
* [feature] Forward-compatibility with Approval objects
* vendor the thing
* fix leetle bug
* lil syntax tweak for beloved kimb
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams')
61 files changed, 11852 insertions, 2827 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go index 6e5d62e32..92880d826 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go index a90953fc1..edd9ed13d 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go @@ -20,6 +20,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsActorPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsActorPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsActorPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsActorPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsActorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsActorPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsActorPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsActorPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsActorPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsActorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsActorProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "actor". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "actor". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "actor". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsActorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "actor" func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsActorProperty) InsertActivityStreamsView(idx int, v v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "actor". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "actor". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsActorProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "actor". Invalidates all iterators. +func (this *ActivityStreamsActorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsActorPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "actor". func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsActorPropertyIterator{{ @@ -6529,6 +6808,45 @@ func (this *ActivityStreamsActorProperty) SetActivityStreamsView(idx int, v voca } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "actor". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsActorProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsActorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "actor". // Panics if the index is out of bounds. func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go index b9d35ab01..5c30350de 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go index 2db157c2a..02f7718b4 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go @@ -20,6 +20,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsAnyOfPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAnyOfPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAnyOfPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAnyOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAnyOfPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAnyOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsAnyOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "anyOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "anyOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "anyOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAnyOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "anyOf" func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsAnyOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "anyOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "anyOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsAnyOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "anyOf". Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "anyOf". func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{ @@ -6529,6 +6808,45 @@ func (this *ActivityStreamsAnyOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "anyOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAnyOfProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "anyOf". // Panics if the index is out of bounds. func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go index 6d6692266..bebfcbc2e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go index ad907f08f..1bad67530 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go @@ -20,6 +20,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsAttachmentPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttachmentPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttachmentPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAttachmentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAttachmentPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAttachmentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsAttachmentProperty) AppendActivityStreamsView(v vocab }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "attachment". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "attachment". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttachmentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attachment" func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) { @@ -4543,6 +4717,57 @@ func (this *ActivityStreamsAttachmentProperty) InsertActivityStreamsView(idx int } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "attachment". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "attachment". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4714,210 +4939,222 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5718,6 +5955,48 @@ func (this *ActivityStreamsAttachmentProperty) PrependActivityStreamsView(v voca } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "attachment". Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attachment". func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) { @@ -6542,6 +6821,45 @@ func (this *ActivityStreamsAttachmentProperty) SetActivityStreamsView(idx int, v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "attachment". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttachmentProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attachment". Panics if the index is out of bounds. func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go index 0c287aa3c..8c7704318 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go index 90d6c37b4..a424d6e02 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go @@ -20,6 +20,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsAttributedToPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAttributedToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAttributedToPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAttributedToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAttributedToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAttributedToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3558,6 +3696,42 @@ func (this *ActivityStreamsAttributedToProperty) AppendActivityStreamsView(v voc }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "attributedTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "attributedTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAttributedToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "attributedTo" func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) { @@ -4580,6 +4754,57 @@ func (this *ActivityStreamsAttributedToProperty) InsertActivityStreamsView(idx i } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "attributedTo". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "attributedTo". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4751,210 +4976,222 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5756,6 +5993,48 @@ func (this *ActivityStreamsAttributedToProperty) PrependActivityStreamsView(v vo } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "attributedTo". Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "attributedTo". func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) { @@ -6580,6 +6859,45 @@ func (this *ActivityStreamsAttributedToProperty) SetActivityStreamsView(idx int, } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "attributedTo". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsAttributedToProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "attributedTo". Panics if the index is out of bounds. func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go index ea21de001..a6f746915 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go index 5513ef5bc..205ed5454 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go @@ -20,6 +20,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsAudiencePropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsAudiencePropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsAudiencePropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsAudiencePropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsAudiencePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsAudiencePropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsAudiencePropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsAudiencePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsAudienceProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "audience". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "audience". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "audience". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsAudienceProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "audience" func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsAudienceProperty) InsertActivityStreamsView(idx int, } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "audience". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "audience". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsAudienceProperty) PrependActivityStreamsView(v vocab. } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "audience". Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "audience". func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsAudienceProperty) SetActivityStreamsView(idx int, v v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "audience". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsAudienceProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "audience". Panics if the index is out of bounds. func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go index 53edf0919..106cd8d4f 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go index 483cf8888..3781758cf 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go @@ -20,6 +20,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsBccPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -140,6 +143,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsApplicationMember: v, @@ -290,6 +299,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsListenMember: v, @@ -398,6 +413,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBccPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBccPropertyIterator{ activitystreamsServiceMember: v, @@ -839,6 +860,27 @@ func (this ActivityStreamsBccPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsBccPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL { @@ -892,6 +934,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -967,6 +1012,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1021,6 +1069,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1060,6 +1111,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1085,6 +1137,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1103,6 +1156,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1498,6 +1552,27 @@ func (this ActivityStreamsBccPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsBccPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBccPropertyIterator) IsIRI() bool { @@ -1549,6 +1624,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1599,6 +1676,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1635,6 +1714,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1687,162 +1768,171 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1872,6 +1962,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1922,6 +2014,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1958,6 +2052,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2387,6 +2483,27 @@ func (this *ActivityStreamsBccPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsBccPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2448,6 +2565,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2548,6 +2669,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2620,6 +2745,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2669,6 +2798,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2694,6 +2824,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2712,6 +2843,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2742,6 +2874,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2792,6 +2926,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2828,6 +2964,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3511,6 +3649,41 @@ func (this *ActivityStreamsBccProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "bcc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "bcc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "bcc". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsBccProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bcc" func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{ @@ -4528,6 +4701,57 @@ func (this *ActivityStreamsBccProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "bcc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bcc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4699,210 +4923,222 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5703,6 +5939,48 @@ func (this *ActivityStreamsBccProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "bcc". Invalidates all iterators. +func (this *ActivityStreamsBccProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsBccPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bcc". func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBccPropertyIterator{{ @@ -6526,6 +6804,45 @@ func (this *ActivityStreamsBccProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "bcc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBccProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBccPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bcc". // Panics if the index is out of bounds. func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go index 10335c308..7ace4f2ec 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go index fe6655df0..4112b8b8b 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go @@ -20,6 +20,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsBtoPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -140,6 +143,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsApplicationMember: v, @@ -290,6 +299,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsListenMember: v, @@ -398,6 +413,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsBtoPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsBtoPropertyIterator{ activitystreamsServiceMember: v, @@ -839,6 +860,27 @@ func (this ActivityStreamsBtoPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsBtoPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL { @@ -892,6 +934,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -967,6 +1012,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1021,6 +1069,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1060,6 +1111,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1085,6 +1137,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1103,6 +1156,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1498,6 +1552,27 @@ func (this ActivityStreamsBtoPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsBtoPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool { @@ -1549,6 +1624,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1599,6 +1676,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1635,6 +1714,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1687,162 +1768,171 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1872,6 +1962,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1922,6 +2014,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1958,6 +2052,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2387,6 +2483,27 @@ func (this *ActivityStreamsBtoPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsBtoPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2448,6 +2565,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2548,6 +2669,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2620,6 +2745,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2669,6 +2798,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2694,6 +2824,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2712,6 +2843,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2742,6 +2874,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2792,6 +2926,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2828,6 +2964,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3511,6 +3649,41 @@ func (this *ActivityStreamsBtoProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "bto". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "bto". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "bto". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsBtoProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "bto" func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{ @@ -4528,6 +4701,57 @@ func (this *ActivityStreamsBtoProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "bto". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "bto". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4699,210 +4923,222 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5703,6 +5939,48 @@ func (this *ActivityStreamsBtoProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "bto". Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "bto". func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsBtoPropertyIterator{{ @@ -6526,6 +6804,45 @@ func (this *ActivityStreamsBtoProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "bto". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsBtoProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "bto". // Panics if the index is out of bounds. func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go index d53422a00..bd855cf50 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go index 0b1801139..2e99468ee 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go @@ -20,6 +20,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsCcPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -140,6 +143,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsApplicationMember: v, @@ -290,6 +299,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsListenMember: v, @@ -398,6 +413,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsCcPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsCcPropertyIterator{ activitystreamsServiceMember: v, @@ -839,6 +860,27 @@ func (this ActivityStreamsCcPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsCcPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL { @@ -892,6 +934,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -967,6 +1012,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1021,6 +1069,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1060,6 +1111,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1085,6 +1137,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1103,6 +1156,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1498,6 +1552,27 @@ func (this ActivityStreamsCcPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsCcPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsCcPropertyIterator) IsIRI() bool { @@ -1549,6 +1624,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1599,6 +1676,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1635,6 +1714,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1687,162 +1768,171 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1872,6 +1962,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1922,6 +2014,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1958,6 +2052,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2387,6 +2483,27 @@ func (this *ActivityStreamsCcPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsCcPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2448,6 +2565,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2548,6 +2669,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2620,6 +2745,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2669,6 +2798,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2694,6 +2824,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2712,6 +2843,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2742,6 +2874,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2792,6 +2926,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2828,6 +2964,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3511,6 +3649,41 @@ func (this *ActivityStreamsCcProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "cc". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "cc". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "cc". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsCcProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "cc" func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{ @@ -4528,6 +4701,57 @@ func (this *ActivityStreamsCcProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "cc". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "cc". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4699,210 +4923,222 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5703,6 +5939,48 @@ func (this *ActivityStreamsCcProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "cc". Invalidates all iterators. +func (this *ActivityStreamsCcProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsCcPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "cc". func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsCcPropertyIterator{{ @@ -6526,6 +6804,45 @@ func (this *ActivityStreamsCcProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "cc". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsCcProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsCcPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "cc". // Panics if the index is out of bounds. func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go index 3bc070d5e..2987eeef3 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go index b0d9c0bef..d54f9aeb1 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go @@ -27,6 +27,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -52,6 +53,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -70,6 +72,7 @@ type ActivityStreamsClosedPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -148,6 +151,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsApplicationMember: v, @@ -298,6 +307,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsListenMember: v, @@ -406,6 +421,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsClosedPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsClosedPropertyIterator{ activitystreamsServiceMember: v, @@ -862,6 +883,27 @@ func (this ActivityStreamsClosedPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsClosedPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL { @@ -915,6 +957,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -990,6 +1035,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1044,6 +1092,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1098,6 +1149,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1123,6 +1175,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1141,6 +1194,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1536,6 +1590,27 @@ func (this ActivityStreamsClosedPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsClosedPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool { @@ -1601,6 +1676,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1651,6 +1728,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1687,6 +1766,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1745,162 +1826,171 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 7 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 8 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 9 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 10 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 11 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 12 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 13 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 14 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 15 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 16 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 17 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 18 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 19 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 20 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 21 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 22 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 23 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 24 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 25 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 26 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 27 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 28 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 29 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 30 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 31 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 32 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 33 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 34 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 35 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 36 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 37 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 38 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 39 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 40 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 41 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 42 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 43 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 44 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 45 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 46 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 47 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 48 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 49 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 50 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 51 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 52 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 53 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 54 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 55 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 56 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 57 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 58 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 59 } + if this.IsActivityStreamsUpdate() { + return 60 + } + if this.IsActivityStreamsVideo() { + return 61 + } + if this.IsActivityStreamsView() { + return 62 + } if this.IsIRI() { return -2 } @@ -1934,6 +2024,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1984,6 +2076,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2020,6 +2114,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2449,6 +2545,27 @@ func (this *ActivityStreamsClosedPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsClosedPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2510,6 +2627,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2610,6 +2731,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2682,6 +2807,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2749,6 +2878,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2774,6 +2904,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2792,6 +2923,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2826,6 +2958,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2876,6 +3010,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2912,6 +3048,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3596,6 +3734,42 @@ func (this *ActivityStreamsClosedProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "closed". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "closed". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "closed". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsClosedProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "closed" func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{ @@ -4638,6 +4812,57 @@ func (this *ActivityStreamsClosedProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "closed". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "closed". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4853,210 +5078,222 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 8 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 34 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 53 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 58 { + } else if idx1 == 61 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 59 { + } else if idx1 == 62 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5857,6 +6094,48 @@ func (this *ActivityStreamsClosedProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "closed". Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsClosedPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "closed". func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) { @@ -6711,6 +6990,45 @@ func (this *ActivityStreamsClosedProperty) SetActivityStreamsView(idx int, v voc } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "closed". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsClosedProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "closed". Panics if the index is out of bounds. func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go index 485c1e69c..a21e07fcd 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go index 10b1ca935..db6e61a52 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go @@ -20,6 +20,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsContextPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsContextPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsContextPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsContextPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsContextPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsContextPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsContextPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsContextPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsContextPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsContextPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsContextProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "context". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "context". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "context". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsContextProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "context" func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsContextProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "context". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "context". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsContextProperty) PrependActivityStreamsView(v vocab.A } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "context". Invalidates all iterators. +func (this *ActivityStreamsContextProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsContextPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "context". func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsContextProperty) SetActivityStreamsView(idx int, v vo } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "context". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsContextProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsContextPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "context". Panics if the index is out of bounds. func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go index bed40ca0e..48047d52f 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -120,6 +124,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -193,6 +201,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go index 3d6633cc3..9e1ec3d04 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go @@ -19,6 +19,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -43,6 +44,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -60,6 +62,7 @@ type ActivityStreamsDescribesProperty struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -132,6 +135,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsApplicationMember: v, @@ -276,6 +285,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsListenMember: v, @@ -378,6 +393,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string] alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsDescribesProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsDescribesProperty{ activitystreamsServiceMember: v, @@ -456,6 +477,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -480,6 +502,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -497,6 +520,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -874,6 +898,27 @@ func (this ActivityStreamsDescribesProperty) GetActivityStreamsView() vocab.Acti return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsDescribesProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL { @@ -918,6 +963,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -990,6 +1038,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1041,6 +1092,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1079,6 +1133,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1103,6 +1158,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1120,6 +1176,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1501,6 +1558,27 @@ func (this ActivityStreamsDescribesProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsDescribesProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsDescribesProperty) IsIRI() bool { @@ -1543,6 +1621,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1591,6 +1671,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1625,6 +1707,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1674,156 +1758,165 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 4 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 5 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 6 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 7 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 8 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 9 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 11 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 12 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 13 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 14 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 15 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 16 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 17 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 18 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 19 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 20 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 21 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 22 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 23 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 24 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 25 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 26 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 27 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 28 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 29 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 30 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 31 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 32 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 33 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 34 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 35 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 36 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 37 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 38 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 39 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 40 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 41 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 43 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 44 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 45 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 46 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 47 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 48 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 49 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 50 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 51 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 52 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 53 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 54 } + if this.IsActivityStreamsUpdate() { + return 55 + } + if this.IsActivityStreamsVideo() { + return 56 + } + if this.IsActivityStreamsView() { + return 57 + } if this.IsIRI() { return -2 } @@ -1851,6 +1944,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1899,6 +1994,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -1933,6 +2030,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -1981,6 +2080,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2029,6 +2130,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -2063,6 +2166,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2451,6 +2556,27 @@ func (this *ActivityStreamsDescribesProperty) SetActivityStreamsView(v vocab.Act this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsDescribesProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) { this.Clear() @@ -2501,6 +2627,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2597,6 +2727,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2665,6 +2799,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go index 4850cc0aa..cfb8808bb 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -120,6 +124,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -193,6 +201,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go index dce204fc4..ae9a55058 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go @@ -22,6 +22,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -46,6 +47,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -63,6 +65,7 @@ type ActivityStreamsFormerTypePropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -135,6 +138,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsApplicationMember: v, @@ -279,6 +288,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsListenMember: v, @@ -381,6 +396,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsFormerTypePropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsFormerTypePropertyIterator{ activitystreamsServiceMember: v, @@ -816,6 +837,27 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsFormerTypePropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL { @@ -860,6 +902,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -932,6 +977,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -983,6 +1031,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1028,6 +1079,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1052,6 +1104,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1069,6 +1122,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1450,6 +1504,27 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsFormerTypePropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool { @@ -1499,6 +1574,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1547,6 +1624,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1581,6 +1660,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1633,156 +1714,165 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 23 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 24 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 25 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 26 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 27 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 28 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 29 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 30 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 31 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 32 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 33 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 34 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 35 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 36 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 37 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 38 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 39 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 40 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 41 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 42 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 43 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 44 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 45 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 46 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 47 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 48 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 49 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 50 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 51 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 52 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 53 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 54 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 55 } + if this.IsActivityStreamsUpdate() { + return 56 + } + if this.IsActivityStreamsVideo() { + return 57 + } + if this.IsActivityStreamsView() { + return 58 + } if this.IsIRI() { return -2 } @@ -1812,6 +1902,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1860,6 +1952,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -1894,6 +1988,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2309,6 +2405,27 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsFormerTypePropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2359,6 +2476,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2455,6 +2576,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2523,6 +2648,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2580,6 +2709,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2604,6 +2734,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -2621,6 +2752,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2651,6 +2783,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2699,6 +2833,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -2733,6 +2869,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3403,6 +3541,42 @@ func (this *ActivityStreamsFormerTypeProperty) AppendActivityStreamsView(v vocab }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "formerType". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "formerType". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsFormerTypeProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "formerType" func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) { @@ -4391,6 +4565,57 @@ func (this *ActivityStreamsFormerTypeProperty) InsertActivityStreamsView(idx int } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "formerType". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "formerType". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4563,202 +4788,214 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5531,6 +5768,48 @@ func (this *ActivityStreamsFormerTypeProperty) PrependActivityStreamsView(v voca } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "formerType". Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "formerType". func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) { @@ -6330,6 +6609,45 @@ func (this *ActivityStreamsFormerTypeProperty) SetActivityStreamsView(idx int, v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "formerType". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsFormerTypeProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "formerType". Panics if the index is out of bounds. func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go index b1751ca5f..ecc936472 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go index 694914b3d..dd10ef9de 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go @@ -20,6 +20,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsGeneratorPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsGeneratorPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsGeneratorPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsGeneratorPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsGeneratorPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsGeneratorPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsGeneratorProperty) AppendActivityStreamsView(v vocab. }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "generator". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "generator". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsGeneratorProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "generator" func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsGeneratorProperty) InsertActivityStreamsView(idx int, } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "generator". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "generator". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsGeneratorProperty) PrependActivityStreamsView(v vocab } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "generator". Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "generator". func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsGeneratorProperty) SetActivityStreamsView(idx int, v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "generator". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsGeneratorProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "generator". Panics if the index is out of bounds. func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go index b5db6370c..8de1ae40c 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go index 1c5990643..1d8c666eb 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go @@ -20,6 +20,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsInReplyToPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInReplyToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInReplyToPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetActivityStreamsView() vo return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsInReplyToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsActivityStreamsView() boo return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsInReplyToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string] child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetActivityStreamsView(v v this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsInReplyToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsInReplyToProperty) AppendActivityStreamsView(v vocab. }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "inReplyTo". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "inReplyTo". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInReplyToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "inReplyTo" func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsInReplyToProperty) InsertActivityStreamsView(idx int, } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "inReplyTo". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "inReplyTo". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsInReplyToProperty) PrependActivityStreamsView(v vocab } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "inReplyTo". Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "inReplyTo". func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsInReplyToProperty) SetActivityStreamsView(idx int, v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "inReplyTo". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsInReplyToProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "inReplyTo". Panics if the index is out of bounds. func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go index 5a0c64d26..2cbbfd60b 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go index d81fa8c80..0fd10b633 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go @@ -20,6 +20,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsInstrumentPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsInstrumentPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsInstrumentPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetActivityStreamsView() v return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsInstrumentPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsActivityStreamsView() bo return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsInstrumentPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetActivityStreamsView(v this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsInstrumentPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{}, return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsInstrumentProperty) AppendActivityStreamsView(v vocab }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "instrument". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "instrument". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsInstrumentProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "instrument" func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) { @@ -4543,6 +4717,57 @@ func (this *ActivityStreamsInstrumentProperty) InsertActivityStreamsView(idx int } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "instrument". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "instrument". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4714,210 +4939,222 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5718,6 +5955,48 @@ func (this *ActivityStreamsInstrumentProperty) PrependActivityStreamsView(v voca } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "instrument". Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "instrument". func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) { @@ -6542,6 +6821,45 @@ func (this *ActivityStreamsInstrumentProperty) SetActivityStreamsView(idx int, v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "instrument". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsInstrumentProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "instrument". Panics if the index is out of bounds. func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go index 770f94624..43dbea733 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go index 5969389e0..088db7982 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go @@ -20,6 +20,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsItemsPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsItemsPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsItemsPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsItemsPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsItemsPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsItemsPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsItemsProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "items". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "items". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "items". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "items" func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsItemsProperty) InsertActivityStreamsView(idx int, v v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "items". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "items". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsItemsProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "items". Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "items". func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsItemsPropertyIterator{{ @@ -6529,6 +6808,45 @@ func (this *ActivityStreamsItemsProperty) SetActivityStreamsView(idx int, v voca } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "items". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsItemsProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "items". // Panics if the index is out of bounds. func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go index b5bb8b3b9..aea8eb329 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go index a56119ff5..0584342da 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go @@ -20,6 +20,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsLocationPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsLocationPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsLocationPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsLocationPropertyIterator) GetActivityStreamsView() voc return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsLocationPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsLocationPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsLocationPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsLocationPropertyIterator) SetActivityStreamsView(v vo this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsLocationPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsLocationProperty) AppendActivityStreamsView(v vocab.A }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "location". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "location". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "location". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsLocationProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "location" func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsLocationProperty) InsertActivityStreamsView(idx int, } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "location". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "location". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsLocationProperty) PrependActivityStreamsView(v vocab. } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "location". Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsLocationPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "location". func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsLocationProperty) SetActivityStreamsView(idx int, v v } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "location". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsLocationProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "location". Panics if the index is out of bounds. func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go index 24de805a8..ace40faa5 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go index 03cb585ad..0ffab6e58 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go @@ -20,6 +20,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsObjectPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsObjectPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsObjectPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsObjectPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsObjectPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsObjectPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsObjectPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsObjectPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsObjectPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsObjectProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "object". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "object". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "object". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsObjectProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "object" func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsObjectProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "object". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "object". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsObjectProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "object". Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsObjectPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "object". func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) { @@ -6530,6 +6809,45 @@ func (this *ActivityStreamsObjectProperty) SetActivityStreamsView(idx int, v voc } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "object". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsObjectProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "object". Panics if the index is out of bounds. func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go index c1feafb7a..9648ffdb2 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go index 438d2fc5b..53fe906b9 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go @@ -20,6 +20,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsOneOfPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOneOfPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOneOfPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsOneOfPropertyIterator) GetActivityStreamsView() vocab. return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOneOfPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsOneOfPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOneOfPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetActivityStreamsView(v vocab this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOneOfPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsOneOfProperty) AppendActivityStreamsView(v vocab.Acti }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "oneOf". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "oneOf". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "oneOf". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOneOfProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "oneOf" func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsOneOfProperty) InsertActivityStreamsView(idx int, v v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "oneOf". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "oneOf". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsOneOfProperty) PrependActivityStreamsView(v vocab.Act } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "oneOf". Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "oneOf". func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{ @@ -6529,6 +6808,45 @@ func (this *ActivityStreamsOneOfProperty) SetActivityStreamsView(idx int, v voca } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "oneOf". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOneOfProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "oneOf". // Panics if the index is out of bounds. func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go index e6c16e922..d4e921b26 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go index d15265516..d180d49fb 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go @@ -20,6 +20,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOrderedItemsPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOrderedItemsPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOrderedItemsPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOrderedItemsPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOrderedItemsPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3558,6 +3696,42 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendActivityStreamsView(v voc }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "orderedItems". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "orderedItems". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOrderedItemsProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "orderedItems" func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) { @@ -4580,6 +4754,57 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertActivityStreamsView(idx i } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "orderedItems". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "orderedItems". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4751,210 +4976,222 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5756,6 +5993,48 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependActivityStreamsView(v vo } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "orderedItems". Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "orderedItems". func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) { @@ -6580,6 +6859,45 @@ func (this *ActivityStreamsOrderedItemsProperty) SetActivityStreamsView(idx int, } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "orderedItems". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsOrderedItemsProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "orderedItems". Panics if the index is out of bounds. func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go index 70c65b77d..230b16b2c 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go index ce2b20ca9..279a9a291 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go @@ -20,6 +20,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsOriginPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsOriginPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsOriginPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsOriginPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsOriginPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsOriginPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsOriginPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsOriginPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsOriginPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsOriginProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "origin". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "origin". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "origin". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsOriginProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "origin" func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsOriginProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "origin". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "origin". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsOriginProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "origin". Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsOriginPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "origin". func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) { @@ -6530,6 +6809,45 @@ func (this *ActivityStreamsOriginProperty) SetActivityStreamsView(idx int, v voc } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "origin". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsOriginProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "origin". Panics if the index is out of bounds. func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go index 2cb23bc64..d1bcd0e2b 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go index 7093fa009..a4df197af 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go @@ -20,6 +20,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsPreviewPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsPreviewPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsPreviewPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsPreviewPropertyIterator) GetActivityStreamsView() voca return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsPreviewPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsPreviewPropertyIterator) IsActivityStreamsView() bool return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsPreviewPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetActivityStreamsView(v voc this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsPreviewPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3522,6 +3660,42 @@ func (this *ActivityStreamsPreviewProperty) AppendActivityStreamsView(v vocab.Ac }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "preview". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "preview". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "preview". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsPreviewProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "preview" func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{ @@ -4541,6 +4715,57 @@ func (this *ActivityStreamsPreviewProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "preview". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "preview". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4712,210 +4937,222 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5716,6 +5953,48 @@ func (this *ActivityStreamsPreviewProperty) PrependActivityStreamsView(v vocab.A } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "preview". Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "preview". func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) { @@ -6540,6 +6819,45 @@ func (this *ActivityStreamsPreviewProperty) SetActivityStreamsView(idx int, v vo } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "preview". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsPreviewProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "preview". Panics if the index is out of bounds. func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go index c82ba4ab0..24b496983 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -120,6 +124,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeListenActivityStreams returns the deserialization method for // the "ActivityStreamsListen" non-functional property in the // vocabulary "ActivityStreams" @@ -193,6 +201,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go index 6adecdbfa..18a0bd53e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go @@ -19,6 +19,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -43,6 +44,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMoveMember vocab.ActivityStreamsMove activitystreamsNoteMember vocab.ActivityStreamsNote @@ -60,6 +62,7 @@ type ActivityStreamsRelationshipPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -132,6 +135,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsApplicationMember: v, @@ -276,6 +285,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsListenMember: v, @@ -378,6 +393,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsRelationshipPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsRelationshipPropertyIterator{ activitystreamsServiceMember: v, @@ -805,6 +826,27 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetActivityStreamsView() return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsRelationshipPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL { @@ -849,6 +891,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -921,6 +966,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -972,6 +1020,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1010,6 +1061,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1034,6 +1086,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMove() || this.IsActivityStreamsNote() || @@ -1051,6 +1104,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1432,6 +1486,27 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsActivityStreamsView() return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsRelationshipPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool { @@ -1474,6 +1549,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1522,6 +1599,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMove() { @@ -1556,6 +1635,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1605,156 +1686,165 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 4 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 5 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 6 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 7 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 8 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 9 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 10 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 11 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 12 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 13 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 14 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 15 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 16 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 17 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 18 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 19 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 20 } - if this.IsTootIdentityProof() { + if this.IsActivityStreamsGroup() { return 21 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 22 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 23 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 24 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 25 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 26 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 27 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 28 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 29 } - if this.IsActivityStreamsMove() { + if this.IsGoToSocialLikeApproval() { return 30 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsListen() { return 31 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 32 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 33 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 34 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 35 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 36 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 37 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 38 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 39 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 40 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 41 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 42 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 43 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 44 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 45 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 46 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 47 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 48 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 49 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 50 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 51 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 52 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 53 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 54 } + if this.IsActivityStreamsUpdate() { + return 55 + } + if this.IsActivityStreamsVideo() { + return 56 + } + if this.IsActivityStreamsView() { + return 57 + } if this.IsIRI() { return -2 } @@ -1782,6 +1872,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1830,6 +1922,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMove() { @@ -1864,6 +1958,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2279,6 +2375,27 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetActivityStreamsView( this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsRelationshipPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2329,6 +2446,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2425,6 +2546,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2493,6 +2618,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2541,6 +2670,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2565,6 +2695,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMoveMember = nil this.activitystreamsNoteMember = nil @@ -2582,6 +2713,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2610,6 +2742,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2658,6 +2792,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMove() { @@ -2692,6 +2828,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{} return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3397,6 +3535,42 @@ func (this *ActivityStreamsRelationshipProperty) AppendActivityStreamsView(v voc }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "relationship". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "relationship". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsRelationshipProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property // "relationship" func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) { @@ -4374,6 +4548,57 @@ func (this *ActivityStreamsRelationshipProperty) InsertActivityStreamsView(idx i } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "relationship". Existing elements at that +// index and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property // "relationship". Existing elements at that index and higher are shifted back // once. Invalidates all iterators. @@ -4524,202 +4749,214 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 5 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 6 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 6 { + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 32 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 51 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5493,6 +5730,48 @@ func (this *ActivityStreamsRelationshipProperty) PrependActivityStreamsView(v vo } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "relationship". Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "relationship". func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) { @@ -6277,6 +6556,45 @@ func (this *ActivityStreamsRelationshipProperty) SetActivityStreamsView(idx int, } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "relationship". Panics if the index is out +// of bounds. Invalidates all iterators. +func (this *ActivityStreamsRelationshipProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "relationship". Panics if the index is out of bounds. func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go index 46a869513..f4461212e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go index 15b868d14..30a85d147 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go @@ -20,6 +20,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsResultPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsResultPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsResultPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsResultPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsResultPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsResultPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsResultPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsResultPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsResultPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsResultPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsResultProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "result". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "result". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "result". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsResultProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "result" func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsResultProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "result". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "result". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsResultProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "result". Invalidates all iterators. +func (this *ActivityStreamsResultProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsResultPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "result". func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) { @@ -6530,6 +6809,45 @@ func (this *ActivityStreamsResultProperty) SetActivityStreamsView(idx int, v voc } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "result". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsResultProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsResultPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "result". Panics if the index is out of bounds. func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go index ea054037a..832bbf6ac 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go index 9b972dc36..83353386b 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go @@ -20,6 +20,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsSourceProperty struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSourceProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSourceProperty{ activitystreamsServiceMember: v, @@ -478,6 +499,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -503,6 +525,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -521,6 +544,7 @@ func (this *ActivityStreamsSourceProperty) Clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -912,6 +936,27 @@ func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.Activit return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsSourceProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsSourceProperty) GetIRI() *url.URL { @@ -965,6 +1010,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1040,6 +1088,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1094,6 +1145,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1133,6 +1187,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1158,6 +1213,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1176,6 +1232,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1571,6 +1628,27 @@ func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsSourceProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsSourceProperty) IsIRI() bool { @@ -1622,6 +1700,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1672,6 +1752,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1708,6 +1790,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1760,162 +1844,171 @@ func (this ActivityStreamsSourceProperty) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1945,6 +2038,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1995,6 +2090,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2031,6 +2128,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2081,6 +2180,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2131,6 +2232,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2167,6 +2270,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2569,6 +2674,27 @@ func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.Activi this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsSourceProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) { this.Clear() @@ -2630,6 +2756,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2730,6 +2860,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2802,6 +2936,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go index 1a5522d56..c24483cea 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go index 300d95ed5..5df94878e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go @@ -20,6 +20,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsSubjectProperty struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsSubjectProperty{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsSubjectProperty{ activitystreamsServiceMember: v, @@ -478,6 +499,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -503,6 +525,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -521,6 +544,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -912,6 +936,27 @@ func (this ActivityStreamsSubjectProperty) GetActivityStreamsView() vocab.Activi return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsSubjectProperty) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL { @@ -965,6 +1010,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -1040,6 +1088,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1094,6 +1145,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1133,6 +1187,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1158,6 +1213,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1176,6 +1232,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1571,6 +1628,27 @@ func (this ActivityStreamsSubjectProperty) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsSubjectProperty) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsSubjectProperty) IsIRI() bool { @@ -1622,6 +1700,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1672,6 +1752,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1708,6 +1790,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string { child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1760,162 +1844,171 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1945,6 +2038,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1995,6 +2090,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -2031,6 +2128,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2081,6 +2180,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2131,6 +2232,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2167,6 +2270,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) { return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -2569,6 +2674,27 @@ func (this *ActivityStreamsSubjectProperty) SetActivityStreamsView(v vocab.Activ this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.Clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.Clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsSubjectProperty) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.Clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) { this.Clear() @@ -2630,6 +2756,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2730,6 +2860,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2802,6 +2936,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go index 16eef045c..e9a8d81e8 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go index 2d5d7609d..5d49bd938 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go @@ -20,6 +20,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsTagPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -140,6 +143,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsApplicationMember: v, @@ -290,6 +299,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsListenMember: v, @@ -398,6 +413,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTagPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTagPropertyIterator{ activitystreamsServiceMember: v, @@ -839,6 +860,27 @@ func (this ActivityStreamsTagPropertyIterator) GetActivityStreamsView() vocab.Ac return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsTagPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL { @@ -892,6 +934,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -967,6 +1012,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1021,6 +1069,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1060,6 +1111,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1085,6 +1137,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1103,6 +1156,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1498,6 +1552,27 @@ func (this ActivityStreamsTagPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsTagPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTagPropertyIterator) IsIRI() bool { @@ -1549,6 +1624,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1599,6 +1676,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1635,6 +1714,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1687,162 +1768,171 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1872,6 +1962,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1922,6 +2014,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1958,6 +2052,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2387,6 +2483,27 @@ func (this *ActivityStreamsTagPropertyIterator) SetActivityStreamsView(v vocab.A this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsTagPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2448,6 +2565,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2548,6 +2669,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2620,6 +2745,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2669,6 +2798,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2694,6 +2824,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2712,6 +2843,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2742,6 +2874,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2792,6 +2926,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2828,6 +2964,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error) return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3511,6 +3649,41 @@ func (this *ActivityStreamsTagProperty) AppendActivityStreamsView(v vocab.Activi }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "tag". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "tag". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "tag". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTagProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "tag" func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{ @@ -4528,6 +4701,57 @@ func (this *ActivityStreamsTagProperty) InsertActivityStreamsView(idx int, v voc } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "tag". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "tag". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4699,210 +4923,222 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5703,6 +5939,48 @@ func (this *ActivityStreamsTagProperty) PrependActivityStreamsView(v vocab.Activ } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "tag". Invalidates all iterators. +func (this *ActivityStreamsTagProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsTagPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "tag". func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsTagPropertyIterator{{ @@ -6526,6 +6804,45 @@ func (this *ActivityStreamsTagProperty) SetActivityStreamsView(idx int, v vocab. } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "tag". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTagProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTagPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "tag". // Panics if the index is out of bounds. func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go index d2db7b8fd..dfed9cfba 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go index 60b01cf53..6328a181f 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go @@ -20,6 +20,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsTargetPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -141,6 +144,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsApplicationMember: v, @@ -291,6 +300,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsListenMember: v, @@ -399,6 +414,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsTargetPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsTargetPropertyIterator{ activitystreamsServiceMember: v, @@ -840,6 +861,27 @@ func (this ActivityStreamsTargetPropertyIterator) GetActivityStreamsView() vocab return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsTargetPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL { @@ -893,6 +935,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -968,6 +1013,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1022,6 +1070,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1061,6 +1112,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1086,6 +1138,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1104,6 +1157,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1499,6 +1553,27 @@ func (this ActivityStreamsTargetPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsTargetPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool { @@ -1550,6 +1625,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1600,6 +1677,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1636,6 +1715,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1688,162 +1769,171 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1873,6 +1963,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1923,6 +2015,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1959,6 +2053,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2388,6 +2484,27 @@ func (this *ActivityStreamsTargetPropertyIterator) SetActivityStreamsView(v voca this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsTargetPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2449,6 +2566,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2549,6 +2670,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2621,6 +2746,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2670,6 +2799,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2695,6 +2825,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2713,6 +2844,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2743,6 +2875,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2793,6 +2927,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2829,6 +2965,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3513,6 +3651,42 @@ func (this *ActivityStreamsTargetProperty) AppendActivityStreamsView(v vocab.Act }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "target". Invalidates iterators that are +// traversing using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "target". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "target". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsTargetProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "target" func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{ @@ -4531,6 +4705,57 @@ func (this *ActivityStreamsTargetProperty) InsertActivityStreamsView(idx int, v } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "target". Existing elements at that index +// and higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "target". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4702,210 +4927,222 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5706,6 +5943,48 @@ func (this *ActivityStreamsTargetProperty) PrependActivityStreamsView(v vocab.Ac } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "target". Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsTargetPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property // "target". func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) { @@ -6530,6 +6809,45 @@ func (this *ActivityStreamsTargetProperty) SetActivityStreamsView(idx int, v voc } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "target". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsTargetProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property // "target". Panics if the index is out of bounds. func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go index e602b1a7c..0d6e923f0 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_pkg.go @@ -25,6 +25,10 @@ type privateManager interface { // for the "ActivityStreamsAnnounce" non-functional property in the // vocabulary "ActivityStreams" DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error) + // DeserializeAnnounceApprovalGoToSocial returns the deserialization + // method for the "GoToSocialAnnounceApproval" non-functional property + // in the vocabulary "GoToSocial" + DeserializeAnnounceApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialAnnounceApproval, error) // DeserializeApplicationActivityStreams returns the deserialization // method for the "ActivityStreamsApplication" non-functional property // in the vocabulary "ActivityStreams" @@ -123,6 +127,10 @@ type privateManager interface { // the "ActivityStreamsLike" non-functional property in the vocabulary // "ActivityStreams" DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error) + // DeserializeLikeApprovalGoToSocial returns the deserialization method + // for the "GoToSocialLikeApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeLikeApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialLikeApproval, error) // DeserializeLinkActivityStreams returns the deserialization method for // the "ActivityStreamsLink" non-functional property in the vocabulary // "ActivityStreams" @@ -204,6 +212,10 @@ type privateManager interface { // the "ActivityStreamsRemove" non-functional property in the // vocabulary "ActivityStreams" DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error) + // DeserializeReplyApprovalGoToSocial returns the deserialization method + // for the "GoToSocialReplyApproval" non-functional property in the + // vocabulary "GoToSocial" + DeserializeReplyApprovalGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialReplyApproval, error) // DeserializeServiceActivityStreams returns the deserialization method // for the "ActivityStreamsService" non-functional property in the // vocabulary "ActivityStreams" diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go index c5bfa27e2..bf57a8b6e 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go @@ -20,6 +20,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsActivityMember vocab.ActivityStreamsActivity activitystreamsAddMember vocab.ActivityStreamsAdd activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce + gotosocialAnnounceApprovalMember vocab.GoToSocialAnnounceApproval activitystreamsApplicationMember vocab.ActivityStreamsApplication activitystreamsArriveMember vocab.ActivityStreamsArrive activitystreamsArticleMember vocab.ActivityStreamsArticle @@ -45,6 +46,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsJoinMember vocab.ActivityStreamsJoin activitystreamsLeaveMember vocab.ActivityStreamsLeave activitystreamsLikeMember vocab.ActivityStreamsLike + gotosocialLikeApprovalMember vocab.GoToSocialLikeApproval activitystreamsListenMember vocab.ActivityStreamsListen activitystreamsMentionMember vocab.ActivityStreamsMention activitystreamsMoveMember vocab.ActivityStreamsMove @@ -63,6 +65,7 @@ type ActivityStreamsToPropertyIterator struct { activitystreamsRejectMember vocab.ActivityStreamsReject activitystreamsRelationshipMember vocab.ActivityStreamsRelationship activitystreamsRemoveMember vocab.ActivityStreamsRemove + gotosocialReplyApprovalMember vocab.GoToSocialReplyApproval activitystreamsServiceMember vocab.ActivityStreamsService activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject @@ -140,6 +143,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeAnnounceApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialAnnounceApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsApplicationMember: v, @@ -290,6 +299,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeLikeApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialLikeApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsListenMember: v, @@ -398,6 +413,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st alias: alias, } return this, nil + } else if v, err := mgr.DeserializeReplyApprovalGoToSocial()(m, aliasMap); err == nil { + this := &ActivityStreamsToPropertyIterator{ + alias: alias, + gotosocialReplyApprovalMember: v, + } + return this, nil } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil { this := &ActivityStreamsToPropertyIterator{ activitystreamsServiceMember: v, @@ -839,6 +860,27 @@ func (this ActivityStreamsToPropertyIterator) GetActivityStreamsView() vocab.Act return this.activitystreamsViewMember } +// GetGoToSocialAnnounceApproval returns the value of this property. When +// IsGoToSocialAnnounceApproval returns false, GetGoToSocialAnnounceApproval +// will return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialAnnounceApproval() vocab.GoToSocialAnnounceApproval { + return this.gotosocialAnnounceApprovalMember +} + +// GetGoToSocialLikeApproval returns the value of this property. When +// IsGoToSocialLikeApproval returns false, GetGoToSocialLikeApproval will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialLikeApproval() vocab.GoToSocialLikeApproval { + return this.gotosocialLikeApprovalMember +} + +// GetGoToSocialReplyApproval returns the value of this property. When +// IsGoToSocialReplyApproval returns false, GetGoToSocialReplyApproval will +// return an arbitrary value. +func (this ActivityStreamsToPropertyIterator) GetGoToSocialReplyApproval() vocab.GoToSocialReplyApproval { + return this.gotosocialReplyApprovalMember +} + // GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will // return an arbitrary value. func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL { @@ -892,6 +934,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce() } + if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval() + } if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication() } @@ -967,6 +1012,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike() } + if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval() + } if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen() } @@ -1021,6 +1069,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type { if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove() } + if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval() + } if this.IsActivityStreamsService() { return this.GetActivityStreamsService() } @@ -1060,6 +1111,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsActivity() || this.IsActivityStreamsAdd() || this.IsActivityStreamsAnnounce() || + this.IsGoToSocialAnnounceApproval() || this.IsActivityStreamsApplication() || this.IsActivityStreamsArrive() || this.IsActivityStreamsArticle() || @@ -1085,6 +1137,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsJoin() || this.IsActivityStreamsLeave() || this.IsActivityStreamsLike() || + this.IsGoToSocialLikeApproval() || this.IsActivityStreamsListen() || this.IsActivityStreamsMention() || this.IsActivityStreamsMove() || @@ -1103,6 +1156,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool { this.IsActivityStreamsReject() || this.IsActivityStreamsRelationship() || this.IsActivityStreamsRemove() || + this.IsGoToSocialReplyApproval() || this.IsActivityStreamsService() || this.IsActivityStreamsTentativeAccept() || this.IsActivityStreamsTentativeReject() || @@ -1498,6 +1552,27 @@ func (this ActivityStreamsToPropertyIterator) IsActivityStreamsView() bool { return this.activitystreamsViewMember != nil } +// IsGoToSocialAnnounceApproval returns true if this property has a type of +// "AnnounceApproval". When true, use the GetGoToSocialAnnounceApproval and +// SetGoToSocialAnnounceApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialAnnounceApproval() bool { + return this.gotosocialAnnounceApprovalMember != nil +} + +// IsGoToSocialLikeApproval returns true if this property has a type of +// "LikeApproval". When true, use the GetGoToSocialLikeApproval and +// SetGoToSocialLikeApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialLikeApproval() bool { + return this.gotosocialLikeApprovalMember != nil +} + +// IsGoToSocialReplyApproval returns true if this property has a type of +// "ReplyApproval". When true, use the GetGoToSocialReplyApproval and +// SetGoToSocialReplyApproval methods to access and set this property. +func (this ActivityStreamsToPropertyIterator) IsGoToSocialReplyApproval() bool { + return this.gotosocialReplyApprovalMember != nil +} + // IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI // to access and set this property func (this ActivityStreamsToPropertyIterator) IsIRI() bool { @@ -1549,6 +1624,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsAdd().JSONLDContext() } else if this.IsActivityStreamsAnnounce() { child = this.GetActivityStreamsAnnounce().JSONLDContext() + } else if this.IsGoToSocialAnnounceApproval() { + child = this.GetGoToSocialAnnounceApproval().JSONLDContext() } else if this.IsActivityStreamsApplication() { child = this.GetActivityStreamsApplication().JSONLDContext() } else if this.IsActivityStreamsArrive() { @@ -1599,6 +1676,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsLeave().JSONLDContext() } else if this.IsActivityStreamsLike() { child = this.GetActivityStreamsLike().JSONLDContext() + } else if this.IsGoToSocialLikeApproval() { + child = this.GetGoToSocialLikeApproval().JSONLDContext() } else if this.IsActivityStreamsListen() { child = this.GetActivityStreamsListen().JSONLDContext() } else if this.IsActivityStreamsMention() { @@ -1635,6 +1714,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string child = this.GetActivityStreamsRelationship().JSONLDContext() } else if this.IsActivityStreamsRemove() { child = this.GetActivityStreamsRemove().JSONLDContext() + } else if this.IsGoToSocialReplyApproval() { + child = this.GetGoToSocialReplyApproval().JSONLDContext() } else if this.IsActivityStreamsService() { child = this.GetActivityStreamsService().JSONLDContext() } else if this.IsActivityStreamsTentativeAccept() { @@ -1687,162 +1768,171 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int { if this.IsActivityStreamsAnnounce() { return 5 } - if this.IsActivityStreamsApplication() { + if this.IsGoToSocialAnnounceApproval() { return 6 } - if this.IsActivityStreamsArrive() { + if this.IsActivityStreamsApplication() { return 7 } - if this.IsActivityStreamsArticle() { + if this.IsActivityStreamsArrive() { return 8 } - if this.IsActivityStreamsAudio() { + if this.IsActivityStreamsArticle() { return 9 } - if this.IsActivityStreamsBlock() { + if this.IsActivityStreamsAudio() { return 10 } - if this.IsActivityStreamsCollection() { + if this.IsActivityStreamsBlock() { return 11 } - if this.IsActivityStreamsCollectionPage() { + if this.IsActivityStreamsCollection() { return 12 } - if this.IsActivityStreamsCreate() { + if this.IsActivityStreamsCollectionPage() { return 13 } - if this.IsActivityStreamsDelete() { + if this.IsActivityStreamsCreate() { return 14 } - if this.IsActivityStreamsDislike() { + if this.IsActivityStreamsDelete() { return 15 } - if this.IsActivityStreamsDocument() { + if this.IsActivityStreamsDislike() { return 16 } - if this.IsTootEmoji() { + if this.IsActivityStreamsDocument() { return 17 } - if this.IsActivityStreamsEvent() { + if this.IsTootEmoji() { return 18 } - if this.IsActivityStreamsFlag() { + if this.IsActivityStreamsEvent() { return 19 } - if this.IsActivityStreamsFollow() { + if this.IsActivityStreamsFlag() { return 20 } - if this.IsActivityStreamsGroup() { + if this.IsActivityStreamsFollow() { return 21 } - if this.IsTootHashtag() { + if this.IsActivityStreamsGroup() { return 22 } - if this.IsTootIdentityProof() { + if this.IsTootHashtag() { return 23 } - if this.IsActivityStreamsIgnore() { + if this.IsTootIdentityProof() { return 24 } - if this.IsActivityStreamsImage() { + if this.IsActivityStreamsIgnore() { return 25 } - if this.IsActivityStreamsIntransitiveActivity() { + if this.IsActivityStreamsImage() { return 26 } - if this.IsActivityStreamsInvite() { + if this.IsActivityStreamsIntransitiveActivity() { return 27 } - if this.IsActivityStreamsJoin() { + if this.IsActivityStreamsInvite() { return 28 } - if this.IsActivityStreamsLeave() { + if this.IsActivityStreamsJoin() { return 29 } - if this.IsActivityStreamsLike() { + if this.IsActivityStreamsLeave() { return 30 } - if this.IsActivityStreamsListen() { + if this.IsActivityStreamsLike() { return 31 } - if this.IsActivityStreamsMention() { + if this.IsGoToSocialLikeApproval() { return 32 } - if this.IsActivityStreamsMove() { + if this.IsActivityStreamsListen() { return 33 } - if this.IsActivityStreamsNote() { + if this.IsActivityStreamsMention() { return 34 } - if this.IsActivityStreamsOffer() { + if this.IsActivityStreamsMove() { return 35 } - if this.IsActivityStreamsOrderedCollection() { + if this.IsActivityStreamsNote() { return 36 } - if this.IsActivityStreamsOrderedCollectionPage() { + if this.IsActivityStreamsOffer() { return 37 } - if this.IsActivityStreamsOrganization() { + if this.IsActivityStreamsOrderedCollection() { return 38 } - if this.IsActivityStreamsPage() { + if this.IsActivityStreamsOrderedCollectionPage() { return 39 } - if this.IsActivityStreamsPerson() { + if this.IsActivityStreamsOrganization() { return 40 } - if this.IsActivityStreamsPlace() { + if this.IsActivityStreamsPage() { return 41 } - if this.IsActivityStreamsProfile() { + if this.IsActivityStreamsPerson() { return 42 } - if this.IsSchemaPropertyValue() { + if this.IsActivityStreamsPlace() { return 43 } - if this.IsActivityStreamsQuestion() { + if this.IsActivityStreamsProfile() { return 44 } - if this.IsActivityStreamsRead() { + if this.IsSchemaPropertyValue() { return 45 } - if this.IsActivityStreamsReject() { + if this.IsActivityStreamsQuestion() { return 46 } - if this.IsActivityStreamsRelationship() { + if this.IsActivityStreamsRead() { return 47 } - if this.IsActivityStreamsRemove() { + if this.IsActivityStreamsReject() { return 48 } - if this.IsActivityStreamsService() { + if this.IsActivityStreamsRelationship() { return 49 } - if this.IsActivityStreamsTentativeAccept() { + if this.IsActivityStreamsRemove() { return 50 } - if this.IsActivityStreamsTentativeReject() { + if this.IsGoToSocialReplyApproval() { return 51 } - if this.IsActivityStreamsTombstone() { + if this.IsActivityStreamsService() { return 52 } - if this.IsActivityStreamsTravel() { + if this.IsActivityStreamsTentativeAccept() { return 53 } - if this.IsActivityStreamsUndo() { + if this.IsActivityStreamsTentativeReject() { return 54 } - if this.IsActivityStreamsUpdate() { + if this.IsActivityStreamsTombstone() { return 55 } - if this.IsActivityStreamsVideo() { + if this.IsActivityStreamsTravel() { return 56 } - if this.IsActivityStreamsView() { + if this.IsActivityStreamsUndo() { return 57 } + if this.IsActivityStreamsUpdate() { + return 58 + } + if this.IsActivityStreamsVideo() { + return 59 + } + if this.IsActivityStreamsView() { + return 60 + } if this.IsIRI() { return -2 } @@ -1872,6 +1962,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd()) } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce()) + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().LessThan(o.GetGoToSocialAnnounceApproval()) } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication()) } else if this.IsActivityStreamsArrive() { @@ -1922,6 +2014,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave()) } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike()) + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().LessThan(o.GetGoToSocialLikeApproval()) } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen()) } else if this.IsActivityStreamsMention() { @@ -1958,6 +2052,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship()) } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove()) + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().LessThan(o.GetGoToSocialReplyApproval()) } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService()) } else if this.IsActivityStreamsTentativeAccept() { @@ -2387,6 +2483,27 @@ func (this *ActivityStreamsToPropertyIterator) SetActivityStreamsView(v vocab.Ac this.activitystreamsViewMember = v } +// SetGoToSocialAnnounceApproval sets the value of this property. Calling +// IsGoToSocialAnnounceApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.clear() + this.gotosocialAnnounceApprovalMember = v +} + +// SetGoToSocialLikeApproval sets the value of this property. Calling +// IsGoToSocialLikeApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.clear() + this.gotosocialLikeApprovalMember = v +} + +// SetGoToSocialReplyApproval sets the value of this property. Calling +// IsGoToSocialReplyApproval afterwards returns true. +func (this *ActivityStreamsToPropertyIterator) SetGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.clear() + this.gotosocialReplyApprovalMember = v +} + // SetIRI sets the value of this property. Calling IsIRI afterwards returns true. func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) { this.clear() @@ -2448,6 +2565,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsAnnounce(v) return nil } + if v, ok := t.(vocab.GoToSocialAnnounceApproval); ok { + this.SetGoToSocialAnnounceApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsApplication); ok { this.SetActivityStreamsApplication(v) return nil @@ -2548,6 +2669,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsLike(v) return nil } + if v, ok := t.(vocab.GoToSocialLikeApproval); ok { + this.SetGoToSocialLikeApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsListen); ok { this.SetActivityStreamsListen(v) return nil @@ -2620,6 +2745,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error { this.SetActivityStreamsRemove(v) return nil } + if v, ok := t.(vocab.GoToSocialReplyApproval); ok { + this.SetGoToSocialReplyApproval(v) + return nil + } if v, ok := t.(vocab.ActivityStreamsService); ok { this.SetActivityStreamsService(v) return nil @@ -2669,6 +2798,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsActivityMember = nil this.activitystreamsAddMember = nil this.activitystreamsAnnounceMember = nil + this.gotosocialAnnounceApprovalMember = nil this.activitystreamsApplicationMember = nil this.activitystreamsArriveMember = nil this.activitystreamsArticleMember = nil @@ -2694,6 +2824,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsJoinMember = nil this.activitystreamsLeaveMember = nil this.activitystreamsLikeMember = nil + this.gotosocialLikeApprovalMember = nil this.activitystreamsListenMember = nil this.activitystreamsMentionMember = nil this.activitystreamsMoveMember = nil @@ -2712,6 +2843,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() { this.activitystreamsRejectMember = nil this.activitystreamsRelationshipMember = nil this.activitystreamsRemoveMember = nil + this.gotosocialReplyApprovalMember = nil this.activitystreamsServiceMember = nil this.activitystreamsTentativeAcceptMember = nil this.activitystreamsTentativeRejectMember = nil @@ -2742,6 +2874,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsAdd().Serialize() } else if this.IsActivityStreamsAnnounce() { return this.GetActivityStreamsAnnounce().Serialize() + } else if this.IsGoToSocialAnnounceApproval() { + return this.GetGoToSocialAnnounceApproval().Serialize() } else if this.IsActivityStreamsApplication() { return this.GetActivityStreamsApplication().Serialize() } else if this.IsActivityStreamsArrive() { @@ -2792,6 +2926,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsLeave().Serialize() } else if this.IsActivityStreamsLike() { return this.GetActivityStreamsLike().Serialize() + } else if this.IsGoToSocialLikeApproval() { + return this.GetGoToSocialLikeApproval().Serialize() } else if this.IsActivityStreamsListen() { return this.GetActivityStreamsListen().Serialize() } else if this.IsActivityStreamsMention() { @@ -2828,6 +2964,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) { return this.GetActivityStreamsRelationship().Serialize() } else if this.IsActivityStreamsRemove() { return this.GetActivityStreamsRemove().Serialize() + } else if this.IsGoToSocialReplyApproval() { + return this.GetGoToSocialReplyApproval().Serialize() } else if this.IsActivityStreamsService() { return this.GetActivityStreamsService().Serialize() } else if this.IsActivityStreamsTentativeAccept() { @@ -3511,6 +3649,41 @@ func (this *ActivityStreamsToProperty) AppendActivityStreamsView(v vocab.Activit }) } +// AppendGoToSocialAnnounceApproval appends a AnnounceApproval value to the back +// of a list of the property "to". Invalidates iterators that are traversing +// using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialLikeApproval appends a LikeApproval value to the back of a list +// of the property "to". Invalidates iterators that are traversing using Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + +// AppendGoToSocialReplyApproval appends a ReplyApproval value to the back of a +// list of the property "to". Invalidates iterators that are traversing using +// Prev. +func (this *ActivityStreamsToProperty) AppendGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: this.Len(), + parent: this, + }) +} + // AppendIRI appends an IRI value to the back of a list of the property "to" func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) { this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{ @@ -4528,6 +4701,57 @@ func (this *ActivityStreamsToProperty) InsertActivityStreamsView(idx int, v voca } } +// InsertGoToSocialAnnounceApproval inserts a AnnounceApproval value at the +// specified index for a property "to". Existing elements at that index and +// higher are shifted back once. Invalidates all iterators. +func (this *ActivityStreamsToProperty) InsertGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialLikeApproval inserts a LikeApproval 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) InsertGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// InsertGoToSocialReplyApproval inserts a ReplyApproval 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) InsertGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + this.properties = append(this.properties, nil) + copy(this.properties[idx+1:], this.properties[idx:]) + this.properties[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } + for i := idx; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // Insert inserts an IRI value at the specified index for a property "to". // Existing elements at that index and higher are shifted back once. // Invalidates all iterators. @@ -4699,210 +4923,222 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool { rhs := this.properties[j].GetActivityStreamsAnnounce() return lhs.LessThan(rhs) } else if idx1 == 6 { + lhs := this.properties[i].GetGoToSocialAnnounceApproval() + rhs := this.properties[j].GetGoToSocialAnnounceApproval() + return lhs.LessThan(rhs) + } else if idx1 == 7 { lhs := this.properties[i].GetActivityStreamsApplication() rhs := this.properties[j].GetActivityStreamsApplication() return lhs.LessThan(rhs) - } else if idx1 == 7 { + } else if idx1 == 8 { lhs := this.properties[i].GetActivityStreamsArrive() rhs := this.properties[j].GetActivityStreamsArrive() return lhs.LessThan(rhs) - } else if idx1 == 8 { + } else if idx1 == 9 { lhs := this.properties[i].GetActivityStreamsArticle() rhs := this.properties[j].GetActivityStreamsArticle() return lhs.LessThan(rhs) - } else if idx1 == 9 { + } else if idx1 == 10 { lhs := this.properties[i].GetActivityStreamsAudio() rhs := this.properties[j].GetActivityStreamsAudio() return lhs.LessThan(rhs) - } else if idx1 == 10 { + } else if idx1 == 11 { lhs := this.properties[i].GetActivityStreamsBlock() rhs := this.properties[j].GetActivityStreamsBlock() return lhs.LessThan(rhs) - } else if idx1 == 11 { + } else if idx1 == 12 { lhs := this.properties[i].GetActivityStreamsCollection() rhs := this.properties[j].GetActivityStreamsCollection() return lhs.LessThan(rhs) - } else if idx1 == 12 { + } else if idx1 == 13 { lhs := this.properties[i].GetActivityStreamsCollectionPage() rhs := this.properties[j].GetActivityStreamsCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 13 { + } else if idx1 == 14 { lhs := this.properties[i].GetActivityStreamsCreate() rhs := this.properties[j].GetActivityStreamsCreate() return lhs.LessThan(rhs) - } else if idx1 == 14 { + } else if idx1 == 15 { lhs := this.properties[i].GetActivityStreamsDelete() rhs := this.properties[j].GetActivityStreamsDelete() return lhs.LessThan(rhs) - } else if idx1 == 15 { + } else if idx1 == 16 { lhs := this.properties[i].GetActivityStreamsDislike() rhs := this.properties[j].GetActivityStreamsDislike() return lhs.LessThan(rhs) - } else if idx1 == 16 { + } else if idx1 == 17 { lhs := this.properties[i].GetActivityStreamsDocument() rhs := this.properties[j].GetActivityStreamsDocument() return lhs.LessThan(rhs) - } else if idx1 == 17 { + } else if idx1 == 18 { lhs := this.properties[i].GetTootEmoji() rhs := this.properties[j].GetTootEmoji() return lhs.LessThan(rhs) - } else if idx1 == 18 { + } else if idx1 == 19 { lhs := this.properties[i].GetActivityStreamsEvent() rhs := this.properties[j].GetActivityStreamsEvent() return lhs.LessThan(rhs) - } else if idx1 == 19 { + } else if idx1 == 20 { lhs := this.properties[i].GetActivityStreamsFlag() rhs := this.properties[j].GetActivityStreamsFlag() return lhs.LessThan(rhs) - } else if idx1 == 20 { + } else if idx1 == 21 { lhs := this.properties[i].GetActivityStreamsFollow() rhs := this.properties[j].GetActivityStreamsFollow() return lhs.LessThan(rhs) - } else if idx1 == 21 { + } else if idx1 == 22 { lhs := this.properties[i].GetActivityStreamsGroup() rhs := this.properties[j].GetActivityStreamsGroup() return lhs.LessThan(rhs) - } else if idx1 == 22 { + } else if idx1 == 23 { lhs := this.properties[i].GetTootHashtag() rhs := this.properties[j].GetTootHashtag() return lhs.LessThan(rhs) - } else if idx1 == 23 { + } else if idx1 == 24 { lhs := this.properties[i].GetTootIdentityProof() rhs := this.properties[j].GetTootIdentityProof() return lhs.LessThan(rhs) - } else if idx1 == 24 { + } else if idx1 == 25 { lhs := this.properties[i].GetActivityStreamsIgnore() rhs := this.properties[j].GetActivityStreamsIgnore() return lhs.LessThan(rhs) - } else if idx1 == 25 { + } else if idx1 == 26 { lhs := this.properties[i].GetActivityStreamsImage() rhs := this.properties[j].GetActivityStreamsImage() return lhs.LessThan(rhs) - } else if idx1 == 26 { + } else if idx1 == 27 { lhs := this.properties[i].GetActivityStreamsIntransitiveActivity() rhs := this.properties[j].GetActivityStreamsIntransitiveActivity() return lhs.LessThan(rhs) - } else if idx1 == 27 { + } else if idx1 == 28 { lhs := this.properties[i].GetActivityStreamsInvite() rhs := this.properties[j].GetActivityStreamsInvite() return lhs.LessThan(rhs) - } else if idx1 == 28 { + } else if idx1 == 29 { lhs := this.properties[i].GetActivityStreamsJoin() rhs := this.properties[j].GetActivityStreamsJoin() return lhs.LessThan(rhs) - } else if idx1 == 29 { + } else if idx1 == 30 { lhs := this.properties[i].GetActivityStreamsLeave() rhs := this.properties[j].GetActivityStreamsLeave() return lhs.LessThan(rhs) - } else if idx1 == 30 { + } else if idx1 == 31 { lhs := this.properties[i].GetActivityStreamsLike() rhs := this.properties[j].GetActivityStreamsLike() return lhs.LessThan(rhs) - } else if idx1 == 31 { + } else if idx1 == 32 { + lhs := this.properties[i].GetGoToSocialLikeApproval() + rhs := this.properties[j].GetGoToSocialLikeApproval() + return lhs.LessThan(rhs) + } else if idx1 == 33 { lhs := this.properties[i].GetActivityStreamsListen() rhs := this.properties[j].GetActivityStreamsListen() return lhs.LessThan(rhs) - } else if idx1 == 32 { + } else if idx1 == 34 { lhs := this.properties[i].GetActivityStreamsMention() rhs := this.properties[j].GetActivityStreamsMention() return lhs.LessThan(rhs) - } else if idx1 == 33 { + } else if idx1 == 35 { lhs := this.properties[i].GetActivityStreamsMove() rhs := this.properties[j].GetActivityStreamsMove() return lhs.LessThan(rhs) - } else if idx1 == 34 { + } else if idx1 == 36 { lhs := this.properties[i].GetActivityStreamsNote() rhs := this.properties[j].GetActivityStreamsNote() return lhs.LessThan(rhs) - } else if idx1 == 35 { + } else if idx1 == 37 { lhs := this.properties[i].GetActivityStreamsOffer() rhs := this.properties[j].GetActivityStreamsOffer() return lhs.LessThan(rhs) - } else if idx1 == 36 { + } else if idx1 == 38 { lhs := this.properties[i].GetActivityStreamsOrderedCollection() rhs := this.properties[j].GetActivityStreamsOrderedCollection() return lhs.LessThan(rhs) - } else if idx1 == 37 { + } else if idx1 == 39 { lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage() rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage() return lhs.LessThan(rhs) - } else if idx1 == 38 { + } else if idx1 == 40 { lhs := this.properties[i].GetActivityStreamsOrganization() rhs := this.properties[j].GetActivityStreamsOrganization() return lhs.LessThan(rhs) - } else if idx1 == 39 { + } else if idx1 == 41 { lhs := this.properties[i].GetActivityStreamsPage() rhs := this.properties[j].GetActivityStreamsPage() return lhs.LessThan(rhs) - } else if idx1 == 40 { + } else if idx1 == 42 { lhs := this.properties[i].GetActivityStreamsPerson() rhs := this.properties[j].GetActivityStreamsPerson() return lhs.LessThan(rhs) - } else if idx1 == 41 { + } else if idx1 == 43 { lhs := this.properties[i].GetActivityStreamsPlace() rhs := this.properties[j].GetActivityStreamsPlace() return lhs.LessThan(rhs) - } else if idx1 == 42 { + } else if idx1 == 44 { lhs := this.properties[i].GetActivityStreamsProfile() rhs := this.properties[j].GetActivityStreamsProfile() return lhs.LessThan(rhs) - } else if idx1 == 43 { + } else if idx1 == 45 { lhs := this.properties[i].GetSchemaPropertyValue() rhs := this.properties[j].GetSchemaPropertyValue() return lhs.LessThan(rhs) - } else if idx1 == 44 { + } else if idx1 == 46 { lhs := this.properties[i].GetActivityStreamsQuestion() rhs := this.properties[j].GetActivityStreamsQuestion() return lhs.LessThan(rhs) - } else if idx1 == 45 { + } else if idx1 == 47 { lhs := this.properties[i].GetActivityStreamsRead() rhs := this.properties[j].GetActivityStreamsRead() return lhs.LessThan(rhs) - } else if idx1 == 46 { + } else if idx1 == 48 { lhs := this.properties[i].GetActivityStreamsReject() rhs := this.properties[j].GetActivityStreamsReject() return lhs.LessThan(rhs) - } else if idx1 == 47 { + } else if idx1 == 49 { lhs := this.properties[i].GetActivityStreamsRelationship() rhs := this.properties[j].GetActivityStreamsRelationship() return lhs.LessThan(rhs) - } else if idx1 == 48 { + } else if idx1 == 50 { lhs := this.properties[i].GetActivityStreamsRemove() rhs := this.properties[j].GetActivityStreamsRemove() return lhs.LessThan(rhs) - } else if idx1 == 49 { + } else if idx1 == 51 { + lhs := this.properties[i].GetGoToSocialReplyApproval() + rhs := this.properties[j].GetGoToSocialReplyApproval() + return lhs.LessThan(rhs) + } else if idx1 == 52 { lhs := this.properties[i].GetActivityStreamsService() rhs := this.properties[j].GetActivityStreamsService() return lhs.LessThan(rhs) - } else if idx1 == 50 { + } else if idx1 == 53 { lhs := this.properties[i].GetActivityStreamsTentativeAccept() rhs := this.properties[j].GetActivityStreamsTentativeAccept() return lhs.LessThan(rhs) - } else if idx1 == 51 { + } else if idx1 == 54 { lhs := this.properties[i].GetActivityStreamsTentativeReject() rhs := this.properties[j].GetActivityStreamsTentativeReject() return lhs.LessThan(rhs) - } else if idx1 == 52 { + } else if idx1 == 55 { lhs := this.properties[i].GetActivityStreamsTombstone() rhs := this.properties[j].GetActivityStreamsTombstone() return lhs.LessThan(rhs) - } else if idx1 == 53 { + } else if idx1 == 56 { lhs := this.properties[i].GetActivityStreamsTravel() rhs := this.properties[j].GetActivityStreamsTravel() return lhs.LessThan(rhs) - } else if idx1 == 54 { + } else if idx1 == 57 { lhs := this.properties[i].GetActivityStreamsUndo() rhs := this.properties[j].GetActivityStreamsUndo() return lhs.LessThan(rhs) - } else if idx1 == 55 { + } else if idx1 == 58 { lhs := this.properties[i].GetActivityStreamsUpdate() rhs := this.properties[j].GetActivityStreamsUpdate() return lhs.LessThan(rhs) - } else if idx1 == 56 { + } else if idx1 == 59 { lhs := this.properties[i].GetActivityStreamsVideo() rhs := this.properties[j].GetActivityStreamsVideo() return lhs.LessThan(rhs) - } else if idx1 == 57 { + } else if idx1 == 60 { lhs := this.properties[i].GetActivityStreamsView() rhs := this.properties[j].GetActivityStreamsView() return lhs.LessThan(rhs) @@ -5703,6 +5939,48 @@ func (this *ActivityStreamsToProperty) PrependActivityStreamsView(v vocab.Activi } } +// PrependGoToSocialAnnounceApproval prepends a AnnounceApproval value to the +// front of a list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialAnnounceApproval(v vocab.GoToSocialAnnounceApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialLikeApproval prepends a LikeApproval value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialLikeApproval(v vocab.GoToSocialLikeApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + +// PrependGoToSocialReplyApproval prepends a ReplyApproval value to the front of a +// list of the property "to". Invalidates all iterators. +func (this *ActivityStreamsToProperty) PrependGoToSocialReplyApproval(v vocab.GoToSocialReplyApproval) { + this.properties = append([]*ActivityStreamsToPropertyIterator{{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: 0, + parent: this, + }}, this.properties...) + for i := 1; i < this.Len(); i++ { + (this.properties)[i].myIdx = i + } +} + // PrependIRI prepends an IRI value to the front of a list of the property "to". func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) { this.properties = append([]*ActivityStreamsToPropertyIterator{{ @@ -6526,6 +6804,45 @@ func (this *ActivityStreamsToProperty) SetActivityStreamsView(idx int, v vocab.A } } +// SetGoToSocialAnnounceApproval sets a AnnounceApproval value to be at the +// specified index for the property "to". Panics if the index is out of +// bounds. Invalidates all iterators. +func (this *ActivityStreamsToProperty) SetGoToSocialAnnounceApproval(idx int, v vocab.GoToSocialAnnounceApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialAnnounceApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialLikeApproval sets a LikeApproval 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) SetGoToSocialLikeApproval(idx int, v vocab.GoToSocialLikeApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialLikeApprovalMember: v, + myIdx: idx, + parent: this, + } +} + +// SetGoToSocialReplyApproval sets a ReplyApproval 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) SetGoToSocialReplyApproval(idx int, v vocab.GoToSocialReplyApproval) { + (this.properties)[idx].parent = nil + (this.properties)[idx] = &ActivityStreamsToPropertyIterator{ + alias: this.alias, + gotosocialReplyApprovalMember: v, + myIdx: idx, + parent: this, + } +} + // SetIRI sets an IRI value to be at the specified index for the property "to". // Panics if the index is out of bounds. func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) { diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go index 103c9b66d..3e8578a28 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_link/gen_type_activitystreams_link.go @@ -199,7 +199,7 @@ func IsOrExtendsLink(other vocab.Type) bool { // LinkIsDisjointWith returns true if the other provided type is disjoint with the // Link type. func LinkIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go index 351d8511b..46d73ec72 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_mention/gen_type_activitystreams_mention.go @@ -197,7 +197,7 @@ func IsOrExtendsMention(other vocab.Type) bool { // MentionIsDisjointWith returns true if the other provided type is disjoint with // the Mention type. func MentionIsDisjointWith(other vocab.Type) bool { - disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + disjointWith := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, disjoint := range disjointWith { if disjoint == other.GetTypeName() { return true diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go index b03c6a3b3..68d7a63be 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_object/gen_type_activitystreams_object.go @@ -396,7 +396,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool { // Object type. Note that it returns false if the types are the same; see the // "IsOrExtendsObject" variant instead. func ObjectIsExtendedBy(other vocab.Type) bool { - extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} + extensions := []string{"Accept", "Activity", "Add", "Announce", "AnnounceApproval", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeApproval", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "PropertyValue", "Question", "Read", "Reject", "Relationship", "Remove", "ReplyApproval", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"} for _, ext := range extensions { if ext == other.GetTypeName() { return true |
