Merge pull request #154 from superseriousbusiness/as-sensitive
add 'sensitive' object property
This commit is contained in:
commit
b14b50eeca
|
@ -4870,6 +4870,29 @@
|
|||
"name": "deleted",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#dfn-deleted"
|
||||
},
|
||||
{
|
||||
"id": "https://www.w3.org/ns/activitystreams#sensitive",
|
||||
"type": [
|
||||
"rdf:Property",
|
||||
"owl:ObjectProperty"
|
||||
],
|
||||
"notes": "Indicates that some users may wish to apply discretion about viewing this object's content, whether due to nudity, violence, or any other likely aspects that viewers may be sensitive to.",
|
||||
"domain": {
|
||||
"type": "owl:Class",
|
||||
"unionOf": {
|
||||
"type": "owl:Class",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object",
|
||||
"name": "Object"
|
||||
}
|
||||
},
|
||||
"isDefinedBy": "https://www.w3.org/TR/activitystreams-vocabulary/#sensitive",
|
||||
"range": {
|
||||
"type": "owl:Class",
|
||||
"unionOf": "xsd:boolean"
|
||||
},
|
||||
"name": "sensitive",
|
||||
"url": "https://www.w3.org/TR/activitystreams-vocabulary/#sensitive"
|
||||
},
|
||||
{
|
||||
"id": "https://www.w3.org/TR/activitypub/#inbox",
|
||||
"type": [
|
||||
|
|
|
@ -437,6 +437,9 @@ var ActivityStreamsRepliesPropertyName string = "replies"
|
|||
// ActivityStreamsResultPropertyName is the string literal of the name for the result property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsResultPropertyName string = "result"
|
||||
|
||||
// ActivityStreamsSensitivePropertyName is the string literal of the name for the sensitive property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsSensitivePropertyName string = "sensitive"
|
||||
|
||||
// ActivityStreamsSharesPropertyName is the string literal of the name for the shares property in the ActivityStreams vocabulary.
|
||||
var ActivityStreamsSharesPropertyName string = "shares"
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -238,6 +239,7 @@ func init() {
|
|||
propertyrelationship.SetManager(mgr)
|
||||
propertyreplies.SetManager(mgr)
|
||||
propertyresult.SetManager(mgr)
|
||||
propertysensitive.SetManager(mgr)
|
||||
propertyshares.SetManager(mgr)
|
||||
propertysource.SetManager(mgr)
|
||||
propertystartindex.SetManager(mgr)
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -1881,6 +1882,19 @@ func (this Manager) DeserializeResultPropertyActivityStreams() func(map[string]i
|
|||
}
|
||||
}
|
||||
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization method
|
||||
// for the "ActivityStreamsSensitiveProperty" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
func (this Manager) DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
i, err := propertysensitive.DeserializeSensitiveProperty(m, aliasMap)
|
||||
if i == nil {
|
||||
return nil, err
|
||||
}
|
||||
return i, err
|
||||
}
|
||||
}
|
||||
|
||||
// DeserializeServiceActivityStreams returns the deserialization method for the
|
||||
// "ActivityStreamsService" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
|
|
|
@ -60,6 +60,7 @@ import (
|
|||
propertyrelationship "github.com/go-fed/activity/streams/impl/activitystreams/property_relationship"
|
||||
propertyreplies "github.com/go-fed/activity/streams/impl/activitystreams/property_replies"
|
||||
propertyresult "github.com/go-fed/activity/streams/impl/activitystreams/property_result"
|
||||
propertysensitive "github.com/go-fed/activity/streams/impl/activitystreams/property_sensitive"
|
||||
propertyshares "github.com/go-fed/activity/streams/impl/activitystreams/property_shares"
|
||||
propertysource "github.com/go-fed/activity/streams/impl/activitystreams/property_source"
|
||||
propertystartindex "github.com/go-fed/activity/streams/impl/activitystreams/property_startindex"
|
||||
|
@ -420,6 +421,12 @@ func NewActivityStreamsResultProperty() vocab.ActivityStreamsResultProperty {
|
|||
return propertyresult.NewActivityStreamsResultProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActivityStreamsSensitiveProperty creates a new
|
||||
// ActivityStreamsSensitiveProperty
|
||||
func NewActivityStreamsSensitiveProperty() vocab.ActivityStreamsSensitiveProperty {
|
||||
return propertysensitive.NewActivityStreamsSensitiveProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActivityStreamsSharesProperty creates a new
|
||||
// ActivityStreamsSharesProperty
|
||||
func NewActivityStreamsSharesProperty() vocab.ActivityStreamsSharesProperty {
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
// Package propertysensitive contains the implementation for the sensitive
|
||||
// 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 propertysensitive
|
|
@ -0,0 +1,15 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysensitive
|
||||
|
||||
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
|
||||
}
|
|
@ -0,0 +1,531 @@
|
|||
// Code generated by astool. DO NOT EDIT.
|
||||
|
||||
package propertysensitive
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
boolean "github.com/go-fed/activity/streams/values/boolean"
|
||||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// ActivityStreamsSensitivePropertyIterator is an iterator for a property. It is
|
||||
// permitted to be a single default-valued value type.
|
||||
type ActivityStreamsSensitivePropertyIterator struct {
|
||||
xmlschemaBooleanMember bool
|
||||
hasBooleanMember bool
|
||||
unknown interface{}
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.ActivityStreamsSensitiveProperty
|
||||
}
|
||||
|
||||
// NewActivityStreamsSensitivePropertyIterator creates a new
|
||||
// ActivityStreamsSensitive property.
|
||||
func NewActivityStreamsSensitivePropertyIterator() *ActivityStreamsSensitivePropertyIterator {
|
||||
return &ActivityStreamsSensitivePropertyIterator{alias: ""}
|
||||
}
|
||||
|
||||
// deserializeActivityStreamsSensitivePropertyIterator creates an iterator from an
|
||||
// element that has been unmarshalled from a text or binary format.
|
||||
func deserializeActivityStreamsSensitivePropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsSensitivePropertyIterator, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||
alias = a
|
||||
}
|
||||
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 := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := boolean.DeserializeBoolean(i); err == nil {
|
||||
this := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
hasBooleanMember: true,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
this := &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: alias,
|
||||
unknown: i,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsXMLSchemaBoolean returns false,
|
||||
// Get will return any arbitrary value.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Get() bool {
|
||||
return this.xmlschemaBooleanMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) HasAny() bool {
|
||||
return this.IsXMLSchemaBoolean() || this.iri != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) 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 ActivityStreamsSensitivePropertyIterator) LessThan(o vocab.ActivityStreamsSensitivePropertyIterator) 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: "ActivityStreamsSensitive".
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "ActivityStreamsSensitive"
|
||||
} else {
|
||||
return "ActivityStreamsSensitive"
|
||||
}
|
||||
}
|
||||
|
||||
// Next returns the next iterator, or nil if there is no next iterator.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Next() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.myIdx+1 >= this.parent.Len() {
|
||||
return nil
|
||||
} else {
|
||||
return this.parent.At(this.myIdx + 1)
|
||||
}
|
||||
}
|
||||
|
||||
// Prev returns the previous iterator, or nil if there is no previous iterator.
|
||||
func (this ActivityStreamsSensitivePropertyIterator) Prev() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.myIdx-1 < 0 {
|
||||
return nil
|
||||
} else {
|
||||
return this.parent.At(this.myIdx - 1)
|
||||
}
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsXMLSchemaBoolean afterwards will
|
||||
// return true.
|
||||
func (this *ActivityStreamsSensitivePropertyIterator) 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 *ActivityStreamsSensitivePropertyIterator) SetIRI(v *url.URL) {
|
||||
this.clear()
|
||||
this.iri = v
|
||||
}
|
||||
|
||||
// clear ensures no value of this property is set. Calling IsXMLSchemaBoolean
|
||||
// afterwards will return false.
|
||||
func (this *ActivityStreamsSensitivePropertyIterator) clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.hasBooleanMember = false
|
||||
}
|
||||
|
||||
// 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 ActivityStreamsSensitivePropertyIterator) serialize() (interface{}, error) {
|
||||
if this.IsXMLSchemaBoolean() {
|
||||
return boolean.SerializeBoolean(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
}
|
||||
|
||||
// ActivityStreamsSensitiveProperty is the non-functional property "sensitive". It
|
||||
// is permitted to have one or more values, and of different value types.
|
||||
type ActivityStreamsSensitiveProperty struct {
|
||||
properties []*ActivityStreamsSensitivePropertyIterator
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeSensitiveProperty creates a "sensitive" property from an interface
|
||||
// representation that has been unmarshalled from a text or binary format.
|
||||
func DeserializeSensitiveProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsSensitiveProperty, error) {
|
||||
alias := ""
|
||||
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||
alias = a
|
||||
}
|
||||
propName := "sensitive"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "sensitive")
|
||||
}
|
||||
i, ok := m[propName]
|
||||
|
||||
if ok {
|
||||
this := &ActivityStreamsSensitiveProperty{
|
||||
alias: alias,
|
||||
properties: []*ActivityStreamsSensitivePropertyIterator{},
|
||||
}
|
||||
if list, ok := i.([]interface{}); ok {
|
||||
for _, iterator := range list {
|
||||
if p, err := deserializeActivityStreamsSensitivePropertyIterator(iterator, aliasMap); err != nil {
|
||||
return this, err
|
||||
} else if p != nil {
|
||||
this.properties = append(this.properties, p)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if p, err := deserializeActivityStreamsSensitivePropertyIterator(i, aliasMap); err != nil {
|
||||
return this, err
|
||||
} else if p != nil {
|
||||
this.properties = append(this.properties, p)
|
||||
}
|
||||
}
|
||||
// Set up the properties for iteration.
|
||||
for idx, ele := range this.properties {
|
||||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewActivityStreamsSensitiveProperty creates a new sensitive property.
|
||||
func NewActivityStreamsSensitiveProperty() *ActivityStreamsSensitiveProperty {
|
||||
return &ActivityStreamsSensitiveProperty{alias: ""}
|
||||
}
|
||||
|
||||
// AppendIRI appends an IRI value to the back of a list of the property "sensitive"
|
||||
func (this *ActivityStreamsSensitiveProperty) AppendIRI(v *url.URL) {
|
||||
this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
})
|
||||
}
|
||||
|
||||
// AppendXMLSchemaBoolean appends a boolean value to the back of a list of the
|
||||
// property "sensitive". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ActivityStreamsSensitiveProperty) AppendXMLSchemaBoolean(v bool) {
|
||||
this.properties = append(this.properties, &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
})
|
||||
}
|
||||
|
||||
// At returns the property value for the specified index. Panics if the index is
|
||||
// out of bounds.
|
||||
func (this ActivityStreamsSensitiveProperty) At(index int) vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
return this.properties[index]
|
||||
}
|
||||
|
||||
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||
// iterator's Next method and this property's End method to iterate from front
|
||||
// to back through all values.
|
||||
func (this ActivityStreamsSensitiveProperty) Begin() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
if this.Empty() {
|
||||
return nil
|
||||
} else {
|
||||
return this.properties[0]
|
||||
}
|
||||
}
|
||||
|
||||
// Empty returns returns true if there are no elements.
|
||||
func (this ActivityStreamsSensitiveProperty) Empty() bool {
|
||||
return this.Len() == 0
|
||||
}
|
||||
|
||||
// End returns beyond-the-last iterator, which is nil. Can be used with the
|
||||
// iterator's Next method and this property's Begin method to iterate from
|
||||
// front to back through all values.
|
||||
func (this ActivityStreamsSensitiveProperty) End() vocab.ActivityStreamsSensitivePropertyIterator {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Insert inserts an IRI value at the specified index for a property "sensitive".
|
||||
// Existing elements at that index and higher are shifted back once.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) InsertIRI(idx int, v *url.URL) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// InsertXMLSchemaBoolean inserts a boolean value at the specified index for a
|
||||
// property "sensitive". Existing elements at that index and higher are
|
||||
// shifted back once. Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) InsertXMLSchemaBoolean(idx int, v bool) {
|
||||
this.properties = append(this.properties, nil)
|
||||
copy(this.properties[idx+1:], this.properties[idx:])
|
||||
this.properties[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// 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 ActivityStreamsSensitiveProperty) JSONLDContext() map[string]string {
|
||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||
for _, elem := range this.properties {
|
||||
child := elem.JSONLDContext()
|
||||
/*
|
||||
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 method specifically needed only for alternate implementations
|
||||
// for go-fed. Applications should not use this method. Panics if the index is
|
||||
// out of bounds.
|
||||
func (this ActivityStreamsSensitiveProperty) KindIndex(idx int) int {
|
||||
return this.properties[idx].KindIndex()
|
||||
}
|
||||
|
||||
// Len returns the number of values that exist for the "sensitive" property.
|
||||
func (this ActivityStreamsSensitiveProperty) Len() (length int) {
|
||||
return len(this.properties)
|
||||
}
|
||||
|
||||
// Less computes whether another property is less than this one. Mixing types
|
||||
// results in a consistent but arbitrary ordering
|
||||
func (this ActivityStreamsSensitiveProperty) Less(i, j int) bool {
|
||||
idx1 := this.KindIndex(i)
|
||||
idx2 := this.KindIndex(j)
|
||||
if idx1 < idx2 {
|
||||
return true
|
||||
} else if idx1 == idx2 {
|
||||
if idx1 == 0 {
|
||||
lhs := this.properties[i].Get()
|
||||
rhs := this.properties[j].Get()
|
||||
return boolean.LessBoolean(lhs, rhs)
|
||||
} else if idx1 == -2 {
|
||||
lhs := this.properties[i].GetIRI()
|
||||
rhs := this.properties[j].GetIRI()
|
||||
return lhs.String() < rhs.String()
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// 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 ActivityStreamsSensitiveProperty) LessThan(o vocab.ActivityStreamsSensitiveProperty) bool {
|
||||
l1 := this.Len()
|
||||
l2 := o.Len()
|
||||
l := l1
|
||||
if l2 < l1 {
|
||||
l = l2
|
||||
}
|
||||
for i := 0; i < l; i++ {
|
||||
if this.properties[i].LessThan(o.At(i)) {
|
||||
return true
|
||||
} else if o.At(i).LessThan(this.properties[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return l1 < l2
|
||||
}
|
||||
|
||||
// Name returns the name of this property ("sensitive") with any alias.
|
||||
func (this ActivityStreamsSensitiveProperty) Name() string {
|
||||
if len(this.alias) > 0 {
|
||||
return this.alias + ":" + "sensitive"
|
||||
} else {
|
||||
return "sensitive"
|
||||
}
|
||||
}
|
||||
|
||||
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||
// "sensitive".
|
||||
func (this *ActivityStreamsSensitiveProperty) PrependIRI(v *url.URL) {
|
||||
this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// PrependXMLSchemaBoolean prepends a boolean value to the front of a list of the
|
||||
// property "sensitive". Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) PrependXMLSchemaBoolean(v bool) {
|
||||
this.properties = append([]*ActivityStreamsSensitivePropertyIterator{{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// Remove deletes an element at the specified index from a list of the property
|
||||
// "sensitive", regardless of its type. Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) Remove(idx int) {
|
||||
(this.properties)[idx].parent = nil
|
||||
copy((this.properties)[idx:], (this.properties)[idx+1:])
|
||||
(this.properties)[len(this.properties)-1] = &ActivityStreamsSensitivePropertyIterator{}
|
||||
this.properties = (this.properties)[:len(this.properties)-1]
|
||||
for i := idx; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// 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 ActivityStreamsSensitiveProperty) Serialize() (interface{}, error) {
|
||||
s := make([]interface{}, 0, len(this.properties))
|
||||
for _, iterator := range this.properties {
|
||||
if b, err := iterator.serialize(); err != nil {
|
||||
return s, err
|
||||
} else {
|
||||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
// Set sets a boolean value to be at the specified index for the property
|
||||
// "sensitive". Panics if the index is out of bounds. Invalidates all
|
||||
// iterators.
|
||||
func (this *ActivityStreamsSensitiveProperty) Set(idx int, v bool) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
hasBooleanMember: true,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
xmlschemaBooleanMember: v,
|
||||
}
|
||||
}
|
||||
|
||||
// SetIRI sets an IRI value to be at the specified index for the property
|
||||
// "sensitive". Panics if the index is out of bounds.
|
||||
func (this *ActivityStreamsSensitiveProperty) SetIRI(idx int, v *url.URL) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ActivityStreamsSensitivePropertyIterator{
|
||||
alias: this.alias,
|
||||
iri: v,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
}
|
||||
|
||||
// Swap swaps the location of values at two indices for the "sensitive" property.
|
||||
func (this ActivityStreamsSensitiveProperty) Swap(i, j int) {
|
||||
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
|
||||
}
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -76,6 +76,7 @@ type ActivityStreamsAccept struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -307,6 +308,11 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -437,6 +443,8 @@ func DeserializeAccept(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -655,6 +663,12 @@ func (this ActivityStreamsAccept) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -788,6 +802,7 @@ func (this ActivityStreamsAccept) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1201,6 +1216,20 @@ func (this ActivityStreamsAccept) LessThan(o vocab.ActivityStreamsAccept) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1630,6 +1659,14 @@ func (this ActivityStreamsAccept) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1883,6 +1920,11 @@ func (this *ActivityStreamsAccept) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsActivity struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -287,6 +288,11 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -417,6 +423,8 @@ func DeserializeActivity(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -635,6 +643,12 @@ func (this ActivityStreamsActivity) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -768,6 +782,7 @@ func (this ActivityStreamsActivity) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1181,6 +1196,20 @@ func (this ActivityStreamsActivity) LessThan(o vocab.ActivityStreamsActivity) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1610,6 +1639,14 @@ func (this ActivityStreamsActivity) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1863,6 +1900,11 @@ func (this *ActivityStreamsActivity) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -76,6 +76,7 @@ type ActivityStreamsAdd struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -302,6 +303,11 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -432,6 +438,8 @@ func DeserializeAdd(m map[string]interface{}, aliasMap map[string]string) (*Acti
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -650,6 +658,12 @@ func (this ActivityStreamsAdd) GetActivityStreamsResult() vocab.ActivityStreamsR
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAdd) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAdd) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -783,6 +797,7 @@ func (this ActivityStreamsAdd) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1196,6 +1211,20 @@ func (this ActivityStreamsAdd) LessThan(o vocab.ActivityStreamsAdd) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1625,6 +1654,14 @@ func (this ActivityStreamsAdd) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1878,6 +1915,11 @@ func (this *ActivityStreamsAdd) SetActivityStreamsResult(i vocab.ActivityStreams
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAdd) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAdd) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -58,6 +58,7 @@ type ActivityStreamsAnnounce struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -284,6 +285,11 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -414,6 +420,8 @@ func DeserializeAnnounce(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -632,6 +640,12 @@ func (this ActivityStreamsAnnounce) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAnnounce) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAnnounce) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -765,6 +779,7 @@ func (this ActivityStreamsAnnounce) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1178,6 +1193,20 @@ func (this ActivityStreamsAnnounce) LessThan(o vocab.ActivityStreamsAnnounce) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1607,6 +1636,14 @@ func (this ActivityStreamsAnnounce) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1860,6 +1897,11 @@ func (this *ActivityStreamsAnnounce) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAnnounce) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAnnounce) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsApplication struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -306,6 +307,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -450,6 +456,8 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -686,6 +694,12 @@ func (this ActivityStreamsApplication) GetActivityStreamsReplies() vocab.Activit
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsApplication) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsApplication) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1339,6 +1354,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1816,6 +1845,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2085,6 +2122,11 @@ func (this *ActivityStreamsApplication) SetActivityStreamsReplies(i vocab.Activi
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsApplication) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsApplication) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -120,6 +120,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsArrive struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -278,6 +279,11 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -406,6 +412,8 @@ func DeserializeArrive(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -618,6 +626,12 @@ func (this ActivityStreamsArrive) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsArrive) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsArrive) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -750,6 +764,7 @@ func (this ActivityStreamsArrive) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1149,6 +1164,20 @@ func (this ActivityStreamsArrive) LessThan(o vocab.ActivityStreamsArrive) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1570,6 +1599,14 @@ func (this ActivityStreamsArrive) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1818,6 +1855,11 @@ func (this *ActivityStreamsArrive) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsArrive) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsArrive) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -43,6 +43,7 @@ type ActivityStreamsArticle struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -248,6 +249,11 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -365,6 +371,8 @@ func DeserializeArticle(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -557,6 +565,12 @@ func (this ActivityStreamsArticle) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsArticle) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsArticle) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -680,6 +694,7 @@ func (this ActivityStreamsArticle) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1036,6 +1051,20 @@ func (this ActivityStreamsArticle) LessThan(o vocab.ActivityStreamsArticle) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1419,6 +1448,14 @@ func (this ActivityStreamsArticle) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1644,6 +1681,11 @@ func (this *ActivityStreamsArticle) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsArticle) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsArticle) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -46,6 +46,7 @@ type ActivityStreamsAudio struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -256,6 +257,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -375,6 +381,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -567,6 +575,12 @@ func (this ActivityStreamsAudio) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsAudio) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsAudio) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -696,6 +710,7 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1066,6 +1081,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1457,6 +1486,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1682,6 +1719,11 @@ func (this *ActivityStreamsAudio) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsAudio) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsAudio) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsBlock struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -275,6 +276,11 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -405,6 +411,8 @@ func DeserializeBlock(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -623,6 +631,12 @@ func (this ActivityStreamsBlock) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsBlock) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsBlock) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -756,6 +770,7 @@ func (this ActivityStreamsBlock) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1169,6 +1184,20 @@ func (this ActivityStreamsBlock) LessThan(o vocab.ActivityStreamsBlock) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1598,6 +1627,14 @@ func (this ActivityStreamsBlock) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1851,6 +1888,11 @@ func (this *ActivityStreamsBlock) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsBlock) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsBlock) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsCollection struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -288,6 +289,11 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string)
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -418,6 +424,8 @@ func DeserializeCollection(m map[string]interface{}, aliasMap map[string]string)
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -636,6 +644,12 @@ func (this ActivityStreamsCollection) GetActivityStreamsReplies() vocab.Activity
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -769,6 +783,7 @@ func (this ActivityStreamsCollection) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1182,6 +1197,20 @@ func (this ActivityStreamsCollection) LessThan(o vocab.ActivityStreamsCollection
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1611,6 +1640,14 @@ func (this ActivityStreamsCollection) Serialize() (map[string]interface{}, error
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1864,6 +1901,11 @@ func (this *ActivityStreamsCollection) SetActivityStreamsReplies(i vocab.Activit
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -136,6 +136,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -61,6 +61,7 @@ type ActivityStreamsCollectionPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -307,6 +308,11 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -443,6 +449,8 @@ func DeserializeCollectionPage(m map[string]interface{}, aliasMap map[string]str
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -679,6 +687,12 @@ func (this ActivityStreamsCollectionPage) GetActivityStreamsReplies() vocab.Acti
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -815,6 +829,7 @@ func (this ActivityStreamsCollectionPage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1270,6 +1285,20 @@ func (this ActivityStreamsCollectionPage) LessThan(o vocab.ActivityStreamsCollec
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1723,6 +1752,14 @@ func (this ActivityStreamsCollectionPage) Serialize() (map[string]interface{}, e
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1991,6 +2028,11 @@ func (this *ActivityStreamsCollectionPage) SetActivityStreamsReplies(i vocab.Act
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsCreate struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -279,6 +280,11 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -409,6 +415,8 @@ func DeserializeCreate(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -627,6 +635,12 @@ func (this ActivityStreamsCreate) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsCreate) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsCreate) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -760,6 +774,7 @@ func (this ActivityStreamsCreate) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1173,6 +1188,20 @@ func (this ActivityStreamsCreate) LessThan(o vocab.ActivityStreamsCreate) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1602,6 +1631,14 @@ func (this ActivityStreamsCreate) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1855,6 +1892,11 @@ func (this *ActivityStreamsCreate) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsCreate) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsCreate) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -54,6 +54,7 @@ type ActivityStreamsDelete struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -280,6 +281,11 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -410,6 +416,8 @@ func DeserializeDelete(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -628,6 +636,12 @@ func (this ActivityStreamsDelete) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDelete) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDelete) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -761,6 +775,7 @@ func (this ActivityStreamsDelete) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1174,6 +1189,20 @@ func (this ActivityStreamsDelete) LessThan(o vocab.ActivityStreamsDelete) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1603,6 +1632,14 @@ func (this ActivityStreamsDelete) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1856,6 +1893,11 @@ func (this *ActivityStreamsDelete) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDelete) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDelete) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -46,6 +46,7 @@ type ActivityStreamsDislike struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -252,6 +253,11 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -382,6 +388,8 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -620,6 +628,12 @@ func (this ActivityStreamsDislike) GetActivityStreamsResult() vocab.ActivityStre
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDislike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDislike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -753,6 +767,7 @@ func (this ActivityStreamsDislike) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1166,6 +1181,20 @@ func (this ActivityStreamsDislike) LessThan(o vocab.ActivityStreamsDislike) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1595,6 +1624,14 @@ func (this ActivityStreamsDislike) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1848,6 +1885,11 @@ func (this *ActivityStreamsDislike) SetActivityStreamsResult(i vocab.ActivityStr
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDislike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDislike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsDocument struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -232,6 +233,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -351,6 +357,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -568,6 +576,12 @@ func (this ActivityStreamsDocument) GetActivityStreamsReplies() vocab.ActivitySt
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsDocument) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsDocument) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -697,6 +711,7 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1067,6 +1082,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1458,6 +1487,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1683,6 +1720,11 @@ func (this *ActivityStreamsDocument) SetActivityStreamsReplies(i vocab.ActivityS
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsDocument) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsDocument) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsEvent struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -227,6 +228,11 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -344,6 +350,8 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -556,6 +564,12 @@ func (this ActivityStreamsEvent) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsEvent) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsEvent) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -679,6 +693,7 @@ func (this ActivityStreamsEvent) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1035,6 +1050,20 @@ func (this ActivityStreamsEvent) LessThan(o vocab.ActivityStreamsEvent) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1418,6 +1447,14 @@ func (this ActivityStreamsEvent) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1643,6 +1680,11 @@ func (this *ActivityStreamsEvent) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsEvent) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsEvent) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -51,6 +51,7 @@ type ActivityStreamsFlag struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -257,6 +258,11 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -387,6 +393,8 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -625,6 +633,12 @@ func (this ActivityStreamsFlag) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsFlag) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsFlag) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -758,6 +772,7 @@ func (this ActivityStreamsFlag) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1171,6 +1186,20 @@ func (this ActivityStreamsFlag) LessThan(o vocab.ActivityStreamsFlag) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1600,6 +1629,14 @@ func (this ActivityStreamsFlag) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1853,6 +1890,11 @@ func (this *ActivityStreamsFlag) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsFlag) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsFlag) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -55,6 +55,7 @@ type ActivityStreamsFollow struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -261,6 +262,11 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -391,6 +397,8 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -629,6 +637,12 @@ func (this ActivityStreamsFollow) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsFollow) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsFollow) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -762,6 +776,7 @@ func (this ActivityStreamsFollow) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1175,6 +1190,20 @@ func (this ActivityStreamsFollow) LessThan(o vocab.ActivityStreamsFollow) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1604,6 +1633,14 @@ func (this ActivityStreamsFollow) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1857,6 +1894,11 @@ func (this *ActivityStreamsFollow) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsFollow) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsFollow) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsGroup struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -286,6 +287,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -430,6 +436,8 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -686,6 +694,12 @@ func (this ActivityStreamsGroup) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsGroup) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsGroup) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1339,6 +1354,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1816,6 +1845,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2085,6 +2122,11 @@ func (this *ActivityStreamsGroup) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsGroup) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsGroup) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsIgnore struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -256,6 +257,11 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -386,6 +392,8 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -629,6 +637,12 @@ func (this ActivityStreamsIgnore) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsIgnore) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsIgnore) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -762,6 +776,7 @@ func (this ActivityStreamsIgnore) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1175,6 +1190,20 @@ func (this ActivityStreamsIgnore) LessThan(o vocab.ActivityStreamsIgnore) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1604,6 +1633,14 @@ func (this ActivityStreamsIgnore) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1857,6 +1894,11 @@ func (this *ActivityStreamsIgnore) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsIgnore) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsIgnore) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -116,6 +116,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -54,6 +54,7 @@ type ActivityStreamsImage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -250,6 +251,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -376,6 +382,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -596,6 +604,12 @@ func (this ActivityStreamsImage) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsImage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsImage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -732,6 +746,7 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1117,6 +1132,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1530,6 +1559,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1768,6 +1805,11 @@ func (this *ActivityStreamsImage) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsImage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsImage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -120,6 +120,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsIntransitiveActivity struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -254,6 +255,11 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -382,6 +388,8 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -620,6 +628,12 @@ func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsResult() vocab
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -754,6 +768,7 @@ func (this ActivityStreamsIntransitiveActivity) JSONLDContext() map[string]strin
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1153,6 +1168,20 @@ func (this ActivityStreamsIntransitiveActivity) LessThan(o vocab.ActivityStreams
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1574,6 +1603,14 @@ func (this ActivityStreamsIntransitiveActivity) Serialize() (map[string]interfac
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1822,6 +1859,11 @@ func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsResult(i voca
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsIntransitiveActivity) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -63,6 +63,7 @@ type ActivityStreamsInvite struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -269,6 +270,11 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -399,6 +405,8 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -637,6 +645,12 @@ func (this ActivityStreamsInvite) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsInvite) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsInvite) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -770,6 +784,7 @@ func (this ActivityStreamsInvite) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1183,6 +1198,20 @@ func (this ActivityStreamsInvite) LessThan(o vocab.ActivityStreamsInvite) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1612,6 +1641,14 @@ func (this ActivityStreamsInvite) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1865,6 +1902,11 @@ func (this *ActivityStreamsInvite) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsInvite) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsInvite) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -53,6 +53,7 @@ type ActivityStreamsJoin struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -259,6 +260,11 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -389,6 +395,8 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -627,6 +635,12 @@ func (this ActivityStreamsJoin) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsJoin) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsJoin) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -760,6 +774,7 @@ func (this ActivityStreamsJoin) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1173,6 +1188,20 @@ func (this ActivityStreamsJoin) LessThan(o vocab.ActivityStreamsJoin) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1602,6 +1631,14 @@ func (this ActivityStreamsJoin) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1855,6 +1892,11 @@ func (this *ActivityStreamsJoin) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsJoin) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsJoin) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -67,6 +67,7 @@ type ActivityStreamsLeave struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -273,6 +274,11 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -403,6 +409,8 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -641,6 +649,12 @@ func (this ActivityStreamsLeave) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsLeave) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsLeave) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -774,6 +788,7 @@ func (this ActivityStreamsLeave) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1187,6 +1202,20 @@ func (this ActivityStreamsLeave) LessThan(o vocab.ActivityStreamsLeave) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1616,6 +1645,14 @@ func (this ActivityStreamsLeave) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1869,6 +1906,11 @@ func (this *ActivityStreamsLeave) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsLeave) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsLeave) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsLike struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -256,6 +257,11 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -386,6 +392,8 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -624,6 +632,12 @@ func (this ActivityStreamsLike) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsLike) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsLike) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -757,6 +771,7 @@ func (this ActivityStreamsLike) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1170,6 +1185,20 @@ func (this ActivityStreamsLike) LessThan(o vocab.ActivityStreamsLike) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1599,6 +1628,14 @@ func (this ActivityStreamsLike) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1852,6 +1889,11 @@ func (this *ActivityStreamsLike) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsLike) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsLike) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsListen struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -255,6 +256,11 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -385,6 +391,8 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -623,6 +631,12 @@ func (this ActivityStreamsListen) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsListen) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsListen) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -756,6 +770,7 @@ func (this ActivityStreamsListen) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1169,6 +1184,20 @@ func (this ActivityStreamsListen) LessThan(o vocab.ActivityStreamsListen) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1598,6 +1627,14 @@ func (this ActivityStreamsListen) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1851,6 +1888,11 @@ func (this *ActivityStreamsListen) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsListen) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsListen) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -58,6 +58,7 @@ type ActivityStreamsMove struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -264,6 +265,11 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -394,6 +400,8 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -632,6 +640,12 @@ func (this ActivityStreamsMove) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsMove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsMove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -765,6 +779,7 @@ func (this ActivityStreamsMove) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1178,6 +1193,20 @@ func (this ActivityStreamsMove) LessThan(o vocab.ActivityStreamsMove) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1607,6 +1636,14 @@ func (this ActivityStreamsMove) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1860,6 +1897,11 @@ func (this *ActivityStreamsMove) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsMove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsMove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsNote struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -227,6 +228,11 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -344,6 +350,8 @@ func DeserializeNote(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -556,6 +564,12 @@ func (this ActivityStreamsNote) GetActivityStreamsReplies() vocab.ActivityStream
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsNote) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsNote) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -679,6 +693,7 @@ func (this ActivityStreamsNote) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1035,6 +1050,20 @@ func (this ActivityStreamsNote) LessThan(o vocab.ActivityStreamsNote) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1418,6 +1447,14 @@ func (this ActivityStreamsNote) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1643,6 +1680,11 @@ func (this *ActivityStreamsNote) SetActivityStreamsReplies(i vocab.ActivityStrea
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsNote) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsNote) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -108,6 +108,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -44,6 +44,7 @@ type ActivityStreamsObject struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -224,6 +225,11 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -341,6 +347,8 @@ func DeserializeObject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -558,6 +566,12 @@ func (this ActivityStreamsObject) GetActivityStreamsReplies() vocab.ActivityStre
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsObject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsObject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -681,6 +695,7 @@ func (this ActivityStreamsObject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1037,6 +1052,20 @@ func (this ActivityStreamsObject) LessThan(o vocab.ActivityStreamsObject) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1420,6 +1449,14 @@ func (this ActivityStreamsObject) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1645,6 +1682,11 @@ func (this *ActivityStreamsObject) SetActivityStreamsReplies(i vocab.ActivityStr
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsObject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsObject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsOffer struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -263,6 +264,11 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -393,6 +399,8 @@ func DeserializeOffer(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -636,6 +644,12 @@ func (this ActivityStreamsOffer) GetActivityStreamsResult() vocab.ActivityStream
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOffer) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOffer) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -769,6 +783,7 @@ func (this ActivityStreamsOffer) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1182,6 +1197,20 @@ func (this ActivityStreamsOffer) LessThan(o vocab.ActivityStreamsOffer) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1611,6 +1640,14 @@ func (this ActivityStreamsOffer) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1864,6 +1901,11 @@ func (this *ActivityStreamsOffer) SetActivityStreamsResult(i vocab.ActivityStrea
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOffer) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOffer) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -129,6 +129,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsOrderedCollection struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -268,6 +269,11 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string]
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -400,6 +406,8 @@ func DeserializeOrderedCollection(m map[string]interface{}, aliasMap map[string]
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -643,6 +651,12 @@ func (this ActivityStreamsOrderedCollection) GetActivityStreamsReplies() vocab.A
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrderedCollection) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrderedCollection) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -784,6 +798,7 @@ func (this ActivityStreamsOrderedCollection) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1211,6 +1226,20 @@ func (this ActivityStreamsOrderedCollection) LessThan(o vocab.ActivityStreamsOrd
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1648,6 +1677,14 @@ func (this ActivityStreamsOrderedCollection) Serialize() (map[string]interface{}
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1901,6 +1938,11 @@ func (this *ActivityStreamsOrderedCollection) SetActivityStreamsReplies(i vocab.
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrderedCollection) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrderedCollection) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -141,6 +141,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -62,6 +62,7 @@ type ActivityStreamsOrderedCollectionPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartIndex vocab.ActivityStreamsStartIndexProperty
|
||||
|
@ -289,6 +290,11 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -432,6 +438,8 @@ func DeserializeOrderedCollectionPage(m map[string]interface{}, aliasMap map[str
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -691,6 +699,12 @@ func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsReplies() voc
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsOrderedCollectionPage) JSONLDContext() map[string]stri
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartIndex, m)
|
||||
|
@ -1312,6 +1327,20 @@ func (this ActivityStreamsOrderedCollectionPage) LessThan(o vocab.ActivityStream
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1787,6 +1816,14 @@ func (this ActivityStreamsOrderedCollectionPage) Serialize() (map[string]interfa
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2063,6 +2100,11 @@ func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsReplies(i vo
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrderedCollectionPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsOrganization struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -286,6 +287,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -430,6 +436,8 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -686,6 +694,12 @@ func (this ActivityStreamsOrganization) GetActivityStreamsReplies() vocab.Activi
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsOrganization) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsOrganization) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1339,6 +1354,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1816,6 +1845,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2085,6 +2122,11 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsReplies(i vocab.Activ
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsOrganization) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsOrganization) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -42,6 +42,7 @@ type ActivityStreamsPage struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -232,6 +233,11 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -351,6 +357,8 @@ func DeserializePage(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -563,6 +571,12 @@ func (this ActivityStreamsPage) GetActivityStreamsReplies() vocab.ActivityStream
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPage) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPage) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -692,6 +706,7 @@ func (this ActivityStreamsPage) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1062,6 +1077,20 @@ func (this ActivityStreamsPage) LessThan(o vocab.ActivityStreamsPage) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1453,6 +1482,14 @@ func (this ActivityStreamsPage) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1678,6 +1715,11 @@ func (this *ActivityStreamsPage) SetActivityStreamsReplies(i vocab.ActivityStrea
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPage) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPage) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsPerson struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -286,6 +287,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -430,6 +436,8 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -686,6 +694,12 @@ func (this ActivityStreamsPerson) GetActivityStreamsReplies() vocab.ActivityStre
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPerson) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPerson) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1339,6 +1354,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1816,6 +1845,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2085,6 +2122,11 @@ func (this *ActivityStreamsPerson) SetActivityStreamsReplies(i vocab.ActivityStr
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPerson) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPerson) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -55,6 +55,7 @@ type ActivityStreamsPlace struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsRadius vocab.ActivityStreamsRadiusProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -261,6 +262,11 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -391,6 +397,8 @@ func DeserializePlace(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -629,6 +637,12 @@ func (this ActivityStreamsPlace) GetActivityStreamsReplies() vocab.ActivityStrea
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsPlace) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsPlace) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -762,6 +776,7 @@ func (this ActivityStreamsPlace) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsRadius, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1175,6 +1190,20 @@ func (this ActivityStreamsPlace) LessThan(o vocab.ActivityStreamsPlace) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1604,6 +1633,14 @@ func (this ActivityStreamsPlace) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1857,6 +1894,11 @@ func (this *ActivityStreamsPlace) SetActivityStreamsReplies(i vocab.ActivityStre
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsPlace) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsPlace) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -112,6 +112,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -47,6 +47,7 @@ type ActivityStreamsProfile struct {
|
|||
ActivityStreamsPreview vocab.ActivityStreamsPreviewProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -237,6 +238,11 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -356,6 +362,8 @@ func DeserializeProfile(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -574,6 +582,12 @@ func (this ActivityStreamsProfile) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsProfile) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsProfile) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -698,6 +712,7 @@ func (this ActivityStreamsProfile) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPreview, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1068,6 +1083,20 @@ func (this ActivityStreamsProfile) LessThan(o vocab.ActivityStreamsProfile) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1459,6 +1488,14 @@ func (this ActivityStreamsProfile) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1689,6 +1726,11 @@ func (this *ActivityStreamsProfile) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsProfile) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsProfile) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -132,6 +132,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -68,6 +68,7 @@ type ActivityStreamsQuestion struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -285,6 +286,11 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -424,6 +430,8 @@ func DeserializeQuestion(m map[string]interface{}, aliasMap map[string]string) (
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -676,6 +684,12 @@ func (this ActivityStreamsQuestion) GetActivityStreamsResult() vocab.ActivityStr
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsQuestion) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsQuestion) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -817,6 +831,7 @@ func (this ActivityStreamsQuestion) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1259,6 +1274,20 @@ func (this ActivityStreamsQuestion) LessThan(o vocab.ActivityStreamsQuestion) bo
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1718,6 +1747,14 @@ func (this ActivityStreamsQuestion) Serialize() (map[string]interface{}, error)
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1989,6 +2026,11 @@ func (this *ActivityStreamsQuestion) SetActivityStreamsResult(i vocab.ActivitySt
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsQuestion) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsQuestion) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -49,6 +49,7 @@ type ActivityStreamsRead struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -255,6 +256,11 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -385,6 +391,8 @@ func DeserializeRead(m map[string]interface{}, aliasMap map[string]string) (*Act
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -623,6 +631,12 @@ func (this ActivityStreamsRead) GetActivityStreamsResult() vocab.ActivityStreams
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRead) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRead) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -756,6 +770,7 @@ func (this ActivityStreamsRead) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1169,6 +1184,20 @@ func (this ActivityStreamsRead) LessThan(o vocab.ActivityStreamsRead) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1598,6 +1627,14 @@ func (this ActivityStreamsRead) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1851,6 +1888,11 @@ func (this *ActivityStreamsRead) SetActivityStreamsResult(i vocab.ActivityStream
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRead) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRead) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -57,6 +57,7 @@ type ActivityStreamsReject struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -263,6 +264,11 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -393,6 +399,8 @@ func DeserializeReject(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -636,6 +644,12 @@ func (this ActivityStreamsReject) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -769,6 +783,7 @@ func (this ActivityStreamsReject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1182,6 +1197,20 @@ func (this ActivityStreamsReject) LessThan(o vocab.ActivityStreamsReject) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1611,6 +1640,14 @@ func (this ActivityStreamsReject) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1864,6 +1901,11 @@ func (this *ActivityStreamsReject) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -113,6 +113,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -52,6 +52,7 @@ type ActivityStreamsRelationship struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsRelationship vocab.ActivityStreamsRelationshipProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -243,6 +244,11 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -367,6 +373,8 @@ func DeserializeRelationship(m map[string]interface{}, aliasMap map[string]strin
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -592,6 +600,12 @@ func (this ActivityStreamsRelationship) GetActivityStreamsReplies() vocab.Activi
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRelationship) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRelationship) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -722,6 +736,7 @@ func (this ActivityStreamsRelationship) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsRelationship, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1093,6 +1108,20 @@ func (this ActivityStreamsRelationship) LessThan(o vocab.ActivityStreamsRelation
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1498,6 +1527,14 @@ func (this ActivityStreamsRelationship) Serialize() (map[string]interface{}, err
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1736,6 +1773,11 @@ func (this *ActivityStreamsRelationship) SetActivityStreamsReplies(i vocab.Activ
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRelationship) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRelationship) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -72,6 +72,7 @@ type ActivityStreamsRemove struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -278,6 +279,11 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -408,6 +414,8 @@ func DeserializeRemove(m map[string]interface{}, aliasMap map[string]string) (*A
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -646,6 +654,12 @@ func (this ActivityStreamsRemove) GetActivityStreamsResult() vocab.ActivityStrea
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsRemove) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsRemove) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -779,6 +793,7 @@ func (this ActivityStreamsRemove) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1192,6 +1207,20 @@ func (this ActivityStreamsRemove) LessThan(o vocab.ActivityStreamsRemove) bool {
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1621,6 +1650,14 @@ func (this ActivityStreamsRemove) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1874,6 +1911,11 @@ func (this *ActivityStreamsRemove) SetActivityStreamsResult(i vocab.ActivityStre
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsRemove) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsRemove) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -150,6 +150,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsRepliesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -50,6 +50,7 @@ type ActivityStreamsService struct {
|
|||
W3IDSecurityV1PublicKey vocab.W3IDSecurityV1PublicKeyProperty
|
||||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -286,6 +287,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsReplies = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -430,6 +436,8 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
|||
continue
|
||||
} else if k == "replies" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -686,6 +694,12 @@ func (this ActivityStreamsService) GetActivityStreamsReplies() vocab.ActivityStr
|
|||
return this.ActivityStreamsReplies
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsService) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsService) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -842,6 +856,7 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.W3IDSecurityV1PublicKey, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1339,6 +1354,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1816,6 +1845,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
|
|||
m[this.ActivityStreamsReplies.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -2085,6 +2122,11 @@ func (this *ActivityStreamsService) SetActivityStreamsReplies(i vocab.ActivitySt
|
|||
this.ActivityStreamsReplies = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsService) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsService) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsTentativeAccept struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -262,6 +263,11 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -392,6 +398,8 @@ func DeserializeTentativeAccept(m map[string]interface{}, aliasMap map[string]st
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -630,6 +638,12 @@ func (this ActivityStreamsTentativeAccept) GetActivityStreamsResult() vocab.Acti
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsTentativeAccept) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsTentativeAccept) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -764,6 +778,7 @@ func (this ActivityStreamsTentativeAccept) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1177,6 +1192,20 @@ func (this ActivityStreamsTentativeAccept) LessThan(o vocab.ActivityStreamsTenta
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1606,6 +1635,14 @@ func (this ActivityStreamsTentativeAccept) Serialize() (map[string]interface{},
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1859,6 +1896,11 @@ func (this *ActivityStreamsTentativeAccept) SetActivityStreamsResult(i vocab.Act
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsTentativeAccept) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsTentativeAccept) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
|
@ -124,6 +124,10 @@ type privateManager interface {
|
|||
// method for the "ActivityStreamsResultProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeResultPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsResultProperty, error)
|
||||
// DeserializeSensitivePropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSensitiveProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
DeserializeSensitivePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSensitiveProperty, error)
|
||||
// DeserializeSharesPropertyActivityStreams returns the deserialization
|
||||
// method for the "ActivityStreamsSharesProperty" non-functional
|
||||
// property in the vocabulary "ActivityStreams"
|
||||
|
|
|
@ -56,6 +56,7 @@ type ActivityStreamsTentativeReject struct {
|
|||
ActivityStreamsPublished vocab.ActivityStreamsPublishedProperty
|
||||
ActivityStreamsReplies vocab.ActivityStreamsRepliesProperty
|
||||
ActivityStreamsResult vocab.ActivityStreamsResultProperty
|
||||
ActivityStreamsSensitive vocab.ActivityStreamsSensitiveProperty
|
||||
ActivityStreamsShares vocab.ActivityStreamsSharesProperty
|
||||
ActivityStreamsSource vocab.ActivityStreamsSourceProperty
|
||||
ActivityStreamsStartTime vocab.ActivityStreamsStartTimeProperty
|
||||
|
@ -262,6 +263,11 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st
|
|||
} else if p != nil {
|
||||
this.ActivityStreamsResult = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSensitivePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
this.ActivityStreamsSensitive = p
|
||||
}
|
||||
if p, err := mgr.DeserializeSharesPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||
return nil, err
|
||||
} else if p != nil {
|
||||
|
@ -392,6 +398,8 @@ func DeserializeTentativeReject(m map[string]interface{}, aliasMap map[string]st
|
|||
continue
|
||||
} else if k == "result" {
|
||||
continue
|
||||
} else if k == "sensitive" {
|
||||
continue
|
||||
} else if k == "shares" {
|
||||
continue
|
||||
} else if k == "source" {
|
||||
|
@ -630,6 +638,12 @@ func (this ActivityStreamsTentativeReject) GetActivityStreamsResult() vocab.Acti
|
|||
return this.ActivityStreamsResult
|
||||
}
|
||||
|
||||
// GetActivityStreamsSensitive returns the "sensitive" property if it exists, and
|
||||
// nil otherwise.
|
||||
func (this ActivityStreamsTentativeReject) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty {
|
||||
return this.ActivityStreamsSensitive
|
||||
}
|
||||
|
||||
// GetActivityStreamsShares returns the "shares" property if it exists, and nil
|
||||
// otherwise.
|
||||
func (this ActivityStreamsTentativeReject) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty {
|
||||
|
@ -764,6 +778,7 @@ func (this ActivityStreamsTentativeReject) JSONLDContext() map[string]string {
|
|||
m = this.helperJSONLDContext(this.ActivityStreamsPublished, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsReplies, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsResult, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSensitive, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsShares, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsSource, m)
|
||||
m = this.helperJSONLDContext(this.ActivityStreamsStartTime, m)
|
||||
|
@ -1177,6 +1192,20 @@ func (this ActivityStreamsTentativeReject) LessThan(o vocab.ActivityStreamsTenta
|
|||
// Anything else is greater than nil
|
||||
return false
|
||||
} // Else: Both are nil
|
||||
// Compare property "sensitive"
|
||||
if lhs, rhs := this.ActivityStreamsSensitive, o.GetActivityStreamsSensitive(); 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 "shares"
|
||||
if lhs, rhs := this.ActivityStreamsShares, o.GetActivityStreamsShares(); lhs != nil && rhs != nil {
|
||||
if lhs.LessThan(rhs) {
|
||||
|
@ -1606,6 +1635,14 @@ func (this ActivityStreamsTentativeReject) Serialize() (map[string]interface{},
|
|||
m[this.ActivityStreamsResult.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "sensitive"
|
||||
if this.ActivityStreamsSensitive != nil {
|
||||
if i, err := this.ActivityStreamsSensitive.Serialize(); err != nil {
|
||||
return nil, err
|
||||
} else if i != nil {
|
||||
m[this.ActivityStreamsSensitive.Name()] = i
|
||||
}
|
||||
}
|
||||
// Maybe serialize property "shares"
|
||||
if this.ActivityStreamsShares != nil {
|
||||
if i, err := this.ActivityStreamsShares.Serialize(); err != nil {
|
||||
|
@ -1859,6 +1896,11 @@ func (this *ActivityStreamsTentativeReject) SetActivityStreamsResult(i vocab.Act
|
|||
this.ActivityStreamsResult = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsSensitive sets the "sensitive" property.
|
||||
func (this *ActivityStreamsTentativeReject) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty) {
|
||||
this.ActivityStreamsSensitive = i
|
||||
}
|
||||
|
||||
// SetActivityStreamsShares sets the "shares" property.
|
||||
func (this *ActivityStreamsTentativeReject) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty) {
|
||||
this.ActivityStreamsShares = i
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue