summaryrefslogtreecommitdiff
path: root/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-07-06 15:57:11 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-06 15:57:11 +0200
commit1a66ea8998e984574b05f2ede57e017801d5926b (patch)
treeae48c96918eac7960f79270e8fe05616940d2669 /vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams
parent[chore] Update ncruces/go-sqlite3 to 0.17 (#3072) (diff)
downloadgotosocial-1a66ea8998e984574b05f2ede57e017801d5926b.tar.xz
[chore] upstep activity to v1.7.0-gts (#3074)
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams')
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go4
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go42
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go84
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go9
-rw-r--r--vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go84
24 files changed, 1069 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go
index ffd0619d8..9f2398e26 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -76,6 +80,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
index 63a8dda98..d8614fa8f 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
@@ -20,6 +20,7 @@ import (
// }
type ActivityStreamsArticle struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -35,6 +36,7 @@ type ActivityStreamsArticle struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -131,6 +133,11 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -206,6 +213,11 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -303,6 +315,8 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -335,6 +349,8 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -594,6 +610,18 @@ func (this ActivityStreamsArticle) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsArticle) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsArticle) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsArticle) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -630,6 +658,7 @@ func (this ActivityStreamsArticle) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsArticle) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -645,6 +674,7 @@ func (this ActivityStreamsArticle) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -685,6 +715,20 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -895,6 +939,20 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1178,6 +1236,14 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1298,6 +1364,14 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1616,6 +1690,16 @@ func (this *ActivityStreamsArticle) SetActivityStreamsUrl(i vocab.ActivityStream
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsArticle) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsArticle) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsArticle) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go
index 88a4c990a..90b70418b 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go
index d88a72fc7..8aa976810 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_audio/gen_type_activitystreams_audio.go
@@ -22,6 +22,7 @@ import (
// }
type ActivityStreamsAudio struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -38,6 +39,7 @@ type ActivityStreamsAudio struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -134,6 +136,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -214,6 +221,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -311,6 +323,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -345,6 +359,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -604,6 +620,18 @@ func (this ActivityStreamsAudio) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsAudio) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsAudio) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsAudio) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -645,6 +673,7 @@ func (this ActivityStreamsAudio) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -661,6 +690,7 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -701,6 +731,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -925,6 +969,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1208,6 +1266,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1336,6 +1402,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1654,6 +1728,16 @@ func (this *ActivityStreamsAudio) SetActivityStreamsUrl(i vocab.ActivityStreamsU
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsAudio) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsAudio) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsAudio) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go
index 343a63d1b..34462df39 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go
index 49c4e73e5..8ac61bd33 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_document/gen_type_activitystreams_document.go
@@ -18,6 +18,7 @@ import (
// }
type ActivityStreamsDocument struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -34,6 +35,7 @@ type ActivityStreamsDocument struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -110,6 +112,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -190,6 +197,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -287,6 +299,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -321,6 +335,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -605,6 +621,18 @@ func (this ActivityStreamsDocument) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsDocument) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsDocument) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsDocument) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -646,6 +674,7 @@ func (this ActivityStreamsDocument) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsDocument) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -662,6 +691,7 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -702,6 +732,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -926,6 +970,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1209,6 +1267,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error)
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1337,6 +1403,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error)
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1655,6 +1729,16 @@ func (this *ActivityStreamsDocument) SetActivityStreamsUrl(i vocab.ActivityStrea
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsDocument) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsDocument) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsDocument) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go
index 429cfdb35..1d95dce45 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -76,6 +80,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go
index cfe235998..9c2993207 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_event/gen_type_activitystreams_event.go
@@ -19,6 +19,7 @@ import (
// }
type ActivityStreamsEvent struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -34,6 +35,7 @@ type ActivityStreamsEvent struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -110,6 +112,11 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -185,6 +192,11 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -282,6 +294,8 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -314,6 +328,8 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -593,6 +609,18 @@ func (this ActivityStreamsEvent) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsEvent) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsEvent) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsEvent) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -629,6 +657,7 @@ func (this ActivityStreamsEvent) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsEvent) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -644,6 +673,7 @@ func (this ActivityStreamsEvent) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -684,6 +714,20 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -894,6 +938,20 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1177,6 +1235,14 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1297,6 +1363,14 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1615,6 +1689,16 @@ func (this *ActivityStreamsEvent) SetActivityStreamsUrl(i vocab.ActivityStreamsU
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsEvent) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsEvent) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsEvent) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go
index cec5187db..f8a8383fd 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -84,6 +88,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go
index 1e6681301..efe477561 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_image/gen_type_activitystreams_image.go
@@ -29,6 +29,7 @@ import (
// }
type ActivityStreamsImage struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -46,6 +47,7 @@ type ActivityStreamsImage struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -123,6 +125,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -208,6 +215,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -310,6 +322,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -346,6 +360,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -639,6 +655,18 @@ func (this ActivityStreamsImage) GetActivityStreamsWidth() vocab.ActivityStreams
return this.ActivityStreamsWidth
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsImage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsImage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsImage) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -680,6 +708,7 @@ func (this ActivityStreamsImage) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsImage) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -697,6 +726,7 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -738,6 +768,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -976,6 +1020,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1273,6 +1331,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1409,6 +1475,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1745,6 +1819,16 @@ func (this *ActivityStreamsImage) SetActivityStreamsWidth(i vocab.ActivityStream
this.ActivityStreamsWidth = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsImage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsImage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsImage) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go
index 2a49164f2..e8f125707 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_pkg.go
@@ -19,6 +19,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go
index 9d7be09cc..928c9722b 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_like/gen_type_activitystreams_like.go
@@ -24,6 +24,7 @@ import (
type ActivityStreamsLike struct {
ActivityStreamsActor vocab.ActivityStreamsActorProperty
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -124,6 +125,11 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -318,6 +324,8 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
continue
} else if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -667,6 +675,12 @@ func (this ActivityStreamsLike) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsLike) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsLike) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -704,6 +718,7 @@ func (this ActivityStreamsLike) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -777,6 +792,20 @@ func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1334,6 +1363,14 @@ func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1829,6 +1866,11 @@ func (this *ActivityStreamsLike) SetActivityStreamsUrl(i vocab.ActivityStreamsUr
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsLike) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsLike) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go
index d3088c3c5..4618d8ea5 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -76,6 +80,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go
index 6ac8034de..443ecf875 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_note/gen_type_activitystreams_note.go
@@ -19,6 +19,7 @@ import (
// }
type ActivityStreamsNote struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -34,6 +35,7 @@ type ActivityStreamsNote struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -110,6 +112,11 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -185,6 +192,11 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -282,6 +294,8 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -314,6 +328,8 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -593,6 +609,18 @@ func (this ActivityStreamsNote) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsNote) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsNote) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsNote) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -629,6 +657,7 @@ func (this ActivityStreamsNote) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsNote) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -644,6 +673,7 @@ func (this ActivityStreamsNote) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -684,6 +714,20 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -894,6 +938,20 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1177,6 +1235,14 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1297,6 +1363,14 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1615,6 +1689,16 @@ func (this *ActivityStreamsNote) SetActivityStreamsUrl(i vocab.ActivityStreamsUr
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsNote) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsNote) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsNote) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go
index eadfad1e5..b7da57286 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go
index cd01b3c2b..9f68e115e 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_page/gen_type_activitystreams_page.go
@@ -18,6 +18,7 @@ import (
// }
type ActivityStreamsPage struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -34,6 +35,7 @@ type ActivityStreamsPage struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -110,6 +112,11 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -190,6 +197,11 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -287,6 +299,8 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -321,6 +335,8 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -600,6 +616,18 @@ func (this ActivityStreamsPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsPage) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsPage) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsPage) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -641,6 +669,7 @@ func (this ActivityStreamsPage) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsPage) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -657,6 +686,7 @@ func (this ActivityStreamsPage) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -697,6 +727,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -921,6 +965,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1204,6 +1262,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1332,6 +1398,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1650,6 +1724,16 @@ func (this *ActivityStreamsPage) SetActivityStreamsUrl(i vocab.ActivityStreamsUr
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsPage) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsPage) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsPage) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go
index aa9a42b0d..88201a0b4 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_pkg.go
@@ -19,6 +19,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLatitudePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLatitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go
index 90af537c8..b9f5219f3 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_place/gen_type_activitystreams_place.go
@@ -29,6 +29,7 @@ import (
type ActivityStreamsPlace struct {
ActivityStreamsAccuracy vocab.ActivityStreamsAccuracyProperty
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -44,6 +45,7 @@ type ActivityStreamsPlace struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLatitude vocab.ActivityStreamsLatitudeProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
@@ -129,6 +131,11 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -204,6 +211,11 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLatitudePropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -323,6 +335,8 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -355,6 +369,8 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "latitude" {
continue
} else if k == "likes" {
@@ -672,6 +688,18 @@ func (this ActivityStreamsPlace) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsPlace) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsPlace) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsPlace) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -709,6 +737,7 @@ func (this ActivityStreamsPlace) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAccuracy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -724,6 +753,7 @@ func (this ActivityStreamsPlace) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLatitude, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
@@ -782,6 +812,20 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -992,6 +1036,20 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); 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 "latitude"
if lhs, rhs := this.ActivityStreamsLatitude, o.GetActivityStreamsLatitude(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1339,6 +1397,14 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1459,6 +1525,14 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "latitude"
if this.ActivityStreamsLatitude != nil {
if i, err := this.ActivityStreamsLatitude.Serialize(); err != nil {
@@ -1834,6 +1908,16 @@ func (this *ActivityStreamsPlace) SetActivityStreamsUrl(i vocab.ActivityStreamsU
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsPlace) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsPlace) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsPlace) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go
index 4f9919840..e9da24092 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go
index fb216273b..5725934a6 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_profile/gen_type_activitystreams_profile.go
@@ -23,6 +23,7 @@ import (
// }
type ActivityStreamsProfile struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -39,6 +40,7 @@ type ActivityStreamsProfile struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -115,6 +117,11 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -195,6 +202,11 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -292,6 +304,8 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -326,6 +340,8 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -611,6 +627,18 @@ func (this ActivityStreamsProfile) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsProfile) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsProfile) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsProfile) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -647,6 +675,7 @@ func (this ActivityStreamsProfile) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsProfile) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -663,6 +692,7 @@ func (this ActivityStreamsProfile) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -703,6 +733,20 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -927,6 +971,20 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1210,6 +1268,14 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1338,6 +1404,14 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1661,6 +1735,16 @@ func (this *ActivityStreamsProfile) SetActivityStreamsUrl(i vocab.ActivityStream
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsProfile) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsProfile) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsProfile) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go
index 032f7c697..2f8d56eb0 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_pkg.go
@@ -23,6 +23,10 @@ type privateManager interface {
// method for the "ActivityStreamsAnyOfProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAnyOfPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnyOfProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -92,6 +96,11 @@ type privateManager interface {
// deserialization method for the "ActivityStreamsInstrumentProperty"
// non-functional property in the vocabulary "ActivityStreams"
DeserializeInstrumentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInstrumentProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go
index 8c5d6dab3..f165591dc 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_question/gen_type_activitystreams_question.go
@@ -41,6 +41,7 @@ type ActivityStreamsQuestion struct {
ActivityStreamsActor vocab.ActivityStreamsActorProperty
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
ActivityStreamsAnyOf vocab.ActivityStreamsAnyOfProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -58,6 +59,7 @@ type ActivityStreamsQuestion struct {
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
ActivityStreamsInstrument vocab.ActivityStreamsInstrumentProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -148,6 +150,11 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
} else if p != nil {
this.ActivityStreamsAnyOf = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -233,6 +240,11 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
} else if p != nil {
this.ActivityStreamsInstrument = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -354,6 +366,8 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
continue
} else if k == "anyOf" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -390,6 +404,8 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
continue
} else if k == "instrument" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -719,6 +735,18 @@ func (this ActivityStreamsQuestion) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsQuestion) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsQuestion) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsQuestion) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -763,6 +791,7 @@ func (this ActivityStreamsQuestion) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsActor, m)
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
m = this.helperJSONLDContext(this.ActivityStreamsAnyOf, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -780,6 +809,7 @@ func (this ActivityStreamsQuestion) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsInstrument, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -852,6 +882,20 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1090,6 +1134,20 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1445,6 +1503,14 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error)
m[this.ActivityStreamsAnyOf.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1581,6 +1647,14 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error)
m[this.ActivityStreamsInstrument.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1966,6 +2040,16 @@ func (this *ActivityStreamsQuestion) SetActivityStreamsUrl(i vocab.ActivityStrea
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsQuestion) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsQuestion) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsQuestion) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go
index e7fcae287..1ecea478d 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_pkg.go
@@ -15,6 +15,10 @@ type privateManager interface {
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
+ // DeserializeApprovedByPropertyGoToSocial returns the deserialization
+ // method for the "GoToSocialApprovedByProperty" non-functional
+ // property in the vocabulary "GoToSocial"
+ DeserializeApprovedByPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialApprovedByProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
@@ -80,6 +84,11 @@ type privateManager interface {
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
+ // DeserializeInteractionPolicyPropertyGoToSocial returns the
+ // deserialization method for the
+ // "GoToSocialInteractionPolicyProperty" non-functional property in
+ // the vocabulary "GoToSocial"
+ DeserializeInteractionPolicyPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialInteractionPolicyProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go
index 75a1baeae..5fb390177 100644
--- a/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go
+++ b/vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/type_video/gen_type_activitystreams_video.go
@@ -19,6 +19,7 @@ import (
// }
type ActivityStreamsVideo struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
+ GoToSocialApprovedBy vocab.GoToSocialApprovedByProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
@@ -35,6 +36,7 @@ type ActivityStreamsVideo struct {
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
+ GoToSocialInteractionPolicy vocab.GoToSocialInteractionPolicyProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
@@ -111,6 +113,11 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsAltitude = p
}
+ if p, err := mgr.DeserializeApprovedByPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialApprovedBy = p
+ }
if p, err := mgr.DeserializeAttachmentPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -191,6 +198,11 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsInReplyTo = p
}
+ if p, err := mgr.DeserializeInteractionPolicyPropertyGoToSocial()(m, aliasMap); err != nil {
+ return nil, err
+ } else if p != nil {
+ this.GoToSocialInteractionPolicy = p
+ }
if p, err := mgr.DeserializeLikesPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@@ -288,6 +300,8 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac
// Begin: Code that ensures a property name is unknown
if k == "altitude" {
continue
+ } else if k == "approvedBy" {
+ continue
} else if k == "attachment" {
continue
} else if k == "attributedTo" {
@@ -322,6 +336,8 @@ func DeserializeVideo(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "inReplyTo" {
continue
+ } else if k == "interactionPolicy" {
+ continue
} else if k == "likes" {
continue
} else if k == "location" {
@@ -601,6 +617,18 @@ func (this ActivityStreamsVideo) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
+// GetGoToSocialApprovedBy returns the "approvedBy" property if it exists, and nil
+// otherwise.
+func (this ActivityStreamsVideo) GetGoToSocialApprovedBy() vocab.GoToSocialApprovedByProperty {
+ return this.GoToSocialApprovedBy
+}
+
+// GetGoToSocialInteractionPolicy returns the "interactionPolicy" property if it
+// exists, and nil otherwise.
+func (this ActivityStreamsVideo) GetGoToSocialInteractionPolicy() vocab.GoToSocialInteractionPolicyProperty {
+ return this.GoToSocialInteractionPolicy
+}
+
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsVideo) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@@ -642,6 +670,7 @@ func (this ActivityStreamsVideo) IsExtending(other vocab.Type) bool {
func (this ActivityStreamsVideo) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
+ m = this.helperJSONLDContext(this.GoToSocialApprovedBy, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
@@ -658,6 +687,7 @@ func (this ActivityStreamsVideo) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
m = this.helperJSONLDContext(this.ActivityStreamsInReplyTo, m)
+ m = this.helperJSONLDContext(this.GoToSocialInteractionPolicy, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
@@ -698,6 +728,20 @@ func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "approvedBy"
+ if lhs, rhs := this.GoToSocialApprovedBy, o.GetGoToSocialApprovedBy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "attachment"
if lhs, rhs := this.ActivityStreamsAttachment, o.GetActivityStreamsAttachment(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -922,6 +966,20 @@ func (this ActivityStreamsVideo) LessThan(o vocab.ActivityStreamsVideo) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
+ // Compare property "interactionPolicy"
+ if lhs, rhs := this.GoToSocialInteractionPolicy, o.GetGoToSocialInteractionPolicy(); lhs != nil && rhs != nil {
+ if lhs.LessThan(rhs) {
+ return true
+ } else if rhs.LessThan(lhs) {
+ return false
+ }
+ } else if lhs == nil && rhs != nil {
+ // Nil is less than anything else
+ return true
+ } else if rhs != nil && rhs == nil {
+ // Anything else is greater than nil
+ return false
+ } // Else: Both are nil
// Compare property "likes"
if lhs, rhs := this.ActivityStreamsLikes, o.GetActivityStreamsLikes(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@@ -1205,6 +1263,14 @@ func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsAltitude.Name()] = i
}
}
+ // Maybe serialize property "approvedBy"
+ if this.GoToSocialApprovedBy != nil {
+ if i, err := this.GoToSocialApprovedBy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialApprovedBy.Name()] = i
+ }
+ }
// Maybe serialize property "attachment"
if this.ActivityStreamsAttachment != nil {
if i, err := this.ActivityStreamsAttachment.Serialize(); err != nil {
@@ -1333,6 +1399,14 @@ func (this ActivityStreamsVideo) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsInReplyTo.Name()] = i
}
}
+ // Maybe serialize property "interactionPolicy"
+ if this.GoToSocialInteractionPolicy != nil {
+ if i, err := this.GoToSocialInteractionPolicy.Serialize(); err != nil {
+ return nil, err
+ } else if i != nil {
+ m[this.GoToSocialInteractionPolicy.Name()] = i
+ }
+ }
// Maybe serialize property "likes"
if this.ActivityStreamsLikes != nil {
if i, err := this.ActivityStreamsLikes.Serialize(); err != nil {
@@ -1651,6 +1725,16 @@ func (this *ActivityStreamsVideo) SetActivityStreamsUrl(i vocab.ActivityStreamsU
this.ActivityStreamsUrl = i
}
+// SetGoToSocialApprovedBy sets the "approvedBy" property.
+func (this *ActivityStreamsVideo) SetGoToSocialApprovedBy(i vocab.GoToSocialApprovedByProperty) {
+ this.GoToSocialApprovedBy = i
+}
+
+// SetGoToSocialInteractionPolicy sets the "interactionPolicy" property.
+func (this *ActivityStreamsVideo) SetGoToSocialInteractionPolicy(i vocab.GoToSocialInteractionPolicyProperty) {
+ this.GoToSocialInteractionPolicy = i
+}
+
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsVideo) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i