diff options
Diffstat (limited to 'vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application')
2 files changed, 96 insertions, 48 deletions
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go index 77f918139..05764bc36 100644 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go +++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go @@ -108,6 +108,11 @@ type privateManager interface { // method for the "ActivityStreamsLocationProperty" non-functional // property in the vocabulary "ActivityStreams" DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) + // DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the + // deserialization method for the + // "ActivityStreamsManuallyApprovesFollowersProperty" non-functional + // property in the vocabulary "ActivityStreams" + DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) // DeserializeMediaTypePropertyActivityStreams returns the deserialization // method for the "ActivityStreamsMediaTypeProperty" non-functional // property in the vocabulary "ActivityStreams" diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go index e4f64ed61..ba850008b 100644 --- a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go +++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go @@ -16,54 +16,55 @@ import ( // "type": "Application" // } type ActivityStreamsApplication struct { - ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty - ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty - ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty - ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty - ActivityStreamsBcc vocab.ActivityStreamsBccProperty - ActivityStreamsBto vocab.ActivityStreamsBtoProperty - ActivityStreamsCc vocab.ActivityStreamsCcProperty - ActivityStreamsContent vocab.ActivityStreamsContentProperty - ActivityStreamsContext vocab.ActivityStreamsContextProperty - TootDiscoverable vocab.TootDiscoverableProperty - ActivityStreamsDuration vocab.ActivityStreamsDurationProperty - ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty - TootFeatured vocab.TootFeaturedProperty - ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty - ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty - ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty - ActivityStreamsIcon vocab.ActivityStreamsIconProperty - JSONLDId vocab.JSONLDIdProperty - ActivityStreamsImage vocab.ActivityStreamsImageProperty - ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty - ActivityStreamsInbox vocab.ActivityStreamsInboxProperty - ActivityStreamsLiked vocab.ActivityStreamsLikedProperty - ActivityStreamsLikes vocab.ActivityStreamsLikesProperty - ActivityStreamsLocation vocab.ActivityStreamsLocationProperty - ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty - ActivityStreamsName vocab.ActivityStreamsNameProperty - ActivityStreamsObject vocab.ActivityStreamsObjectProperty - ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty - ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty - ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty - W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty - ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty - ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty - ActivityStreamsShares vocab.ActivityStreamsSharesProperty - ActivityStreamsSource vocab.ActivityStreamsSourceProperty - ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty - ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty - ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty - ActivityStreamsTag vocab.ActivityStreamsTagProperty - ForgeFedTeam vocab.ForgeFedTeamProperty - ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty - ActivityStreamsTo vocab.ActivityStreamsToProperty - ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty - JSONLDType vocab.JSONLDTypeProperty - ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty - ActivityStreamsUrl vocab.ActivityStreamsUrlProperty - alias string - unknown map[string]interface{} + ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty + ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty + ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty + ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty + ActivityStreamsBcc vocab.ActivityStreamsBccProperty + ActivityStreamsBto vocab.ActivityStreamsBtoProperty + ActivityStreamsCc vocab.ActivityStreamsCcProperty + ActivityStreamsContent vocab.ActivityStreamsContentProperty + ActivityStreamsContext vocab.ActivityStreamsContextProperty + TootDiscoverable vocab.TootDiscoverableProperty + ActivityStreamsDuration vocab.ActivityStreamsDurationProperty + ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty + TootFeatured vocab.TootFeaturedProperty + ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty + ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty + ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty + ActivityStreamsIcon vocab.ActivityStreamsIconProperty + JSONLDId vocab.JSONLDIdProperty + ActivityStreamsImage vocab.ActivityStreamsImageProperty + ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty + ActivityStreamsInbox vocab.ActivityStreamsInboxProperty + ActivityStreamsLiked vocab.ActivityStreamsLikedProperty + ActivityStreamsLikes vocab.ActivityStreamsLikesProperty + ActivityStreamsLocation vocab.ActivityStreamsLocationProperty + ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty + ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty + ActivityStreamsName vocab.ActivityStreamsNameProperty + ActivityStreamsObject vocab.ActivityStreamsObjectProperty + ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty + ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty + ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty + W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty + ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty + ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty + ActivityStreamsShares vocab.ActivityStreamsSharesProperty + ActivityStreamsSource vocab.ActivityStreamsSourceProperty + ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty + ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty + ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty + ActivityStreamsTag vocab.ActivityStreamsTagProperty + ForgeFedTeam vocab.ForgeFedTeamProperty + ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty + ActivityStreamsTo vocab.ActivityStreamsToProperty + ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty + JSONLDType vocab.JSONLDTypeProperty + ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty + ActivityStreamsUrl vocab.ActivityStreamsUrlProperty + alias string + unknown map[string]interface{} } // ActivityStreamsApplicationExtends returns true if the Application type extends @@ -255,6 +256,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string } else if p != nil { this.ActivityStreamsLocation = p } + if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil { + return nil, err + } else if p != nil { + this.ActivityStreamsManuallyApprovesFollowers = p + } if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { return nil, err } else if p != nil { @@ -420,6 +426,8 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string continue } else if k == "location" { continue + } else if k == "manuallyApprovesFollowers" { + continue } else if k == "mediaType" { continue } else if k == "name" { @@ -624,6 +632,12 @@ func (this ActivityStreamsApplication) GetActivityStreamsLocation() vocab.Activi return this.ActivityStreamsLocation } +// GetActivityStreamsManuallyApprovesFollowers returns the +// "manuallyApprovesFollowers" property if it exists, and nil otherwise. +func (this ActivityStreamsApplication) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty { + return this.ActivityStreamsManuallyApprovesFollowers +} + // GetActivityStreamsMediaType returns the "mediaType" property if it exists, and // nil otherwise. func (this ActivityStreamsApplication) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { @@ -818,6 +832,7 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string { m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) + m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m) m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) m = this.helperJSONLDContext(this.ActivityStreamsName, m) m = this.helperJSONLDContext(this.ActivityStreamsObject, m) @@ -1184,6 +1199,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati // Anything else is greater than nil return false } // Else: Both are nil + // Compare property "manuallyApprovesFollowers" + if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil { + if lhs.LessThan(rhs) { + return true + } else if rhs.LessThan(lhs) { + return false + } + } else if lhs == nil && rhs != nil { + // Nil is less than anything else + return true + } else if rhs != nil && rhs == nil { + // Anything else is greater than nil + return false + } // Else: Both are nil // Compare property "mediaType" if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { if lhs.LessThan(rhs) { @@ -1707,6 +1736,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro m[this.ActivityStreamsLocation.Name()] = i } } + // Maybe serialize property "manuallyApprovesFollowers" + if this.ActivityStreamsManuallyApprovesFollowers != nil { + if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil { + return nil, err + } else if i != nil { + m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i + } + } // Maybe serialize property "mediaType" if this.ActivityStreamsMediaType != nil { if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { @@ -2002,6 +2039,12 @@ func (this *ActivityStreamsApplication) SetActivityStreamsLocation(i vocab.Activ this.ActivityStreamsLocation = i } +// SetActivityStreamsManuallyApprovesFollowers sets the +// "manuallyApprovesFollowers" property. +func (this *ActivityStreamsApplication) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) { + this.ActivityStreamsManuallyApprovesFollowers = i +} + // SetActivityStreamsMediaType sets the "mediaType" property. func (this *ActivityStreamsApplication) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { this.ActivityStreamsMediaType = i |