add manuallyApprovesFollowers property on actors

This commit is contained in:
tsmethurst 2021-08-03 15:52:03 +02:00
parent 4655f8f1e1
commit 5498bae4cf
24 changed files with 878 additions and 240 deletions

View file

@ -5399,6 +5399,51 @@
}, },
"name": "preferredUsername", "name": "preferredUsername",
"url": "https://www.w3.org/TR/activitypub/#preferredUsername" "url": "https://www.w3.org/TR/activitypub/#preferredUsername"
},
{
"id": "https://www.w3.org/TR/activitypub/#manuallyApprovesFollowers",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"notes": "Indicates that the actor manually approves Follow activities and that an automatic Accept should not be expected.",
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Application",
"name": "Application"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Group",
"name": "Group"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Organization",
"name": "Organization"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Person",
"name": "Person"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Service",
"name": "Service"
}
]
},
"isDefinedBy": "https://www.w3.org/TR/activitypub/#manuallyApprovesFollowers",
"range": {
"type": "owl:Class",
"unionOf": "xsd:boolean"
},
"name": "manuallyApprovesFollowers",
"url": "https://www.w3.org/TR/activitypub/#manuallyApprovesFollowers"
} }
] ]
} }

View file

@ -362,6 +362,9 @@ var ActivityStreamsLocationPropertyName string = "location"
// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary. // ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary.
var ActivityStreamsLongitudePropertyName string = "longitude" var ActivityStreamsLongitudePropertyName string = "longitude"
// ActivityStreamsManuallyApprovesFollowersPropertyName is the string literal of the name for the manuallyApprovesFollowers property in the ActivityStreams vocabulary.
var ActivityStreamsManuallyApprovesFollowersPropertyName string = "manuallyApprovesFollowers"
// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary. // ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
var ActivityStreamsMediaTypePropertyName string = "mediaType" var ActivityStreamsMediaTypePropertyName string = "mediaType"

View file

