Add the missing 'shares' property to streams.Object

このコミットが含まれているのは:
Cory Slep 2018-08-21 19:00:49 +02:00
コミット bd6369d284
52個のファイルの変更1976行の追加0行の削除

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Accept) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Accept) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Accept) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Accept) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Activity) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Activity) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Activity) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Activity) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Add) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Add) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Add) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Add) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Announce) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Announce) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Announce) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Announce) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Application) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Application) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Application) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Application) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2404,3 +2404,41 @@ func (t *Arrive) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Arrive) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Arrive) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Arrive) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Article) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Article) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Article) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Article) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Audio) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Audio) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Audio) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Audio) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Block) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Block) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Block) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Block) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2310,3 +2310,41 @@ func (t *Collection) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Collection) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Collection) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Collection) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2424,3 +2424,41 @@ func (t *CollectionPage) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *CollectionPage) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *CollectionPage) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *CollectionPage) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Create) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Create) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Create) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Create) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Delete) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Delete) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Delete) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Delete) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Dislike) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Dislike) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Dislike) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Dislike) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Document) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Document) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Document) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Document) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Event) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Event) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Event) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Event) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Flag) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Flag) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Flag) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Flag) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Follow) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Follow) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Follow) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Follow) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Group) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Group) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Group) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Group) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Ignore) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Ignore) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Ignore) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Ignore) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2165,3 +2165,41 @@ func (t *Image) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Image) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Image) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Image) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2404,3 +2404,41 @@ func (t *IntransitiveActivity) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *IntransitiveActivity) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *IntransitiveActivity) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *IntransitiveActivity) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Invite) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Invite) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Invite) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Invite) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Join) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Join) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Join) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Join) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Leave) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Leave) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Leave) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Leave) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Like) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Like) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Like) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Like) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Listen) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Listen) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Listen) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Listen) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Move) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Move) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Move) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Move) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Note) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Note) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Note) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Note) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Object) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Object) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Object) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Object) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Offer) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Offer) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Offer) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Offer) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2310,3 +2310,41 @@ func (t *OrderedCollection) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *OrderedCollection) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *OrderedCollection) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *OrderedCollection) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2421,6 +2421,44 @@ func (t *OrderedCollectionPage) SetSharedInbox(k *url.URL) {
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *OrderedCollectionPage) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *OrderedCollectionPage) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *OrderedCollectionPage) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}
// ResolvePartOf passes the actual concrete type to the resolver for handing property partOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *OrderedCollectionPage) ResolvePartOf(r *Resolver) (s Resolution, err error) {
s = Unresolved

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Organization) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Organization) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Organization) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Organization) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Page) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Page) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Page) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Page) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Person) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Person) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Person) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Person) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2267,3 +2267,41 @@ func (t *Place) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Place) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Place) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Place) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2131,3 +2131,41 @@ func (t *Profile) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Profile) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Profile) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Profile) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2598,3 +2598,41 @@ func (t *Question) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Question) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Question) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Question) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Read) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Read) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Read) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Read) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Reject) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Reject) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Reject) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Reject) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2230,3 +2230,41 @@ func (t *Relationship) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Relationship) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Relationship) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Relationship) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Remove) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Remove) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Remove) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Remove) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Service) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Service) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Service) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Service) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *TentativeAccept) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *TentativeAccept) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *TentativeAccept) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *TentativeAccept) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *TentativeReject) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *TentativeReject) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *TentativeReject) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *TentativeReject) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2187,3 +2187,41 @@ func (t *Tombstone) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Tombstone) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Tombstone) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Tombstone) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2404,3 +2404,41 @@ func (t *Travel) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Travel) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Travel) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Travel) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Undo) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Undo) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Undo) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Undo) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *Update) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Update) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Update) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Update) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2097,3 +2097,41 @@ func (t *Video) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Video) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *Video) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *Video) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}

ファイルの表示

@ -2456,3 +2456,41 @@ func (t *View) SetSharedInbox(k *url.URL) {
t.raw.SetSharedInbox(k)
}
// ResolveShares passes the actual concrete type to the resolver for handing property shares. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *View) ResolveShares(r *Resolver) (s Resolution, err error) {
s = Unresolved
handled := false
if t.raw.IsSharesCollection() {
handled, err = r.dispatch(t.raw.GetSharesCollection())
if handled {
s = Resolved
}
} else if t.raw.IsSharesOrderedCollection() {
s = RawResolutionNeeded
} else if t.raw.IsSharesAnyURI() {
s = RawResolutionNeeded
}
return
}
// HasShares returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired.
func (t *View) HasShares() (p Presence) {
p = NoPresence
if t.raw.IsSharesCollection() {
p = ConvenientPresence
} else if t.raw.IsSharesOrderedCollection() {
p = RawPresence
} else if t.raw.IsSharesAnyURI() {
p = RawPresence
}
return
}
// SetShares sets this value to be a 'Collection' type.
func (t *View) SetShares(i vocab.CollectionType) {
t.raw.SetSharesCollection(i)
}