@ -41,6 +41,7 @@ import (
propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
@ -218,6 +219,7 @@ func init() {
propertylikes.SetManager(mgr) propertylikes.SetManager(mgr)
propertylocation.SetManager(mgr) propertylocation.SetManager(mgr)
propertylongitude.SetManager(mgr) propertylongitude.SetManager(mgr)
propertymanuallyapprovesfollowers.SetManager(mgr)
propertymediatype.SetManager(mgr) propertymediatype.SetManager(mgr)
propertyname.SetManager(mgr) propertyname.SetManager(mgr)
propertynext.SetManager(mgr) propertynext.SetManager(mgr)

View file

@ -41,6 +41,7 @@ import (
propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
@ -1323,6 +1324,20 @@ func (this Manager) DeserializeLongitudePropertyActivityStreams() func(map[strin
} }
} }
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional property
// in the vocabulary "ActivityStreams"
func (this Manager) DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error) {
i, err := propertymanuallyapprovesfollowers.DeserializeManuallyApprovesFollowersProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeMediaTypePropertyActivityStreams returns the deserialization method // DeserializeMediaTypePropertyActivityStreams returns the deserialization method
// for the "ActivityStreamsMediaTypeProperty" non-functional property in the // for the "ActivityStreamsMediaTypeProperty" non-functional property in the
// vocabulary "ActivityStreams" // vocabulary "ActivityStreams"

View file

@ -41,6 +41,7 @@ import (
propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes" propertylikes "github.com/go-fed/activity/streams/impl/activitystreams/property_likes"
propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location" propertylocation "github.com/go-fed/activity/streams/impl/activitystreams/property_location"
propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude" propertylongitude "github.com/go-fed/activity/streams/impl/activitystreams/property_longitude"
propertymanuallyapprovesfollowers "github.com/go-fed/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype" propertymediatype "github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype"
propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name" propertyname "github.com/go-fed/activity/streams/impl/activitystreams/property_name"
propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next" propertynext "github.com/go-fed/activity/streams/impl/activitystreams/property_next"
@ -305,6 +306,12 @@ func NewActivityStreamsLongitudeProperty() vocab.ActivityStreamsLongitudePropert
return propertylongitude.NewActivityStreamsLongitudeProperty() return propertylongitude.NewActivityStreamsLongitudeProperty()
} }
// NewActivityStreamsActivityStreamsManuallyApprovesFollowersProperty creates a
// new ActivityStreamsManuallyApprovesFollowersProperty
func NewActivityStreamsManuallyApprovesFollowersProperty() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return propertymanuallyapprovesfollowers.NewActivityStreamsManuallyApprovesFollowersProperty()
}
// NewActivityStreamsActivityStreamsMediaTypeProperty creates a new // NewActivityStreamsActivityStreamsMediaTypeProperty creates a new
// ActivityStreamsMediaTypeProperty // ActivityStreamsMediaTypeProperty
func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty { func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypeProperty {

View file

@ -0,0 +1,17 @@
// Code generated by astool. DO NOT EDIT.
// Package propertymanuallyapprovesfollowers contains the implementation for the
// manuallyApprovesFollowers property. All applications are strongly
// encouraged to use the interface instead of this concrete definition. The
// interfaces allow applications to consume only the types and properties
// needed and be independent of the go-fed implementation if another
// alternative implementation is created. This package is code-generated and
// subject to the same license as the go-fed tool used to generate it.
//
// This package is independent of other types' and properties' implementations
// by having a Manager injected into it to act as a factory for the concrete
// implementations. The implementations have been generated into their own
// separate subpackages for each vocabulary.
//
// Strongly consider using the interfaces instead of this package.
package propertymanuallyapprovesfollowers

View file

@ -0,0 +1,15 @@
// Code generated by astool. DO NOT EDIT.
package propertymanuallyapprovesfollowers
var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface{}
// SetManager sets the manager package-global variable. For internal use only, do
// not use as part of Application behavior. Must be called at golang init time.
func SetManager(m privateManager) {
mgr = m
}

View file

@ -0,0 +1,206 @@
// Code generated by astool. DO NOT EDIT.
package propertymanuallyapprovesfollowers
import (
"fmt"
boolean "github.com/go-fed/activity/streams/values/boolean"
vocab "github.com/go-fed/activity/streams/vocab"
"net/url"
)
// ActivityStreamsManuallyApprovesFollowersProperty is the functional property
// "manuallyApprovesFollowers". It is permitted to be a single default-valued
// value type.
type ActivityStreamsManuallyApprovesFollowersProperty struct {
xmlschemaBooleanMember bool
hasBooleanMember bool
unknown interface{}
iri *url.URL
alias string
}
// DeserializeManuallyApprovesFollowersProperty creates a
// "manuallyApprovesFollowers" property from an interface representation that
// has been unmarshalled from a text or binary format.
func DeserializeManuallyApprovesFollowersProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsManuallyApprovesFollowersProperty, error) {
alias := ""
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
alias = a
}
propName := "manuallyApprovesFollowers"
if len(alias) > 0 {
// Use alias both to find the property, and set within the property.
propName = fmt.Sprintf("%s:%s", alias, "manuallyApprovesFollowers")
}
i, ok := m[propName]
if ok {
if s, ok := i.(string); ok {
u, err := url.Parse(s)
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
if err == nil && len(u.Scheme) > 0 {
this := &ActivityStreamsManuallyApprovesFollowersProperty{
alias: alias,
iri: u,
}
return this, nil
}
}
if v, err := boolean.DeserializeBoolean(i); err == nil {
this := &ActivityStreamsManuallyApprovesFollowersProperty{
alias: alias,
hasBooleanMember: true,
xmlschemaBooleanMember: v,
}
return this, nil
}
this := &ActivityStreamsManuallyApprovesFollowersProperty{
alias: alias,
unknown: i,
}
return this, nil
}
return nil, nil
}
// NewActivityStreamsManuallyApprovesFollowersProperty creates a new
// manuallyApprovesFollowers property.
func NewActivityStreamsManuallyApprovesFollowersProperty() *ActivityStreamsManuallyApprovesFollowersProperty {
return &ActivityStreamsManuallyApprovesFollowersProperty{alias: ""}
}
// Clear ensures no value of this property is set. Calling IsXMLSchemaBoolean
// afterwards will return false.
func (this *ActivityStreamsManuallyApprovesFollowersProperty) Clear() {
this.unknown = nil
this.iri = nil
this.hasBooleanMember = false
}
// Get returns the value of this property. When IsXMLSchemaBoolean returns false,
// Get will return any arbitrary value.
func (this ActivityStreamsManuallyApprovesFollowersProperty) Get() bool {
return this.xmlschemaBooleanMember
}
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
// return any arbitrary value.
func (this ActivityStreamsManuallyApprovesFollowersProperty) GetIRI() *url.URL {
return this.iri
}
// HasAny returns true if the value or IRI is set.
func (this ActivityStreamsManuallyApprovesFollowersProperty) HasAny() bool {
return this.IsXMLSchemaBoolean() || this.iri != nil
}
// IsIRI returns true if this property is an IRI.
func (this ActivityStreamsManuallyApprovesFollowersProperty) IsIRI() bool {
return this.iri != nil
}
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
func (this ActivityStreamsManuallyApprovesFollowersProperty) IsXMLSchemaBoolean() bool {
return this.hasBooleanMember
}
// JSONLDContext returns the JSONLD URIs required in the context string for this
// property and the specific values that are set. The value in the map is the
// alias used to import the property's value or values.
func (this ActivityStreamsManuallyApprovesFollowersProperty) JSONLDContext() map[string]string {
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
var child map[string]string
/*
Since the literal maps in this function are determined at
code-generation time, this loop should not overwrite an existing key with a
new value.
*/
for k, v := range child {
m[k] = v
}
return m
}
// KindIndex computes an arbitrary value for indexing this kind of value. This is
// a leaky API detail only for folks looking to replace the go-fed
// implementation. Applications should not use this method.
func (this ActivityStreamsManuallyApprovesFollowersProperty) KindIndex() int {
if this.IsXMLSchemaBoolean() {
return 0
}
if this.IsIRI() {
return -2
}
return -1
}
// LessThan compares two instances of this property with an arbitrary but stable
// comparison. Applications should not use this because it is only meant to
// help alternative implementations to go-fed to be able to normalize
// nonfunctional properties.
func (this ActivityStreamsManuallyApprovesFollowersProperty) LessThan(o vocab.ActivityStreamsManuallyApprovesFollowersProperty) bool {
// LessThan comparison for if either or both are IRIs.
if this.IsIRI() && o.IsIRI() {
return this.iri.String() < o.GetIRI().String()
} else if this.IsIRI() {
// IRIs are always less than other values, none, or unknowns
return true
} else if o.IsIRI() {
// This other, none, or unknown value is always greater than IRIs
return false
}
// LessThan comparison for the single value or unknown value.
if !this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
// Both are unknowns.
return false
} else if this.IsXMLSchemaBoolean() && !o.IsXMLSchemaBoolean() {
// Values are always greater than unknown values.
return false
} else if !this.IsXMLSchemaBoolean() && o.IsXMLSchemaBoolean() {
// Unknowns are always less than known values.
return true
} else {
// Actual comparison.
return boolean.LessBoolean(this.Get(), o.Get())
}
}
// Name returns the name of this property: "manuallyApprovesFollowers".
func (this ActivityStreamsManuallyApprovesFollowersProperty) Name() string {
if len(this.alias) > 0 {
return this.alias + ":" + "manuallyApprovesFollowers"
} else {
return "manuallyApprovesFollowers"
}
}
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not need this
// function as most typical use cases serialize types instead of individual
// properties. It is exposed for alternatives to go-fed implementations to use.
func (this ActivityStreamsManuallyApprovesFollowersProperty) Serialize() (interface{}, error) {
if this.IsXMLSchemaBoolean() {
return boolean.SerializeBoolean(this.Get())
} else if this.IsIRI() {
return this.iri.String(), nil
}
return this.unknown, nil
}
// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will
// return true.
func (this *ActivityStreamsManuallyApprovesFollowersProperty) Set(v bool) {
this.Clear()
this.xmlschemaBooleanMember = v
this.hasBooleanMember = true
}
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
// true.
func (this *ActivityStreamsManuallyApprovesFollowersProperty) SetIRI(v *url.URL) {
this.Clear()
this.iri = v
}

View file

@ -108,6 +108,11 @@ type privateManager interface {
// method for the "ActivityStreamsLocationProperty" non-functional // method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization // DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional // method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"

View file

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

View file

@ -108,6 +108,11 @@ type privateManager interface {
// method for the "ActivityStreamsLocationProperty" non-functional // method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization // DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional // method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"

View file

@ -16,54 +16,55 @@ import (
// "type": "Group" // "type": "Group"
// } // }
type ActivityStreamsGroup struct { type ActivityStreamsGroup struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty ActivityStreamsBcc vocab.ActivityStreamsBccProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty ActivityStreamsContent vocab.ActivityStreamsContentProperty
ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsContext vocab.ActivityStreamsContextProperty
TootDiscoverable vocab.TootDiscoverableProperty TootDiscoverable vocab.TootDiscoverableProperty
ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
TootFeatured vocab.TootFeaturedProperty TootFeatured vocab.TootFeaturedProperty
ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
ActivityStreamsIcon vocab.ActivityStreamsIconProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty
JSONLDId vocab.JSONLDIdProperty JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
ActivityStreamsInbox vocab.ActivityStreamsInboxProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty
ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
ActivityStreamsName vocab.ActivityStreamsNameProperty ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
ActivityStreamsObject vocab.ActivityStreamsObjectProperty ActivityStreamsName vocab.ActivityStreamsNameProperty
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty ActivityStreamsObject vocab.ActivityStreamsObjectProperty
ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
ActivityStreamsShares vocab.ActivityStreamsSharesProperty ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
ActivityStreamsSource vocab.ActivityStreamsSourceProperty ActivityStreamsShares vocab.ActivityStreamsSharesProperty
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSource vocab.ActivityStreamsSourceProperty
ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty
ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
ForgeFedTeam vocab.ForgeFedTeamProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty
ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ForgeFedTeam vocab.ForgeFedTeamProperty
ActivityStreamsTo vocab.ActivityStreamsToProperty ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty ActivityStreamsTo vocab.ActivityStreamsToProperty
JSONLDType vocab.JSONLDTypeProperty ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty JSONLDType vocab.JSONLDTypeProperty
ActivityStreamsUrl vocab.ActivityStreamsUrlProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
alias string ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
unknown map[string]interface{} alias string
unknown map[string]interface{}
} }
// ActivityStreamsGroupExtends returns true if the Group type extends from the // ActivityStreamsGroupExtends returns true if the Group type extends from the
@ -235,6 +236,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil { } else if p != nil {
this.ActivityStreamsLocation = p this.ActivityStreamsLocation = p
} }
if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.ActivityStreamsManuallyApprovesFollowers = p
}
if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err return nil, err
} else if p != nil { } else if p != nil {
@ -400,6 +406,8 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue continue
} else if k == "location" { } else if k == "location" {
continue continue
} else if k == "manuallyApprovesFollowers" {
continue
} else if k == "mediaType" { } else if k == "mediaType" {
continue continue
} else if k == "name" { } else if k == "name" {
@ -624,6 +632,12 @@ func (this ActivityStreamsGroup) GetActivityStreamsLocation() vocab.ActivityStre
return this.ActivityStreamsLocation return this.ActivityStreamsLocation
} }
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil otherwise.
func (this ActivityStreamsGroup) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return this.ActivityStreamsManuallyApprovesFollowers
}
// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and // GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
// nil otherwise. // nil otherwise.
func (this ActivityStreamsGroup) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { func (this ActivityStreamsGroup) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
@ -818,6 +832,7 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
m = this.helperJSONLDContext(this.ActivityStreamsName, m) m = this.helperJSONLDContext(this.ActivityStreamsName, m)
m = this.helperJSONLDContext(this.ActivityStreamsObject, m) m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
@ -1184,6 +1199,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
// Anything else is greater than nil // Anything else is greater than nil
return false return false
} // Else: Both are nil } // Else: Both are nil
// Compare property "manuallyApprovesFollowers"
if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "mediaType" // Compare property "mediaType"
if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) { if lhs.LessThan(rhs) {
@ -1707,6 +1736,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsLocation.Name()] = i m[this.ActivityStreamsLocation.Name()] = i
} }
} }
// Maybe serialize property "manuallyApprovesFollowers"
if this.ActivityStreamsManuallyApprovesFollowers != nil {
if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i
}
}
// Maybe serialize property "mediaType" // Maybe serialize property "mediaType"
if this.ActivityStreamsMediaType != nil { if this.ActivityStreamsMediaType != nil {
if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
@ -2002,6 +2039,12 @@ func (this *ActivityStreamsGroup) SetActivityStreamsLocation(i vocab.ActivityStr
this.ActivityStreamsLocation = i this.ActivityStreamsLocation = i
} }
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
func (this *ActivityStreamsGroup) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) {
this.ActivityStreamsManuallyApprovesFollowers = i
}
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
func (this *ActivityStreamsGroup) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { func (this *ActivityStreamsGroup) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
this.ActivityStreamsMediaType = i this.ActivityStreamsMediaType = i

View file

@ -108,6 +108,11 @@ type privateManager interface {
// method for the "ActivityStreamsLocationProperty" non-functional // method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization // DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional // method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"

View file

@ -16,54 +16,55 @@ import (
// "type": "Organization" // "type": "Organization"
// } // }
type ActivityStreamsOrganization struct { type ActivityStreamsOrganization struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty ActivityStreamsBcc vocab.ActivityStreamsBccProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty ActivityStreamsContent vocab.ActivityStreamsContentProperty
ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsContext vocab.ActivityStreamsContextProperty
TootDiscoverable vocab.TootDiscoverableProperty TootDiscoverable vocab.TootDiscoverableProperty
ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
TootFeatured vocab.TootFeaturedProperty TootFeatured vocab.TootFeaturedProperty
ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
ActivityStreamsIcon vocab.ActivityStreamsIconProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty
JSONLDId vocab.JSONLDIdProperty JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
ActivityStreamsInbox vocab.ActivityStreamsInboxProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty
ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
ActivityStreamsName vocab.ActivityStreamsNameProperty ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
ActivityStreamsObject vocab.ActivityStreamsObjectProperty ActivityStreamsName vocab.ActivityStreamsNameProperty
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty ActivityStreamsObject vocab.ActivityStreamsObjectProperty
ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
ActivityStreamsShares vocab.ActivityStreamsSharesProperty ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
ActivityStreamsSource vocab.ActivityStreamsSourceProperty ActivityStreamsShares vocab.ActivityStreamsSharesProperty
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSource vocab.ActivityStreamsSourceProperty
ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty
ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
ForgeFedTeam vocab.ForgeFedTeamProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty
ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ForgeFedTeam vocab.ForgeFedTeamProperty
ActivityStreamsTo vocab.ActivityStreamsToProperty ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty ActivityStreamsTo vocab.ActivityStreamsToProperty
JSONLDType vocab.JSONLDTypeProperty ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty JSONLDType vocab.JSONLDTypeProperty
ActivityStreamsUrl vocab.ActivityStreamsUrlProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
alias string ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
unknown map[string]interface{} alias string
unknown map[string]interface{}
} }
// ActivityStreamsOrganizationExtends returns true if the Organization type // ActivityStreamsOrganizationExtends returns true if the Organization type
@ -235,6 +236,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
} else if p != nil { } else if p != nil {
this.ActivityStreamsLocation = p this.ActivityStreamsLocation = p
} }
if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.ActivityStreamsManuallyApprovesFollowers = p
}
if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err return nil, err
} else if p != nil { } else if p != nil {
@ -400,6 +406,8 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
continue continue
} else if k == "location" { } else if k == "location" {
continue continue
} else if k == "manuallyApprovesFollowers" {
continue
} else if k == "mediaType" { } else if k == "mediaType" {
continue continue
} else if k == "name" { } else if k == "name" {
@ -624,6 +632,12 @@ func (this ActivityStreamsOrganization) GetActivityStreamsLocation() vocab.Activ
return this.ActivityStreamsLocation return this.ActivityStreamsLocation
} }
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil otherwise.
func (this ActivityStreamsOrganization) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return this.ActivityStreamsManuallyApprovesFollowers
}
// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and // GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
// nil otherwise. // nil otherwise.
func (this ActivityStreamsOrganization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { func (this ActivityStreamsOrganization) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
@ -818,6 +832,7 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
m = this.helperJSONLDContext(this.ActivityStreamsName, m) m = this.helperJSONLDContext(this.ActivityStreamsName, m)
m = this.helperJSONLDContext(this.ActivityStreamsObject, m) m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
@ -1184,6 +1199,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza
// Anything else is greater than nil // Anything else is greater than nil
return false return false
} // Else: Both are nil } // Else: Both are nil
// Compare property "manuallyApprovesFollowers"
if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "mediaType" // Compare property "mediaType"
if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) { if lhs.LessThan(rhs) {
@ -1707,6 +1736,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
m[this.ActivityStreamsLocation.Name()] = i m[this.ActivityStreamsLocation.Name()] = i
} }
} }
// Maybe serialize property "manuallyApprovesFollowers"
if this.ActivityStreamsManuallyApprovesFollowers != nil {
if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i
}
}
// Maybe serialize property "mediaType" // Maybe serialize property "mediaType"
if this.ActivityStreamsMediaType != nil { if this.ActivityStreamsMediaType != nil {
if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
@ -2002,6 +2039,12 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsLocation(i vocab.Acti
this.ActivityStreamsLocation = i this.ActivityStreamsLocation = i
} }
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
func (this *ActivityStreamsOrganization) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) {
this.ActivityStreamsManuallyApprovesFollowers = i
}
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
func (this *ActivityStreamsOrganization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { func (this *ActivityStreamsOrganization) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
this.ActivityStreamsMediaType = i this.ActivityStreamsMediaType = i

View file

@ -108,6 +108,11 @@ type privateManager interface {
// method for the "ActivityStreamsLocationProperty" non-functional // method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization // DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional // method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"

View file

@ -16,54 +16,55 @@ import (
// "type": "Person" // "type": "Person"
// } // }
type ActivityStreamsPerson struct { type ActivityStreamsPerson struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty ActivityStreamsBcc vocab.ActivityStreamsBccProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty ActivityStreamsContent vocab.ActivityStreamsContentProperty
ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsContext vocab.ActivityStreamsContextProperty
TootDiscoverable vocab.TootDiscoverableProperty TootDiscoverable vocab.TootDiscoverableProperty
ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
TootFeatured vocab.TootFeaturedProperty TootFeatured vocab.TootFeaturedProperty
ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
ActivityStreamsIcon vocab.ActivityStreamsIconProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty
JSONLDId vocab.JSONLDIdProperty JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
ActivityStreamsInbox vocab.ActivityStreamsInboxProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty
ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
ActivityStreamsName vocab.ActivityStreamsNameProperty ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
ActivityStreamsObject vocab.ActivityStreamsObjectProperty ActivityStreamsName vocab.ActivityStreamsNameProperty
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty ActivityStreamsObject vocab.ActivityStreamsObjectProperty
ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
ActivityStreamsShares vocab.ActivityStreamsSharesProperty ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
ActivityStreamsSource vocab.ActivityStreamsSourceProperty ActivityStreamsShares vocab.ActivityStreamsSharesProperty
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSource vocab.ActivityStreamsSourceProperty
ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty
ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
ForgeFedTeam vocab.ForgeFedTeamProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty
ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ForgeFedTeam vocab.ForgeFedTeamProperty
ActivityStreamsTo vocab.ActivityStreamsToProperty ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty ActivityStreamsTo vocab.ActivityStreamsToProperty
JSONLDType vocab.JSONLDTypeProperty ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty JSONLDType vocab.JSONLDTypeProperty
ActivityStreamsUrl vocab.ActivityStreamsUrlProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
alias string ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
unknown map[string]interface{} alias string
unknown map[string]interface{}
} }
// ActivityStreamsPersonExtends returns true if the Person type extends from the // ActivityStreamsPersonExtends returns true if the Person type extends from the
@ -235,6 +236,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
} else if p != nil { } else if p != nil {
this.ActivityStreamsLocation = p this.ActivityStreamsLocation = p
} }
if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.ActivityStreamsManuallyApprovesFollowers = p
}
if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err return nil, err
} else if p != nil { } else if p != nil {
@ -400,6 +406,8 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
continue continue
} else if k == "location" { } else if k == "location" {
continue continue
} else if k == "manuallyApprovesFollowers" {
continue
} else if k == "mediaType" { } else if k == "mediaType" {
continue continue
} else if k == "name" { } else if k == "name" {
@ -624,6 +632,12 @@ func (this ActivityStreamsPerson) GetActivityStreamsLocation() vocab.ActivityStr
return this.ActivityStreamsLocation return this.ActivityStreamsLocation
} }
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil otherwise.
func (this ActivityStreamsPerson) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return this.ActivityStreamsManuallyApprovesFollowers
}
// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and // GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
// nil otherwise. // nil otherwise.
func (this ActivityStreamsPerson) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { func (this ActivityStreamsPerson) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
@ -818,6 +832,7 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
m = this.helperJSONLDContext(this.ActivityStreamsName, m) m = this.helperJSONLDContext(this.ActivityStreamsName, m)
m = this.helperJSONLDContext(this.ActivityStreamsObject, m) m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
@ -1184,6 +1199,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
// Anything else is greater than nil // Anything else is greater than nil
return false return false
} // Else: Both are nil } // Else: Both are nil
// Compare property "manuallyApprovesFollowers"
if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "mediaType" // Compare property "mediaType"
if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) { if lhs.LessThan(rhs) {
@ -1707,6 +1736,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsLocation.Name()] = i m[this.ActivityStreamsLocation.Name()] = i
} }
} }
// Maybe serialize property "manuallyApprovesFollowers"
if this.ActivityStreamsManuallyApprovesFollowers != nil {
if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i
}
}
// Maybe serialize property "mediaType" // Maybe serialize property "mediaType"
if this.ActivityStreamsMediaType != nil { if this.ActivityStreamsMediaType != nil {
if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
@ -2002,6 +2039,12 @@ func (this *ActivityStreamsPerson) SetActivityStreamsLocation(i vocab.ActivitySt
this.ActivityStreamsLocation = i this.ActivityStreamsLocation = i
} }
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
func (this *ActivityStreamsPerson) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) {
this.ActivityStreamsManuallyApprovesFollowers = i
}
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
func (this *ActivityStreamsPerson) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { func (this *ActivityStreamsPerson) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
this.ActivityStreamsMediaType = i this.ActivityStreamsMediaType = i

View file

@ -108,6 +108,11 @@ type privateManager interface {
// method for the "ActivityStreamsLocationProperty" non-functional // method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error) DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeManuallyApprovesFollowersPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsManuallyApprovesFollowersProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeManuallyApprovesFollowersPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsManuallyApprovesFollowersProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization // DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional // method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams" // property in the vocabulary "ActivityStreams"

View file

@ -16,54 +16,55 @@ import (
// "type": "Service" // "type": "Service"
// } // }
type ActivityStreamsService struct { type ActivityStreamsService struct {
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty ActivityStreamsBcc vocab.ActivityStreamsBccProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty ActivityStreamsContent vocab.ActivityStreamsContentProperty
ActivityStreamsContext vocab.ActivityStreamsContextProperty ActivityStreamsContext vocab.ActivityStreamsContextProperty
TootDiscoverable vocab.TootDiscoverableProperty TootDiscoverable vocab.TootDiscoverableProperty
ActivityStreamsDuration vocab.ActivityStreamsDurationProperty ActivityStreamsDuration vocab.ActivityStreamsDurationProperty
ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty ActivityStreamsEndTime vocab.ActivityStreamsEndTimeProperty
TootFeatured vocab.TootFeaturedProperty TootFeatured vocab.TootFeaturedProperty
ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
ActivityStreamsIcon vocab.ActivityStreamsIconProperty ActivityStreamsIcon vocab.ActivityStreamsIconProperty
JSONLDId vocab.JSONLDIdProperty JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty ActivityStreamsImage vocab.ActivityStreamsImageProperty
ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty ActivityStreamsInReplyTo vocab.ActivityStreamsInReplyToProperty
ActivityStreamsInbox vocab.ActivityStreamsInboxProperty ActivityStreamsInbox vocab.ActivityStreamsInboxProperty
ActivityStreamsLiked vocab.ActivityStreamsLikedProperty ActivityStreamsLiked vocab.ActivityStreamsLikedProperty
ActivityStreamsLikes vocab.ActivityStreamsLikesProperty ActivityStreamsLikes vocab.ActivityStreamsLikesProperty
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
ActivityStreamsName vocab.ActivityStreamsNameProperty ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
ActivityStreamsObject vocab.ActivityStreamsObjectProperty ActivityStreamsName vocab.ActivityStreamsNameProperty
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty ActivityStreamsObject vocab.ActivityStreamsObjectProperty
ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty ActivityStreamsPreferredUsername vocab.ActivityStreamsPreferredUsernameProperty
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
ActivityStreamsShares vocab.ActivityStreamsSharesProperty ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
ActivityStreamsSource vocab.ActivityStreamsSourceProperty ActivityStreamsShares vocab.ActivityStreamsSharesProperty
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty ActivityStreamsSource vocab.ActivityStreamsSourceProperty
ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty ActivityStreamsStreams vocab.ActivityStreamsStreamsProperty
ActivityStreamsTag vocab.ActivityStreamsTagProperty ActivityStreamsSummary vocab.ActivityStreamsSummaryProperty
ForgeFedTeam vocab.ForgeFedTeamProperty ActivityStreamsTag vocab.ActivityStreamsTagProperty
ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty ForgeFedTeam vocab.ForgeFedTeamProperty
ActivityStreamsTo vocab.ActivityStreamsToProperty ForgeFedTicketsTrackedBy vocab.ForgeFedTicketsTrackedByProperty
ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty ActivityStreamsTo vocab.ActivityStreamsToProperty
JSONLDType vocab.JSONLDTypeProperty ForgeFedTracksTicketsFor vocab.ForgeFedTracksTicketsForProperty
ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty JSONLDType vocab.JSONLDTypeProperty
ActivityStreamsUrl vocab.ActivityStreamsUrlProperty ActivityStreamsUpdated vocab.ActivityStreamsUpdatedProperty
alias string ActivityStreamsUrl vocab.ActivityStreamsUrlProperty
unknown map[string]interface{} alias string
unknown map[string]interface{}
} }
// ActivityStreamsServiceExtends returns true if the Service type extends from the // ActivityStreamsServiceExtends returns true if the Service type extends from the
@ -235,6 +236,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
} else if p != nil { } else if p != nil {
this.ActivityStreamsLocation = p this.ActivityStreamsLocation = p
} }
if p, err := mgr.DeserializeManuallyApprovesFollowersPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.ActivityStreamsManuallyApprovesFollowers = p
}
if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil { if p, err := mgr.DeserializeMediaTypePropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err return nil, err
} else if p != nil { } else if p != nil {
@ -400,6 +406,8 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
continue continue
} else if k == "location" { } else if k == "location" {
continue continue
} else if k == "manuallyApprovesFollowers" {
continue
} else if k == "mediaType" { } else if k == "mediaType" {
continue continue
} else if k == "name" { } else if k == "name" {
@ -624,6 +632,12 @@ func (this ActivityStreamsService) GetActivityStreamsLocation() vocab.ActivitySt
return this.ActivityStreamsLocation return this.ActivityStreamsLocation
} }
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil otherwise.
func (this ActivityStreamsService) GetActivityStreamsManuallyApprovesFollowers() vocab.ActivityStreamsManuallyApprovesFollowersProperty {
return this.ActivityStreamsManuallyApprovesFollowers
}
// GetActivityStreamsMediaType returns the "mediaType" property if it exists, and // GetActivityStreamsMediaType returns the "mediaType" property if it exists, and
// nil otherwise. // nil otherwise.
func (this ActivityStreamsService) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty { func (this ActivityStreamsService) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty {
@ -818,6 +832,7 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsLiked, m) m = this.helperJSONLDContext(this.ActivityStreamsLiked, m)
m = this.helperJSONLDContext(this.ActivityStreamsLikes, m) m = this.helperJSONLDContext(this.ActivityStreamsLikes, m)
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m) m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m) m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
m = this.helperJSONLDContext(this.ActivityStreamsName, m) m = this.helperJSONLDContext(this.ActivityStreamsName, m)
m = this.helperJSONLDContext(this.ActivityStreamsObject, m) m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
@ -1184,6 +1199,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool
// Anything else is greater than nil // Anything else is greater than nil
return false return false
} // Else: Both are nil } // Else: Both are nil
// Compare property "manuallyApprovesFollowers"
if lhs, rhs := this.ActivityStreamsManuallyApprovesFollowers, o.GetActivityStreamsManuallyApprovesFollowers(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "mediaType" // Compare property "mediaType"
if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil { if lhs, rhs := this.ActivityStreamsMediaType, o.GetActivityStreamsMediaType(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) { if lhs.LessThan(rhs) {
@ -1707,6 +1736,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsLocation.Name()] = i m[this.ActivityStreamsLocation.Name()] = i
} }
} }
// Maybe serialize property "manuallyApprovesFollowers"
if this.ActivityStreamsManuallyApprovesFollowers != nil {
if i, err := this.ActivityStreamsManuallyApprovesFollowers.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.ActivityStreamsManuallyApprovesFollowers.Name()] = i
}
}
// Maybe serialize property "mediaType" // Maybe serialize property "mediaType"
if this.ActivityStreamsMediaType != nil { if this.ActivityStreamsMediaType != nil {
if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil { if i, err := this.ActivityStreamsMediaType.Serialize(); err != nil {
@ -2002,6 +2039,12 @@ func (this *ActivityStreamsService) SetActivityStreamsLocation(i vocab.ActivityS
this.ActivityStreamsLocation = i this.ActivityStreamsLocation = i
} }
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
func (this *ActivityStreamsService) SetActivityStreamsManuallyApprovesFollowers(i vocab.ActivityStreamsManuallyApprovesFollowersProperty) {
this.ActivityStreamsManuallyApprovesFollowers = i
}
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
func (this *ActivityStreamsService) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) { func (this *ActivityStreamsService) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty) {
this.ActivityStreamsMediaType = i this.ActivityStreamsMediaType = i

View file

@ -0,0 +1,53 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Indicates that the actor manually approves Follow activities and that an
// automatic Accept should not be expected.
type ActivityStreamsManuallyApprovesFollowersProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaBoolean afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaBoolean returns
// false, Get will return any arbitrary value.
Get() bool
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
IsXMLSchemaBoolean() bool
// JSONLDContext returns the JSONLD URIs required in the context string
// for this property and the specific values that are set. The value
// in the map is the alias used to import the property's value or
// values.
JSONLDContext() map[string]string
// KindIndex computes an arbitrary value for indexing this kind of value.
// This is a leaky API detail only for folks looking to replace the
// go-fed implementation. Applications should not use this method.
KindIndex() int
// LessThan compares two instances of this property with an arbitrary but
// stable comparison. Applications should not use this because it is
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool
// Name returns the name of this property: "manuallyApprovesFollowers".
Name() string
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not
// need this function as most typical use cases serialize types
// instead of individual properties. It is exposed for alternatives to
// go-fed implementations to use.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaBoolean
// afterwards will return true.
Set(v bool)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -73,6 +73,10 @@ type ActivityStreamsApplication interface {
// GetActivityStreamsLocation returns the "location" property if it // GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it // GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsApplication interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty) SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property. // SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty) SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property. // SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsGroup interface {
// GetActivityStreamsLocation returns the "location" property if it // GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it // GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -211,6 +215,9 @@ type ActivityStreamsGroup interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty) SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property. // SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty) SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property. // SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsOrganization interface {
// GetActivityStreamsLocation returns the "location" property if it // GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it // GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsOrganization interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty) SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property. // SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty) SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property. // SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsPerson interface {
// GetActivityStreamsLocation returns the "location" property if it // GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it // GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -211,6 +215,9 @@ type ActivityStreamsPerson interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty) SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property. // SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty) SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property. // SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsService interface {
// GetActivityStreamsLocation returns the "location" property if it // GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it // GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise. // exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsService interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty) SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property. // SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty) SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property. // SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty) SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property. // SetActivityStreamsName sets the "name" property.