[feature] Use hidesToPublicFromUnauthedWeb and hidesCcPublicFromUnauthedWeb properties for web visibility of statuses (#4315)

This pull request implements two new properties on ActivityPub actors: `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb`.

As documented, these properties allow actors to signal their preference for whether or not their posts should be hidden from unauthenticated web views (ie., web pages like the GtS frontend, web apps like the Mastodon frontend, web APIs like the Mastodon public timeline API, etc). This allows remote accounts to *opt in* to having their unlisted visibility posts shown in (for example) the replies section of the web view of a GtS thread. In future, we can also use these properties to determine whether we should show boosts of a remote actor's post on a GtS profile, and that sort of thing.

In keeping with our stance around privacy by default, GtS assumes `true` for `hidesCcPublicFromUnauthedWeb` if the property is not set on a remote actor, ie., hide unlisted/unlocked posts by default. `hidesToPublicFromUnauthedWeb` is assumed to be `false` if the property is not set on a remote actor, ie., show public posts by default.

~~WIP as I still want to work on the documentation for this a bit.~~

New props are already in the namespace document: https://gotosocial.org/ns

Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4315
Reviewed-by: kim <gruf@noreply.codeberg.org>
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
tobi 2025-07-09 16:50:25 +02:00 committed by kim
commit dcfc9b7885
159 changed files with 10900 additions and 2918 deletions

View file

@ -248,6 +248,90 @@ Another difference between GoToSocial and other server implementations is that G
Instead, to build a view of a GoToSocial user's pinned posts, it is recommended that remote instances simply poll a GoToSocial Actor's `featured` collection every so often, and add/remove posts in their cached representation as appropriate.
## `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb`
GoToSocial uses the properties `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb` to indicate whether an actor prefers to hide posts addressed `to` or `cc` public from unauthenticated (ie., logged-out) visitors to web pages, web apps, and web APIs.
Some background for this: many ActivityPub server softwares allow unauthenticated visitors to the profile web page of an actor to see a list of posts that an actor has created that are addressed either `to` or `cc` public. These are often called "public" posts, and "unlisted", "unlocked", or "quiet public" posts, respectively. GoToSocial provides [a settings flag](../user_guide/settings.md#visibility-level-of-posts-to-show-on-your-profile) that allows GtS accounts to hide posts from the web view of their profile, as one layer of protection to make it more of a nuisance to scrape/stalk someone with a GtS account.
While this setting works for hiding posts of an actor *on their own instance*, prior to GoToSocial v0.20.0, this preference was not federated out to other instances, nor was it federated in from other instances. This leads to two problems:
1. Many other fedi server softwares permit logged-out visitors, via a web app, to look up profiles of *remote* accounts, and to see public and unlisted posts created by those accounts. This means that it is trivial to work around the ability of GtS users to hide their posts from the web. For example, say a GtS user at `@someone@gts.example.org` locks down their profile by setting the visibility of posts on their profile to "none"; this prevents visitors to `gts.example.org` from seeing posts, but one could visit eg. `mastodon.example.org` and, while logged out, look up `@someone@gts.example.org`, and see all the posts there that have been sent to, or dereferenced by, actors on `mastodon.example.org`. This makes the GtS user's choice to hide their posts significantly less meaningful.
2. In an effort to support this extra layer of privacy, by default GoToSocial instances do not show posts from remote instances unless they are addressed `to` public. For example, if someone from `mastodon.example.org` were to reply to a post by `@someone@gts.example.org`, and the reply was only addressed `cc` public instead of `to` public, the GtS instance `gts.example.org` would *not* show that reply in the web view, as it could not determine the preferences of the user from `mastodon.example.org` with regard to showing the "quiet public" post to logged-out visitors to the web page. This could be frustrating for the GtS user, as they might want to show a more complete picture of the thread that they started, right there on their instance; this could also frustrate the Mastodon user, as are used to their "quiet public" posts being visible on the web even when logged out.
The actor properties `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb` are a move towards solving these issues, by allowing actors to signal their preferences for hiding or showing `to`- and/or `cc`-public posts to unauthenticated visitors via the web.
For example, the following actor representation indicates that the actor is happy to show both "unlisted" and "public" posts via unauthed web view (this represents the de-facto default for actors on Mastodon and most other server softwares):
```json
{
"@context": [
"https://gotosocial.org/ns",
"https://www.w3.org/ns/activitystreams"
],
"type": "Person",
[... other properties here ...]
"hidesToPublicFromUnauthedWeb": false,
"hidesCcPublicFromUnauthedWeb": false,
[... other properties here ...]
}
```
By contrast, the following indicates that the actor hides "unlisted" posts but is happy to show "public" posts unauthed (this is the default for actors on GtS instances):
```json
{
"@context": [
"https://gotosocial.org/ns",
"https://www.w3.org/ns/activitystreams"
],
"type": "Person",
[... other properties here ...]
"hidesToPublicFromUnauthedWeb": false,
"hidesCcPublicFromUnauthedWeb": true,
[... other properties here ...]
}
```
And the following shows that the actor wants to show no posts unauthed at all:
```json
{
"@context": [
"https://gotosocial.org/ns",
"https://www.w3.org/ns/activitystreams"
],
"type": "Person",
[... other properties here ...]
"hidesToPublicFromUnauthedWeb": true,
"hidesCcPublicFromUnauthedWeb": true,
[... other properties here ...]
}
```
Both `hidesToPublicFromUnauthedWeb` and `hidesCcPublicFromUnauthedWeb` are defined in [the GoToSocial json-ld `@context` document](https://gotosocial.org/ns).
In line with its emphasis on having people opt-in to greater visibility rather than opt-out, when receiving a post from a remote actor that does not set these flags, GoToSocial assumes `hidesToPublicFromUnauthedWeb` = `false`, and `hidesCcPublicFromUnauthedWeb` = `true`. That is, the pre-v0.20.x behavior of GoToSocial is still the default for remote servers that don't (yet) use these flags.
!!! note
While unusual, it's possible for an actor to also specify that they want to show "unlisted" posts but hide "public" ones:
```json
{
"@context": [
"https://gotosocial.org/ns",
"https://www.w3.org/ns/activitystreams"
],
"type": "Person",
[... other properties here ...]
"hidesToPublicFromUnauthedWeb": true,
"hidesCcPublicFromUnauthedWeb": false,
[... other properties here ...]
}
```
GoToSocial respects these flags for incoming posts, but it does not let accounts set this combination of flags for outgoing posts. It may be desirable for other implementers to also prevent users from being able to set this state, as it doesn't make a lot of sense.
## Actor Migration / Aliasing
GoToSocial supports account migration from one instance/server to another through a combination of the `Move` activity, and the Actor Object properties `alsoKnownAs` and `movedTo`.

View file

@ -115,15 +115,15 @@ Some examples:
#### Visibility Level of Posts to Show on Your Profile
Using this dropdown, you can choose what visibility level(s) of posts should be shown on the public web views of your profile, of your statuses, and in your RSS feed (if you have enabled RSS).
Using this dropdown, you can choose what visibility level(s) of posts should be shown on the public web views of your profile and posts, and in your RSS feed (if enabled).
**By default, GoToSocial shows only Public visibility posts on its web views, not Unlisted.** You can adjust this setting to also show Unlisted visibility posts, which is similar to the default for other ActivityPub softwares like Mastodon etc.
You can also choose to show no posts at all on GoToSocial's web views. This allows you to write posts without having to worry about scrapers, rubberneckers, and other nosy parkers visiting your web profile and looking at your posts.
You can also choose to show no posts at all on the web view of your profile. This allows you to post without having to worry about scrapers, rubberneckers, and other nosy parkers being able to easily look through your posts by opening your profile in a browser.
This setting only applies to the visibility of your own posts. Other user's Unlisted posts are never shown.
Please bear in mind that this setting only applies to the logged-out (unauthenticated) web view of your profile and threads that people visit in their web browser, and RSS feed (if enabled). It does not change the visibility of your posts over the ActivityPub protocol. So even if you choose to show no posts to logged-out visitors to your web profile, folks on instances you federate with will be able to see your posts via ActivityPub if they follow you, have your posts boosted onto their timeline by other people, use a link to search a post of yours, etc.
This setting does not affect visibility of your posts over the ActivityPub protocol, so even if you choose to show no posts on your public web profile, others will be able to see your posts in their client if they follow you, and/or have your posts boosted onto their timeline, use a link to search a post of yours, etc.
Furthermore, while GoToSocial does [transmit a flag to other instances](../federation/actors.md) indicating your preference of what post visibility level to show to logged-out visitors, not all servers will respect this flag; indeed, many servers allow logged-out visitors to look up remote profiles, which can expose your public and unlisted posts. If you require stricter control over who sees your posts, consider posting things at the [followers-only](./posts.md#privatefollowers-only) visibility level, which almost all server softwares respect and properly gate behind authorization.
!!! warning
Be aware that changes to this setting also apply retroactively.

2
go.mod
View file

@ -11,7 +11,7 @@ replace github.com/go-swagger/go-swagger => codeberg.org/superseriousbusiness/go
replace modernc.org/sqlite => gitlab.com/NyaaaWhatsUpDoc/sqlite v1.38.0-concurrency-workaround
require (
code.superseriousbusiness.org/activity v1.15.1
code.superseriousbusiness.org/activity v1.16.0
code.superseriousbusiness.org/exif-terminator v0.11.0
code.superseriousbusiness.org/httpsig v1.4.0
code.superseriousbusiness.org/oauth2/v4 v4.5.4-0.20250606121655-9d54ef189d42

4
go.sum generated
View file

@ -1,5 +1,5 @@
code.superseriousbusiness.org/activity v1.15.1 h1:vCJ4X8wscBWnrBh61Reot64p8LZmlyoFfj7qjcci840=
code.superseriousbusiness.org/activity v1.15.1/go.mod h1:BTMWJIAuwDH1w+ieRP5N+T5LipbXjw35U6KZy0V/xdg=
code.superseriousbusiness.org/activity v1.16.0 h1:6WHpKx2ggkwRlI6lqiK4+VHUdTYRVOcba3fCo1E6wWk=
code.superseriousbusiness.org/activity v1.16.0/go.mod h1:BTMWJIAuwDH1w+ieRP5N+T5LipbXjw35U6KZy0V/xdg=
code.superseriousbusiness.org/exif-terminator v0.11.0 h1:Hof0MCcsa+1fS17gf86fTTZ8AQnMY9h9kzcc+2C6mVg=
code.superseriousbusiness.org/exif-terminator v0.11.0/go.mod h1:9sutT1axa/kSdlPLlRFjCNKmyo/KNx8eX3XZvWBlAEY=
code.superseriousbusiness.org/go-jpeg-image-structure/v2 v2.3.0 h1:r9uq8StaSHYKJ8DklR9Xy+E9c40G1Z8yj5TRGi8L6+4=

View file

@ -227,6 +227,8 @@ type Accountable interface {
WithMovedTo
WithAlsoKnownAs
WithManuallyApprovesFollowers
WithHidesToPublicFromUnauthedWeb
WithHidesCcPublicFromUnauthedWeb
WithEndpoints
WithTag
WithPublished
@ -711,6 +713,18 @@ type WithManuallyApprovesFollowers interface {
SetActivityStreamsManuallyApprovesFollowers(vocab.ActivityStreamsManuallyApprovesFollowersProperty)
}
// WithHidesToPublicFromUnauthedWeb represents a Person or profile with the hidesToPublicFromUnauthedWeb property.
type WithHidesToPublicFromUnauthedWeb interface {
GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty
SetGoToSocialHidesToPublicFromUnauthedWeb(vocab.GoToSocialHidesToPublicFromUnauthedWebProperty)
}
// WithHidesCcPublicFromUnauthedWeb represents a Person or profile with the hidesCcPublicFromUnauthedWeb property.
type WithHidesCcPublicFromUnauthedWeb interface {
GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty
SetGoToSocialHidesCcPublicFromUnauthedWeb(vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty)
}
// WithEndpoints represents a Person or profile with the endpoints property
type WithEndpoints interface {
GetActivityStreamsEndpoints() vocab.ActivityStreamsEndpointsProperty

View file

@ -562,6 +562,48 @@ func SetManuallyApprovesFollowers(with WithManuallyApprovesFollowers, manuallyAp
mafProp.Set(manuallyApprovesFollowers)
}
// GetHidesToPublicFromUnauthedWeb returns the boolean contained in the hidesToPublicFromUnauthedWeb property of 'with'.
//
// Returns default 'false' if property unusable or not set.
func GetHidesToPublicFromUnauthedWeb(with WithHidesToPublicFromUnauthedWeb) bool {
hidesProp := with.GetGoToSocialHidesToPublicFromUnauthedWeb()
if hidesProp == nil || !hidesProp.IsXMLSchemaBoolean() {
return false
}
return hidesProp.Get()
}
// SetHidesToPublicFromUnauthedWeb sets the given boolean on the hidesToPublicFromUnauthedWeb property of 'with'.
func SetHidesToPublicFromUnauthedWeb(with WithHidesToPublicFromUnauthedWeb, hidesToPublicFromUnauthedWeb bool) {
hidesProp := with.GetGoToSocialHidesToPublicFromUnauthedWeb()
if hidesProp == nil {
hidesProp = streams.NewGoToSocialHidesToPublicFromUnauthedWebProperty()
with.SetGoToSocialHidesToPublicFromUnauthedWeb(hidesProp)
}
hidesProp.Set(hidesToPublicFromUnauthedWeb)
}
// GetHidesCcPublicFromUnauthedWeb returns the boolean contained in the hidesCcPublicFromUnauthedWeb property of 'with'.
//
// Returns default 'true' if property unusable or not set.
func GetHidesCcPublicFromUnauthedWeb(with WithHidesCcPublicFromUnauthedWeb) bool {
hidesProp := with.GetGoToSocialHidesCcPublicFromUnauthedWeb()
if hidesProp == nil || !hidesProp.IsXMLSchemaBoolean() {
return true
}
return hidesProp.Get()
}
// SetHidesCcPublicFromUnauthedWeb sets the given boolean on the hidesCcPublicFromUnauthedWeb property of 'with'.
func SetHidesCcPublicFromUnauthedWeb(with WithHidesCcPublicFromUnauthedWeb, hidesCcPublicFromUnauthedWeb bool) {
hidesProp := with.GetGoToSocialHidesCcPublicFromUnauthedWeb()
if hidesProp == nil {
hidesProp = streams.NewGoToSocialHidesCcPublicFromUnauthedWebProperty()
with.SetGoToSocialHidesCcPublicFromUnauthedWeb(hidesProp)
}
hidesProp.Set(hidesCcPublicFromUnauthedWeb)
}
// GetApprovedBy returns the URL contained in
// the ApprovedBy property of 'with', if set.
func GetApprovedBy(with WithApprovedBy) *url.URL {

View file

@ -1054,10 +1054,21 @@ func (a *accountDB) GetAccountWebStatuses(
return nil, nil
}
// Check for an easy case: account exposes no statuses via the web.
webVisibility := account.Settings.WebVisibility
if webVisibility == gtsmodel.VisibilityNone {
return nil, db.ErrNoEntries
// Derive visibility of statuses on the web.
//
// We don't account for situations where someone
// hides public statuses but shows unlocked/unlisted,
// since that's only an option for remote accts.
var (
hideAll = *account.HidesToPublicFromUnauthedWeb
publicOnly = *account.HidesCcPublicFromUnauthedWeb
)
if hideAll {
// Account hides all
// statuses from web,
// nothing to do.
return nil, nil
}
// Ensure reasonable
@ -1075,27 +1086,18 @@ func (a *accountDB) GetAccountWebStatuses(
Column("status.id").
Where("? = ?", bun.Ident("status.account_id"), account.ID)
// Select statuses for this account according
// to their web visibility preference.
switch webVisibility {
case gtsmodel.VisibilityPublic:
// Select statuses according to
// account's web visibility prefs.
if publicOnly {
// Only Public statuses.
q = q.Where("? = ?", bun.Ident("status.visibility"), gtsmodel.VisibilityPublic)
case gtsmodel.VisibilityUnlocked:
} else {
// Public or Unlocked.
visis := []gtsmodel.Visibility{
gtsmodel.VisibilityPublic,
gtsmodel.VisibilityUnlocked,
}
q = q.Where("? IN (?)", bun.Ident("status.visibility"), bun.In(visis))
default:
return nil, gtserror.Newf(
"unrecognized web visibility for account %s: %s",
account.ID, webVisibility,
)
}
// Don't show replies, boosts, or

View file

@ -120,20 +120,21 @@ func (a *adminDB) NewSignup(ctx context.Context, newSignup gtsmodel.NewSignup) (
}
account = &gtsmodel.Account{
ID: accountID,
Username: newSignup.Username,
DisplayName: newSignup.Username,
URI: uris.UserURI,
URL: uris.UserURL,
InboxURI: uris.InboxURI,
OutboxURI: uris.OutboxURI,
FollowingURI: uris.FollowingURI,
FollowersURI: uris.FollowersURI,
FeaturedCollectionURI: uris.FeaturedCollectionURI,
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: privKey,
PublicKey: &privKey.PublicKey,
PublicKeyURI: uris.PublicKeyURI,
ID: accountID,
Username: newSignup.Username,
DisplayName: newSignup.Username,
URI: uris.UserURI,
URL: uris.UserURL,
InboxURI: uris.InboxURI,
OutboxURI: uris.OutboxURI,
FollowingURI: uris.FollowingURI,
FollowersURI: uris.FollowersURI,
FeaturedCollectionURI: uris.FeaturedCollectionURI,
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: privKey,
PublicKey: &privKey.PublicKey,
PublicKeyURI: uris.PublicKeyURI,
HidesCcPublicFromUnauthedWeb: util.Ptr(true), // GtS default to hide unlisted.
}
// Insert the new account!

View file

@ -0,0 +1,164 @@
// GoToSocial
// Copyright (C) GoToSocial Authors admin@gotosocial.org
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package migrations
import (
"context"
"fmt"
"reflect"
"code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250708074906_unauthed_web_updates/common"
newmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250708074906_unauthed_web_updates/new"
oldmodel "code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250708074906_unauthed_web_updates/old"
"code.superseriousbusiness.org/gotosocial/internal/log"
"github.com/uptrace/bun"
)
func init() {
up := func(ctx context.Context, db *bun.DB) error {
return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error {
var account *newmodel.Account
accountType := reflect.TypeOf(account)
// Add new columns to accounts
// table if they don't exist already.
for _, new := range []struct {
dbCol string
fieldName string
}{
{
dbCol: "hides_to_public_from_unauthed_web",
fieldName: "HidesToPublicFromUnauthedWeb",
},
{
dbCol: "hides_cc_public_from_unauthed_web",
fieldName: "HidesCcPublicFromUnauthedWeb",
},
} {
exists, err := doesColumnExist(
ctx,
tx,
"accounts",
new.dbCol,
)
if err != nil {
return err
}
if exists {
// Column already exists.
continue
}
// Column doesn't exist yet, add it.
colDef, err := getBunColumnDef(tx, accountType, new.fieldName)
if err != nil {
return fmt.Errorf("error making column def: %w", err)
}
log.Infof(ctx, "adding accounts.%s column...", new.dbCol)
if _, err := tx.
NewAddColumn().
Model(account).
ColumnExpr(colDef).
Exec(ctx); err != nil {
return fmt.Errorf("error adding column: %w", err)
}
}
// For each account settings we have
// stored on this instance, set the
// new account columns to values
// corresponding to the setting.
allSettings := []*oldmodel.AccountSettings{}
if err := tx.
NewSelect().
Model(&allSettings).
Column("account_id", "web_visibility").
Scan(ctx); err != nil {
return fmt.Errorf("error selecting settings: %w", err)
}
for _, settings := range allSettings {
// Derive web visibility.
var (
hidesToPublicFromUnauthedWeb bool
hidesCcPublicFromUnauthedWeb bool
)
switch settings.WebVisibility {
// Show nothing.
case common.VisibilityNone:
hidesToPublicFromUnauthedWeb = true
hidesCcPublicFromUnauthedWeb = true
// Show public only (GtS default).
case common.VisibilityPublic:
hidesToPublicFromUnauthedWeb = false
hidesCcPublicFromUnauthedWeb = true
// Show public + unlisted (Masto default).
case common.VisibilityUnlocked:
hidesToPublicFromUnauthedWeb = false
hidesCcPublicFromUnauthedWeb = false
default:
log.Warnf(ctx,
"local account %s had unrecognized settings.WebVisibility %d, skipping...",
settings.AccountID, settings.WebVisibility,
)
continue
}
// Update account.
if _, err := tx.
NewUpdate().
Table("accounts").
Set("? = ?", bun.Ident("hides_to_public_from_unauthed_web"), hidesToPublicFromUnauthedWeb).
Set("? = ?", bun.Ident("hides_cc_public_from_unauthed_web"), hidesCcPublicFromUnauthedWeb).
Where("? = ?", bun.Ident("id"), settings.AccountID).Exec(ctx); err != nil {
return fmt.Errorf("error updating local account: %w", err)
}
}
// Drop the old web_visibility column.
if _, err := tx.
NewDropColumn().
Model((*oldmodel.AccountSettings)(nil)).
Column("web_visibility").
Exec(ctx); err != nil {
return fmt.Errorf("error dropping old web_visibility column: %w", err)
}
return nil
})
}
down := func(ctx context.Context, db *bun.DB) error {
return db.RunInTx(ctx, nil, func(ctx context.Context, tx bun.Tx) error {
return nil
})
}
if err := Migrations.Register(up, down); err != nil {
panic(err)
}
}

View file

@ -0,0 +1,50 @@
// GoToSocial
// Copyright (C) GoToSocial Authors admin@gotosocial.org
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package common
// Visibility represents the
// visibility granularity of a status.
type Visibility int16
const (
// VisibilityNone means nobody can see this.
// It's only used for web status visibility.
VisibilityNone Visibility = 1
// VisibilityPublic means this status will
// be visible to everyone on all timelines.
VisibilityPublic Visibility = 2
// VisibilityUnlocked means this status will be visible to everyone,
// but will only show on home timeline to followers, and in lists.
VisibilityUnlocked Visibility = 3
// VisibilityFollowersOnly means this status is viewable to followers only.
VisibilityFollowersOnly Visibility = 4
// VisibilityMutualsOnly means this status
// is visible to mutual followers only.
VisibilityMutualsOnly Visibility = 5
// VisibilityDirect means this status is
// visible only to mentioned recipients.
VisibilityDirect Visibility = 6
// VisibilityDefault is used when no other setting can be found.
VisibilityDefault Visibility = VisibilityUnlocked
)

View file

@ -0,0 +1,102 @@
// GoToSocial
// Copyright (C) GoToSocial Authors admin@gotosocial.org
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package gtsmodel
import (
"crypto/rsa"
"time"
"code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250708074906_unauthed_web_updates/common"
)
type Account struct {
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
FetchedAt time.Time `bun:"type:timestamptz,nullzero"`
Username string `bun:",nullzero,notnull,unique:accounts_username_domain_uniq"`
Domain string `bun:",nullzero,unique:accounts_username_domain_uniq"`
AvatarMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
AvatarRemoteURL string `bun:",nullzero"`
HeaderMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
HeaderRemoteURL string `bun:",nullzero"`
DisplayName string `bun:",nullzero"`
EmojiIDs []string `bun:"emojis,array"`
Fields []*Field `bun:",nullzero"`
FieldsRaw []*Field `bun:",nullzero"`
Note string `bun:",nullzero"`
NoteRaw string `bun:",nullzero"`
AlsoKnownAsURIs []string `bun:"also_known_as_uris,array"`
AlsoKnownAs []*Account `bun:"-"`
MovedToURI string `bun:",nullzero"`
MovedTo *Account `bun:"-"`
MoveID string `bun:"type:CHAR(26),nullzero"`
Locked *bool `bun:",nullzero,notnull,default:true"`
Discoverable *bool `bun:",nullzero,notnull,default:false"`
URI string `bun:",nullzero,notnull,unique"`
URL string `bun:",nullzero"`
InboxURI string `bun:",nullzero"`
SharedInboxURI *string `bun:""`
OutboxURI string `bun:",nullzero"`
FollowingURI string `bun:",nullzero"`
FollowersURI string `bun:",nullzero"`
FeaturedCollectionURI string `bun:",nullzero"`
ActorType int16 `bun:",nullzero,notnull"`
PrivateKey *rsa.PrivateKey `bun:""`
PublicKey *rsa.PublicKey `bun:",notnull"`
PublicKeyURI string `bun:",nullzero,notnull,unique"`
PublicKeyExpiresAt time.Time `bun:"type:timestamptz,nullzero"`
MemorializedAt time.Time `bun:"type:timestamptz,nullzero"`
SensitizedAt time.Time `bun:"type:timestamptz,nullzero"`
SilencedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspendedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspensionOrigin string `bun:"type:CHAR(26),nullzero"`
// Added in this migration:
HidesToPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:false"`
HidesCcPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:false"`
}
type Field struct {
Name string
Value string
VerifiedAt time.Time `bun:",nullzero"`
}
type AccountSettings struct {
AccountID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
Privacy common.Visibility `bun:",nullzero,default:3"`
Sensitive *bool `bun:",nullzero,notnull,default:false"`
Language string `bun:",nullzero,notnull,default:'en'"`
StatusContentType string `bun:",nullzero"`
Theme string `bun:",nullzero"`
CustomCSS string `bun:",nullzero"`
EnableRSS *bool `bun:",nullzero,notnull,default:false"`
HideCollections *bool `bun:",nullzero,notnull,default:false"`
WebLayout int16 `bun:",nullzero,notnull,default:1"`
InteractionPolicyDirect *struct{} `bun:""`
InteractionPolicyMutualsOnly *struct{} `bun:""`
InteractionPolicyFollowersOnly *struct{} `bun:""`
InteractionPolicyUnlocked *struct{} `bun:""`
InteractionPolicyPublic *struct{} `bun:""`
// Removed in this migration:
// WebVisibility common.Visibility `bun:",nullzero,notnull,default:3"`
}

View file

@ -0,0 +1,96 @@
// GoToSocial
// Copyright (C) GoToSocial Authors admin@gotosocial.org
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
package gtsmodel
import (
"crypto/rsa"
"time"
"code.superseriousbusiness.org/gotosocial/internal/db/bundb/migrations/20250708074906_unauthed_web_updates/common"
)
type Account struct {
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
FetchedAt time.Time `bun:"type:timestamptz,nullzero"`
Username string `bun:",nullzero,notnull,unique:accounts_username_domain_uniq"`
Domain string `bun:",nullzero,unique:accounts_username_domain_uniq"`
AvatarMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
AvatarRemoteURL string `bun:",nullzero"`
HeaderMediaAttachmentID string `bun:"type:CHAR(26),nullzero"`
HeaderRemoteURL string `bun:",nullzero"`
DisplayName string `bun:",nullzero"`
EmojiIDs []string `bun:"emojis,array"`
Fields []*Field `bun:",nullzero"`
FieldsRaw []*Field `bun:",nullzero"`
Note string `bun:",nullzero"`
NoteRaw string `bun:",nullzero"`
AlsoKnownAsURIs []string `bun:"also_known_as_uris,array"`
AlsoKnownAs []*Account `bun:"-"`
MovedToURI string `bun:",nullzero"`
MovedTo *Account `bun:"-"`
MoveID string `bun:"type:CHAR(26),nullzero"`
Locked *bool `bun:",nullzero,notnull,default:true"`
Discoverable *bool `bun:",nullzero,notnull,default:false"`
URI string `bun:",nullzero,notnull,unique"`
URL string `bun:",nullzero"`
InboxURI string `bun:",nullzero"`
SharedInboxURI *string `bun:""`
OutboxURI string `bun:",nullzero"`
FollowingURI string `bun:",nullzero"`
FollowersURI string `bun:",nullzero"`
FeaturedCollectionURI string `bun:",nullzero"`
ActorType int16 `bun:",nullzero,notnull"`
PrivateKey *rsa.PrivateKey `bun:""`
PublicKey *rsa.PublicKey `bun:",notnull"`
PublicKeyURI string `bun:",nullzero,notnull,unique"`
PublicKeyExpiresAt time.Time `bun:"type:timestamptz,nullzero"`
MemorializedAt time.Time `bun:"type:timestamptz,nullzero"`
SensitizedAt time.Time `bun:"type:timestamptz,nullzero"`
SilencedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspendedAt time.Time `bun:"type:timestamptz,nullzero"`
SuspensionOrigin string `bun:"type:CHAR(26),nullzero"`
}
type Field struct {
Name string
Value string
VerifiedAt time.Time `bun:",nullzero"`
}
type AccountSettings struct {
AccountID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"`
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"`
Privacy common.Visibility `bun:",nullzero,default:3"`
Sensitive *bool `bun:",nullzero,notnull,default:false"`
Language string `bun:",nullzero,notnull,default:'en'"`
StatusContentType string `bun:",nullzero"`
Theme string `bun:",nullzero"`
CustomCSS string `bun:",nullzero"`
EnableRSS *bool `bun:",nullzero,notnull,default:false"`
HideCollections *bool `bun:",nullzero,notnull,default:false"`
WebVisibility common.Visibility `bun:",nullzero,notnull,default:3"`
WebLayout int16 `bun:",nullzero,notnull,default:1"`
InteractionPolicyDirect *struct{} `bun:""`
InteractionPolicyMutualsOnly *struct{} `bun:""`
InteractionPolicyFollowersOnly *struct{} `bun:""`
InteractionPolicyUnlocked *struct{} `bun:""`
InteractionPolicyPublic *struct{} `bun:""`
}

View file

@ -115,9 +115,7 @@ func (f *Filter) isStatusVisible(
if requester == nil {
// Use a different visibility
// heuristic for unauthed requests.
return f.isStatusVisibleUnauthed(
ctx, status,
)
return f.isStatusVisibleUnauthed(status), nil
}
/*
@ -245,57 +243,29 @@ func isPendingStatusVisible(requester *gtsmodel.Account, status *gtsmodel.Status
return false
}
// isStatusVisibleUnauthed returns whether status is visible without any unauthenticated account.
func (f *Filter) isStatusVisibleUnauthed(ctx context.Context, status *gtsmodel.Status) (bool, error) {
// For remote accounts, only show
// Public statuses via the web.
if status.Account.IsRemote() {
return status.Visibility == gtsmodel.VisibilityPublic, nil
}
// isStatusVisibleUnauthed returns whether status is visible without authentication.
func (f *Filter) isStatusVisibleUnauthed(status *gtsmodel.Status) bool {
// If status is local only,
// never show via the web.
// never show without auth.
if status.IsLocalOnly() {
return false, nil
return false
}
// Check account's settings to see
// what they expose. Populate these
// from the DB if necessary.
if status.Account.Settings == nil {
var err error
status.Account.Settings, err = f.state.DB.GetAccountSettings(ctx, status.Account.ID)
if err != nil {
return false, gtserror.Newf(
"error getting settings for account %s: %w",
status.Account.ID, err,
)
}
}
switch status.Visibility {
switch webvis := status.Account.Settings.WebVisibility; webvis {
// public_only: status must be Public.
case gtsmodel.VisibilityPublic:
return status.Visibility == gtsmodel.VisibilityPublic, nil
// Visible if account doesn't hide Public statuses.
return !*status.Account.HidesToPublicFromUnauthedWeb
// unlisted: status must be Public or Unlocked.
case gtsmodel.VisibilityUnlocked:
visible := status.Visibility == gtsmodel.VisibilityPublic ||
status.Visibility == gtsmodel.VisibilityUnlocked
return visible, nil
// Visible if account doesn't hide Unlocked statuses.
return !*status.Account.HidesCcPublicFromUnauthedWeb
// none: never show via the web.
case gtsmodel.VisibilityNone:
return false, nil
// Huh?
default:
return false, gtserror.Newf(
"unrecognized web visibility for account %s: %s",
status.Account.ID, webvis,
)
// For all other visibilities,
// never show without auth.
return false
}
}

View file

@ -272,6 +272,16 @@ type Account struct {
//
// Local accounts only.
Stats *AccountStats `bun:"-"`
// True if the actor hides to-public statusables
// from unauthenticated public access via the web.
// Default "false" if not set on the actor model.
HidesToPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:false"`
// True if the actor hides cc-public statusables
// from unauthenticated public access via the web.
// Default "true" if not set on the actor model.
HidesCcPublicFromUnauthedWeb *bool `bun:",nullzero,notnull,default:true"`
}
// UsernameDomain returns account @username@domain (missing domain if local).

View file

@ -35,7 +35,6 @@ type AccountSettings struct {
CustomCSS string `bun:",nullzero"` // Custom CSS that should be displayed for this Account's profile and statuses.
EnableRSS *bool `bun:",nullzero,notnull,default:false"` // enable RSS feed subscription for this account's public posts at [URL]/feed
HideCollections *bool `bun:",nullzero,notnull,default:false"` // Hide this account's followers/following collections.
WebVisibility Visibility `bun:",nullzero,notnull,default:3"` // Visibility level of statuses that visitors can view via the web profile.
WebLayout WebLayout `bun:",nullzero,notnull,default:1"` // Layout to use when showing this profile via the web.
InteractionPolicyDirect *InteractionPolicy `bun:""` // Interaction policy to use for new direct visibility statuses by this account. If null, assume default policy.
InteractionPolicyMutualsOnly *InteractionPolicy `bun:""` // Interaction policy to use for new mutuals only visibility statuses. If null, assume default policy.

View file

@ -212,6 +212,37 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form
}
}
if form.WebVisibility != nil {
switch apimodel.Visibility(*form.WebVisibility) {
// Show none.
case apimodel.VisibilityNone:
account.HidesToPublicFromUnauthedWeb = util.Ptr(true)
account.HidesCcPublicFromUnauthedWeb = util.Ptr(true)
// Show public only (GtS default).
case apimodel.VisibilityPublic:
account.HidesToPublicFromUnauthedWeb = util.Ptr(false)
account.HidesCcPublicFromUnauthedWeb = util.Ptr(true)
// Show public and unlisted (Masto default).
case apimodel.VisibilityUnlisted:
account.HidesToPublicFromUnauthedWeb = util.Ptr(false)
account.HidesCcPublicFromUnauthedWeb = util.Ptr(false)
default:
const text = "web_visibility must be one of public, unlisted, or none"
err := errors.New(text)
return nil, gtserror.NewErrorBadRequest(err, text)
}
acctColumns = append(
acctColumns,
"hides_to_public_from_unauthed_web",
"hides_cc_public_from_unauthed_web",
)
}
// Account settings flags.
if form.Source != nil {
@ -287,21 +318,6 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form
settingsColumns = append(settingsColumns, "hide_collections")
}
if form.WebVisibility != nil {
apiVis := apimodel.Visibility(*form.WebVisibility)
webVisibility := typeutils.APIVisToVis(apiVis)
if webVisibility != gtsmodel.VisibilityPublic &&
webVisibility != gtsmodel.VisibilityUnlocked &&
webVisibility != gtsmodel.VisibilityNone {
const text = "web_visibility must be one of public, unlocked, or none"
err := errors.New(text)
return nil, gtserror.NewErrorBadRequest(err, text)
}
account.Settings.WebVisibility = webVisibility
settingsColumns = append(settingsColumns, "web_visibility")
}
if form.WebLayout != nil {
webLayout := gtsmodel.ParseWebLayout(*form.WebLayout)
if webLayout == gtsmodel.WebLayoutUnknown {

View file

@ -67,7 +67,7 @@ func (suite *PublicTestSuite) TestPublicTimelineGetNotEmpty() {
ctx = suite.T().Context()
requester = suite.testAccounts["local_account_1"]
// Select 1 *just above* a status we know should
// not be in the public timeline -- a public
// not be in the public timeline -- an unlisted
// reply to one of admin's statuses.
maxID = "01HE7XJ1CG84TBKH5V9XKBVGF6"
sinceID = ""
@ -91,9 +91,9 @@ func (suite *PublicTestSuite) TestPublicTimelineGetNotEmpty() {
// some other statuses were filtered out.
suite.NoError(errWithCode)
suite.Len(resp.Items, 1)
suite.Equal(`<http://localhost:8080/api/v1/timelines/public?limit=1&local=false&max_id=01F8MHCP5P2NWYQ416SBA0XSEV>; rel="next", <http://localhost:8080/api/v1/timelines/public?limit=1&local=false&min_id=01HE7XJ1CG84TBKH5V9XKBVGF5>; rel="prev"`, resp.LinkHeader)
suite.Equal(`<http://localhost:8080/api/v1/timelines/public?limit=1&local=false&max_id=01F8MHCP5P2NWYQ416SBA0XSEV>; rel="next", <http://localhost:8080/api/v1/timelines/public?limit=1&local=false&min_id=01FF25D5Q0DH7CHD57CTRS6WK0>; rel="prev"`, resp.LinkHeader)
suite.Equal(`http://localhost:8080/api/v1/timelines/public?limit=1&local=false&max_id=01F8MHCP5P2NWYQ416SBA0XSEV`, resp.NextLink)
suite.Equal(`http://localhost:8080/api/v1/timelines/public?limit=1&local=false&min_id=01HE7XJ1CG84TBKH5V9XKBVGF5`, resp.PrevLink)
suite.Equal(`http://localhost:8080/api/v1/timelines/public?limit=1&local=false&min_id=01FF25D5Q0DH7CHD57CTRS6WK0`, resp.PrevLink)
}
// A timeline containing a status hidden due to filtering should return other statuses with no error.

View file

@ -43,8 +43,8 @@ func (suite *DereferenceTestSuite) TestDerefLocalUser() {
defer resp.Body.Close()
suite.Equal(http.StatusOK, resp.StatusCode)
suite.EqualValues(2007, resp.ContentLength)
suite.Equal("2007", resp.Header.Get("Content-Length"))
suite.EqualValues(2109, resp.ContentLength)
suite.Equal("2109", resp.Header.Get("Content-Length"))
suite.Equal(apiutil.AppActivityLDJSON, resp.Header.Get("Content-Type"))
b, err := io.ReadAll(resp.Body)
@ -59,6 +59,7 @@ func (suite *DereferenceTestSuite) TestDerefLocalUser() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -75,6 +76,8 @@ func (suite *DereferenceTestSuite) TestDerefLocalUser() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",

View file

@ -244,6 +244,10 @@ func (c *Converter) ASRepresentationToAccount(
acct.PublicKey = pkey
acct.PublicKeyURI = pkeyURL.String()
// Web visibility for statuses.
acct.HidesToPublicFromUnauthedWeb = util.Ptr(ap.GetHidesToPublicFromUnauthedWeb(accountable))
acct.HidesCcPublicFromUnauthedWeb = util.Ptr(ap.GetHidesCcPublicFromUnauthedWeb(accountable))
return &acct, nil
}

View file

@ -399,6 +399,10 @@ func (c *Converter) AccountToAS(
}
}
// Web visibility for statuses.
ap.SetHidesToPublicFromUnauthedWeb(accountable, *a.HidesToPublicFromUnauthedWeb)
ap.SetHidesCcPublicFromUnauthedWeb(accountable, *a.HidesCcPublicFromUnauthedWeb)
return accountable, nil
}

View file

@ -48,6 +48,7 @@ func (suite *InternalToASTestSuite) TestAccountToAS() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -64,6 +65,8 @@ func (suite *InternalToASTestSuite) TestAccountToAS() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",
@ -116,6 +119,7 @@ func (suite *InternalToASTestSuite) TestAccountToASBot() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -132,6 +136,8 @@ func (suite *InternalToASTestSuite) TestAccountToASBot() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",
@ -178,6 +184,7 @@ func (suite *InternalToASTestSuite) TestAccountToASWithFields() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -209,6 +216,8 @@ func (suite *InternalToASTestSuite) TestAccountToASWithFields() {
"featured": "http://localhost:8080/users/1happyturtle/collections/featured",
"followers": "http://localhost:8080/users/1happyturtle/followers",
"following": "http://localhost:8080/users/1happyturtle/following",
"hidesCcPublicFromUnauthedWeb": true,
"hidesToPublicFromUnauthedWeb": false,
"id": "http://localhost:8080/users/1happyturtle",
"inbox": "http://localhost:8080/users/1happyturtle/inbox",
"manuallyApprovesFollowers": true,
@ -256,6 +265,7 @@ func (suite *InternalToASTestSuite) TestAccountToASAliasedAndMoved() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -279,6 +289,8 @@ func (suite *InternalToASTestSuite) TestAccountToASAliasedAndMoved() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",
@ -328,6 +340,7 @@ func (suite *InternalToASTestSuite) TestAccountToASWithOneField() {
// Despite only one field being set, attachments should still be a slice/array.
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -354,6 +367,8 @@ func (suite *InternalToASTestSuite) TestAccountToASWithOneField() {
"featured": "http://localhost:8080/users/1happyturtle/collections/featured",
"followers": "http://localhost:8080/users/1happyturtle/followers",
"following": "http://localhost:8080/users/1happyturtle/following",
"hidesCcPublicFromUnauthedWeb": true,
"hidesToPublicFromUnauthedWeb": false,
"id": "http://localhost:8080/users/1happyturtle",
"inbox": "http://localhost:8080/users/1happyturtle/inbox",
"manuallyApprovesFollowers": true,
@ -389,6 +404,7 @@ func (suite *InternalToASTestSuite) TestAccountToASWithEmoji() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -406,6 +422,8 @@ func (suite *InternalToASTestSuite) TestAccountToASWithEmoji() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",
@ -464,6 +482,7 @@ func (suite *InternalToASTestSuite) TestAccountToASWithSharedInbox() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -483,6 +502,8 @@ func (suite *InternalToASTestSuite) TestAccountToASWithSharedInbox() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",

View file

@ -134,9 +134,26 @@ func (c *Converter) AccountToAPIAccountSensitive(ctx context.Context, a *gtsmode
statusContentType = a.Settings.StatusContentType
}
// Derive web visibility for
// this local account's statuses.
var webVisibility apimodel.Visibility
switch {
case *a.HidesToPublicFromUnauthedWeb:
// Hides all.
webVisibility = apimodel.VisibilityNone
case !*a.HidesCcPublicFromUnauthedWeb:
// Shows unlisted + public (Masto default).
webVisibility = apimodel.VisibilityUnlisted
default:
// Shows public only (GtS default).
webVisibility = apimodel.VisibilityPublic
}
apiAccount.Source = &apimodel.Source{
Privacy: VisToAPIVis(a.Settings.Privacy),
WebVisibility: VisToAPIVis(a.Settings.WebVisibility),
WebVisibility: webVisibility,
WebLayout: a.Settings.WebLayout.String(),
Sensitive: *a.Settings.Sensitive,
Language: a.Settings.Language,

View file

@ -965,7 +965,7 @@ func (suite *InternalToFrontendTestSuite) TestStatusToFrontendUnknownAttachments
"in_reply_to_account_id": "01F8MH17FWEB39HZJ76B6VXSKF",
"sensitive": true,
"spoiler_text": "some unknown media included",
"visibility": "public",
"visibility": "unlisted",
"language": "en",
"uri": "http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5",
"url": "http://example.org/@Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5",
@ -1114,7 +1114,7 @@ func (suite *InternalToFrontendTestSuite) TestStatusToWebStatus() {
"in_reply_to_account_id": "01F8MH17FWEB39HZJ76B6VXSKF",
"sensitive": true,
"spoiler_text": "some unknown media included",
"visibility": "public",
"visibility": "unlisted",
"language": "en",
"uri": "http://example.org/users/Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5",
"url": "http://example.org/@Some_User/statuses/01HE7XJ1CG84TBKH5V9XKBVGF5",

View file

@ -178,6 +178,7 @@ func (suite *WrapTestSuite) TestWrapAccountableInUpdate() {
suite.Equal(`{
"@context": [
"https://gotosocial.org/ns",
"https://w3id.org/security/v1",
"https://www.w3.org/ns/activitystreams",
{
@ -198,6 +199,8 @@ func (suite *WrapTestSuite) TestWrapAccountableInUpdate() {
"featured": "http://localhost:8080/users/the_mighty_zork/collections/featured",
"followers": "http://localhost:8080/users/the_mighty_zork/followers",
"following": "http://localhost:8080/users/the_mighty_zork/following",
"hidesCcPublicFromUnauthedWeb": false,
"hidesToPublicFromUnauthedWeb": false,
"icon": {
"mediaType": "image/jpeg",
"name": "a green goblin looking nasty",

View file

@ -292,88 +292,96 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
accounts := map[string]*gtsmodel.Account{
"instance_account": {
ID: "01AY6P665V14JJR0AFVRT7311Y",
Username: "localhost:8080",
CreatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/localhost:8080",
URL: "http://localhost:8080/@localhost:8080",
PublicKeyURI: "http://localhost:8080/users/localhost:8080#main-key",
InboxURI: "http://localhost:8080/users/localhost:8080/inbox",
OutboxURI: "http://localhost:8080/users/localhost:8080/outbox",
FollowersURI: "http://localhost:8080/users/localhost:8080/followers",
FollowingURI: "http://localhost:8080/users/localhost:8080/following",
FeaturedCollectionURI: "http://localhost:8080/users/localhost:8080/collections/featured",
ActorType: gtsmodel.AccountActorTypeService,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
ID: "01AY6P665V14JJR0AFVRT7311Y",
Username: "localhost:8080",
CreatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2020-05-17T13:10:59Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/localhost:8080",
URL: "http://localhost:8080/@localhost:8080",
PublicKeyURI: "http://localhost:8080/users/localhost:8080#main-key",
InboxURI: "http://localhost:8080/users/localhost:8080/inbox",
OutboxURI: "http://localhost:8080/users/localhost:8080/outbox",
FollowersURI: "http://localhost:8080/users/localhost:8080/followers",
FollowingURI: "http://localhost:8080/users/localhost:8080/following",
FeaturedCollectionURI: "http://localhost:8080/users/localhost:8080/collections/featured",
ActorType: gtsmodel.AccountActorTypeService,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"unconfirmed_account": {
ID: "01F8MH0BBE4FHXPH513MBVFHB0",
Username: "weed_lord420",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/weed_lord420",
URL: "http://localhost:8080/@weed_lord420",
InboxURI: "http://localhost:8080/users/weed_lord420/inbox",
OutboxURI: "http://localhost:8080/users/weed_lord420/outbox",
FollowersURI: "http://localhost:8080/users/weed_lord420/followers",
FollowingURI: "http://localhost:8080/users/weed_lord420/following",
FeaturedCollectionURI: "http://localhost:8080/users/weed_lord420/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/weed_lord420#main-key",
Settings: settings["unconfirmed_account"],
ID: "01F8MH0BBE4FHXPH513MBVFHB0",
Username: "weed_lord420",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/weed_lord420",
URL: "http://localhost:8080/@weed_lord420",
InboxURI: "http://localhost:8080/users/weed_lord420/inbox",
OutboxURI: "http://localhost:8080/users/weed_lord420/outbox",
FollowersURI: "http://localhost:8080/users/weed_lord420/followers",
FollowingURI: "http://localhost:8080/users/weed_lord420/following",
FeaturedCollectionURI: "http://localhost:8080/users/weed_lord420/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/weed_lord420#main-key",
Settings: settings["unconfirmed_account"],
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"admin_account": {
ID: "01F8MH17FWEB39HZJ76B6VXSKF",
Username: "admin",
CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/admin",
URL: "http://localhost:8080/@admin",
PublicKeyURI: "http://localhost:8080/users/admin#main-key",
InboxURI: "http://localhost:8080/users/admin/inbox",
OutboxURI: "http://localhost:8080/users/admin/outbox",
FollowersURI: "http://localhost:8080/users/admin/followers",
FollowingURI: "http://localhost:8080/users/admin/following",
FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
Settings: settings["admin_account"],
ID: "01F8MH17FWEB39HZJ76B6VXSKF",
Username: "admin",
CreatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
UpdatedAt: TimeMustParse("2022-05-17T13:10:59Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/admin",
URL: "http://localhost:8080/@admin",
PublicKeyURI: "http://localhost:8080/users/admin#main-key",
InboxURI: "http://localhost:8080/users/admin/inbox",
OutboxURI: "http://localhost:8080/users/admin/outbox",
FollowersURI: "http://localhost:8080/users/admin/followers",
FollowingURI: "http://localhost:8080/users/admin/following",
FeaturedCollectionURI: "http://localhost:8080/users/admin/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
Settings: settings["admin_account"],
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"local_account_1": {
ID: "01F8MH1H7YV1Z7D2C8K2730QBF",
Username: "the_mighty_zork",
AvatarMediaAttachmentID: "01F8MH58A357CV5K7R7TJMSH6S",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3Q",
DisplayName: "original zork (he/they)",
Note: "<p>hey yo this is my profile!</p>",
NoteRaw: "hey yo this is my profile!",
CreatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
UpdatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/the_mighty_zork",
URL: "http://localhost:8080/@the_mighty_zork",
InboxURI: "http://localhost:8080/users/the_mighty_zork/inbox",
OutboxURI: "http://localhost:8080/users/the_mighty_zork/outbox",
FollowersURI: "http://localhost:8080/users/the_mighty_zork/followers",
FollowingURI: "http://localhost:8080/users/the_mighty_zork/following",
FeaturedCollectionURI: "http://localhost:8080/users/the_mighty_zork/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/the_mighty_zork/main-key",
Settings: settings["local_account_1"],
ID: "01F8MH1H7YV1Z7D2C8K2730QBF",
Username: "the_mighty_zork",
AvatarMediaAttachmentID: "01F8MH58A357CV5K7R7TJMSH6S",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3Q",
DisplayName: "original zork (he/they)",
Note: "<p>hey yo this is my profile!</p>",
NoteRaw: "hey yo this is my profile!",
CreatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
UpdatedAt: TimeMustParse("2022-05-20T11:09:18Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://localhost:8080/users/the_mighty_zork",
URL: "http://localhost:8080/@the_mighty_zork",
InboxURI: "http://localhost:8080/users/the_mighty_zork/inbox",
OutboxURI: "http://localhost:8080/users/the_mighty_zork/outbox",
FollowersURI: "http://localhost:8080/users/the_mighty_zork/followers",
FollowingURI: "http://localhost:8080/users/the_mighty_zork/following",
FeaturedCollectionURI: "http://localhost:8080/users/the_mighty_zork/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/the_mighty_zork/main-key",
Settings: settings["local_account_1"],
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(false),
},
"local_account_2": {
ID: "01F8MH5NBDF2MV7CTC4Q5128HF",
@ -399,24 +407,26 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Value: "120",
},
},
Note: "<p>i post about things that concern me</p>",
NoteRaw: "i post about things that concern me",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/1happyturtle",
URL: "http://localhost:8080/@1happyturtle",
InboxURI: "http://localhost:8080/users/1happyturtle/inbox",
OutboxURI: "http://localhost:8080/users/1happyturtle/outbox",
FollowersURI: "http://localhost:8080/users/1happyturtle/followers",
FollowingURI: "http://localhost:8080/users/1happyturtle/following",
FeaturedCollectionURI: "http://localhost:8080/users/1happyturtle/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/1happyturtle#main-key",
Settings: settings["local_account_2"],
Note: "<p>i post about things that concern me</p>",
NoteRaw: "i post about things that concern me",
CreatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/1happyturtle",
URL: "http://localhost:8080/@1happyturtle",
InboxURI: "http://localhost:8080/users/1happyturtle/inbox",
OutboxURI: "http://localhost:8080/users/1happyturtle/outbox",
FollowersURI: "http://localhost:8080/users/1happyturtle/followers",
FollowingURI: "http://localhost:8080/users/1happyturtle/following",
FeaturedCollectionURI: "http://localhost:8080/users/1happyturtle/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/1happyturtle#main-key",
Settings: settings["local_account_2"],
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"local_account_3": {
ID: "01JPCMD83Y4WR901094YES3QC5",
@ -443,116 +453,126 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
Value: "you can do about it",
},
},
Note: "<p>I'm a test account that posts a shitload of media and I have my account rendered in \"gallery\" mode</p>",
NoteRaw: "I'm a test account that posts a shitload of media and I have my account rendered in \"gallery\" mode",
CreatedAt: TimeMustParse("2025-03-15T11:08:00Z"),
UpdatedAt: TimeMustParse("2025-03-15T11:08:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/media_mogul",
URL: "http://localhost:8080/@media_mogul",
InboxURI: "http://localhost:8080/users/media_mogul/inbox",
OutboxURI: "http://localhost:8080/users/media_mogul/outbox",
FollowersURI: "http://localhost:8080/users/media_mogul/followers",
FollowingURI: "http://localhost:8080/users/media_mogul/following",
FeaturedCollectionURI: "http://localhost:8080/users/media_mogul/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/media_mogul#main-key",
Settings: settings["local_account_3"],
Note: "<p>I'm a test account that posts a shitload of media and I have my account rendered in \"gallery\" mode</p>",
NoteRaw: "I'm a test account that posts a shitload of media and I have my account rendered in \"gallery\" mode",
CreatedAt: TimeMustParse("2025-03-15T11:08:00Z"),
UpdatedAt: TimeMustParse("2025-03-15T11:08:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "http://localhost:8080/users/media_mogul",
URL: "http://localhost:8080/@media_mogul",
InboxURI: "http://localhost:8080/users/media_mogul/inbox",
OutboxURI: "http://localhost:8080/users/media_mogul/outbox",
FollowersURI: "http://localhost:8080/users/media_mogul/followers",
FollowingURI: "http://localhost:8080/users/media_mogul/following",
FeaturedCollectionURI: "http://localhost:8080/users/media_mogul/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://localhost:8080/users/media_mogul#main-key",
Settings: settings["local_account_3"],
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(false),
},
"remote_account_1": {
ID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
Username: "foss_satan",
Domain: "fossbros-anonymous.io",
DisplayName: "big gerald",
Note: "i post about like, i dunno, stuff, or whatever!!!!",
CreatedAt: TimeMustParse("2021-09-26T12:52:36+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://fossbros-anonymous.io/users/foss_satan",
URL: "http://fossbros-anonymous.io/@foss_satan",
InboxURI: "http://fossbros-anonymous.io/users/foss_satan/inbox",
SharedInboxURI: util.Ptr("http://fossbros-anonymous.io/inbox"),
OutboxURI: "http://fossbros-anonymous.io/users/foss_satan/outbox",
FollowersURI: "http://fossbros-anonymous.io/users/foss_satan/followers",
FollowingURI: "http://fossbros-anonymous.io/users/foss_satan/following",
FeaturedCollectionURI: "http://fossbros-anonymous.io/users/foss_satan/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://fossbros-anonymous.io/users/foss_satan/main-key",
ID: "01F8MH5ZK5VRH73AKHQM6Y9VNX",
Username: "foss_satan",
Domain: "fossbros-anonymous.io",
DisplayName: "big gerald",
Note: "i post about like, i dunno, stuff, or whatever!!!!",
CreatedAt: TimeMustParse("2021-09-26T12:52:36+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(true),
URI: "http://fossbros-anonymous.io/users/foss_satan",
URL: "http://fossbros-anonymous.io/@foss_satan",
InboxURI: "http://fossbros-anonymous.io/users/foss_satan/inbox",
SharedInboxURI: util.Ptr("http://fossbros-anonymous.io/inbox"),
OutboxURI: "http://fossbros-anonymous.io/users/foss_satan/outbox",
FollowersURI: "http://fossbros-anonymous.io/users/foss_satan/followers",
FollowingURI: "http://fossbros-anonymous.io/users/foss_satan/following",
FeaturedCollectionURI: "http://fossbros-anonymous.io/users/foss_satan/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://fossbros-anonymous.io/users/foss_satan/main-key",
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"remote_account_2": {
ID: "01FHMQX3GAABWSM0S2VZEC2SWC",
Username: "Some_User",
Domain: "example.org",
DisplayName: "some user",
Note: "i'm a real son of a gun",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(true),
URI: "http://example.org/users/Some_User",
URL: "http://example.org/@Some_User",
InboxURI: "http://example.org/users/Some_User/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "http://example.org/users/Some_User/outbox",
FollowersURI: "http://example.org/users/Some_User/followers",
FollowingURI: "http://example.org/users/Some_User/following",
FeaturedCollectionURI: "http://example.org/users/Some_User/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://example.org/users/Some_User#main-key",
ID: "01FHMQX3GAABWSM0S2VZEC2SWC",
Username: "Some_User",
Domain: "example.org",
DisplayName: "some user",
Note: "i'm a real son of a gun",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(true),
URI: "http://example.org/users/Some_User",
URL: "http://example.org/@Some_User",
InboxURI: "http://example.org/users/Some_User/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "http://example.org/users/Some_User/outbox",
FollowersURI: "http://example.org/users/Some_User/followers",
FollowingURI: "http://example.org/users/Some_User/following",
FeaturedCollectionURI: "http://example.org/users/Some_User/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://example.org/users/Some_User#main-key",
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(false),
},
"remote_account_3": {
ID: "062G5WYKY35KKD12EMSM3F8PJ8",
Username: "her_fuckin_maj",
Domain: "thequeenisstillalive.technology",
DisplayName: "lizzzieeeeeeeeeeee",
Note: "if i die blame charles don't let that fuck become king",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(true),
URI: "http://thequeenisstillalive.technology/users/her_fuckin_maj",
URL: "http://thequeenisstillalive.technology/@her_fuckin_maj",
InboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/outbox",
FollowersURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/followers",
FollowingURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/following",
FeaturedCollectionURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj#main-key",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3R",
ID: "062G5WYKY35KKD12EMSM3F8PJ8",
Username: "her_fuckin_maj",
Domain: "thequeenisstillalive.technology",
DisplayName: "lizzzieeeeeeeeeeee",
Note: "if i die blame charles don't let that fuck become king",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(true),
Discoverable: util.Ptr(true),
URI: "http://thequeenisstillalive.technology/users/her_fuckin_maj",
URL: "http://thequeenisstillalive.technology/@her_fuckin_maj",
InboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/outbox",
FollowersURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/followers",
FollowingURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/following",
FeaturedCollectionURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "http://thequeenisstillalive.technology/users/her_fuckin_maj#main-key",
HeaderMediaAttachmentID: "01PFPMWK2FF0D9WMHEJHR07C3R",
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
"remote_account_4": {
ID: "07GZRBAEMBNKGZ8Z9VSKSXKR98",
Username: "üser",
Domain: "xn--xample-ova.org",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "https://xn--xample-ova.org/users/%C3%BCser",
URL: "https://xn--xample-ova.org/users/@%C3%BCser",
FetchedAt: time.Time{},
InboxURI: "https://xn--xample-ova.org/users/%C3%BCser/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "https://xn--xample-ova.org/users/%C3%BCser/outbox",
FollowersURI: "https://xn--xample-ova.org/users/%C3%BCser/followers",
FollowingURI: "https://xn--xample-ova.org/users/%C3%BCser/following",
FeaturedCollectionURI: "https://xn--xample-ova.org/users/%C3%BCser/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "https://xn--xample-ova.org/users/%C3%BCser#main-key",
ID: "07GZRBAEMBNKGZ8Z9VSKSXKR98",
Username: "üser",
Domain: "xn--xample-ova.org",
CreatedAt: TimeMustParse("2020-08-10T14:13:28+02:00"),
UpdatedAt: TimeMustParse("2022-06-04T13:12:00Z"),
Locked: util.Ptr(false),
Discoverable: util.Ptr(false),
URI: "https://xn--xample-ova.org/users/%C3%BCser",
URL: "https://xn--xample-ova.org/users/@%C3%BCser",
FetchedAt: time.Time{},
InboxURI: "https://xn--xample-ova.org/users/%C3%BCser/inbox",
SharedInboxURI: util.Ptr(""),
OutboxURI: "https://xn--xample-ova.org/users/%C3%BCser/outbox",
FollowersURI: "https://xn--xample-ova.org/users/%C3%BCser/followers",
FollowingURI: "https://xn--xample-ova.org/users/%C3%BCser/following",
FeaturedCollectionURI: "https://xn--xample-ova.org/users/%C3%BCser/collections/featured",
ActorType: gtsmodel.AccountActorTypePerson,
PrivateKey: &rsa.PrivateKey{},
PublicKey: &rsa.PublicKey{},
PublicKeyURI: "https://xn--xample-ova.org/users/%C3%BCser#main-key",
HidesToPublicFromUnauthedWeb: util.Ptr(false),
HidesCcPublicFromUnauthedWeb: util.Ptr(true),
},
}
@ -619,7 +639,6 @@ func NewTestAccountSettings() map[string]*gtsmodel.AccountSettings {
Language: "en",
EnableRSS: util.Ptr(false),
HideCollections: util.Ptr(false),
WebVisibility: gtsmodel.VisibilityPublic,
WebLayout: gtsmodel.WebLayoutMicroblog,
},
"admin_account": {
@ -631,7 +650,6 @@ func NewTestAccountSettings() map[string]*gtsmodel.AccountSettings {
Language: "en",
EnableRSS: util.Ptr(true),
HideCollections: util.Ptr(false),
WebVisibility: gtsmodel.VisibilityPublic,
WebLayout: gtsmodel.WebLayoutMicroblog,
},
"local_account_1": {
@ -643,7 +661,6 @@ func NewTestAccountSettings() map[string]*gtsmodel.AccountSettings {
Language: "en",
EnableRSS: util.Ptr(true),
HideCollections: util.Ptr(false),
WebVisibility: gtsmodel.VisibilityUnlocked,
WebLayout: gtsmodel.WebLayoutMicroblog,
},
"local_account_2": {
@ -655,7 +672,6 @@ func NewTestAccountSettings() map[string]*gtsmodel.AccountSettings {
Language: "fr",
EnableRSS: util.Ptr(false),
HideCollections: util.Ptr(true),
WebVisibility: gtsmodel.VisibilityPublic,
WebLayout: gtsmodel.WebLayoutMicroblog,
},
"local_account_3": {
@ -667,7 +683,6 @@ func NewTestAccountSettings() map[string]*gtsmodel.AccountSettings {
Language: "en",
EnableRSS: util.Ptr(true),
HideCollections: util.Ptr(false),
WebVisibility: gtsmodel.VisibilityUnlocked,
WebLayout: gtsmodel.WebLayoutGallery,
},
}
@ -2761,7 +2776,7 @@ func NewTestStatuses() map[string]*gtsmodel.Status {
InReplyToAccountID: "01F8MH17FWEB39HZJ76B6VXSKF",
InReplyToURI: "http://localhost:8080/users/admin/statuses/01F8MH75CBF9JFX4ZAD54N0W0R",
ContentWarning: "some unknown media included",
Visibility: gtsmodel.VisibilityPublic,
Visibility: gtsmodel.VisibilityUnlocked,
Sensitive: util.Ptr(true),
Language: "en",
Federated: util.Ptr(true),

View file

@ -77,6 +77,9 @@ var ActivityStreamsDocumentName string = "Document"
// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary.
var TootEmojiName string = "Emoji"
// LitePubEmojiReactName is the string literal of the name for the EmojiReact type in the LitePub vocabulary.
var LitePubEmojiReactName string = "EmojiReact"
// ActivityStreamsEndpointsName is the string literal of the name for the Endpoints type in the ActivityStreams vocabulary.
var ActivityStreamsEndpointsName string = "Endpoints"
@ -353,6 +356,12 @@ var ActivityStreamsGeneratorPropertyName string = "generator"
// ActivityStreamsHeightPropertyName is the string literal of the name for the height property in the ActivityStreams vocabulary.
var ActivityStreamsHeightPropertyName string = "height"
// GoToSocialHidesCcPublicFromUnauthedWebPropertyName is the string literal of the name for the hidesCcPublicFromUnauthedWeb property in the GoToSocial vocabulary.
var GoToSocialHidesCcPublicFromUnauthedWebPropertyName string = "hidesCcPublicFromUnauthedWeb"
// GoToSocialHidesToPublicFromUnauthedWebPropertyName is the string literal of the name for the hidesToPublicFromUnauthedWeb property in the GoToSocial vocabulary.
var GoToSocialHidesToPublicFromUnauthedWebPropertyName string = "hidesToPublicFromUnauthedWeb"
// ActivityStreamsHrefPropertyName is the string literal of the name for the href property in the ActivityStreams vocabulary.
var ActivityStreamsHrefPropertyName string = "href"

View file

@ -147,6 +147,8 @@ import (
propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike"
propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote"
propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply"
propertyhidesccpublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb"
propertyhidestopublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb"
propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject"
propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy"
propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget"
@ -165,6 +167,7 @@ import (
typereplyapproval "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyapproval"
typereplyauthorization "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyauthorization"
typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest"
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value"
typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue"
propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash"
@ -341,6 +344,8 @@ func init() {
propertycanlike.SetManager(mgr)
propertycanquote.SetManager(mgr)
propertycanreply.SetManager(mgr)
propertyhidesccpublicfromunauthedweb.SetManager(mgr)
propertyhidestopublicfromunauthedweb.SetManager(mgr)
propertyinteractingobject.SetManager(mgr)
propertyinteractionpolicy.SetManager(mgr)
propertyinteractiontarget.SetManager(mgr)
@ -359,6 +364,7 @@ func init() {
typereplyapproval.SetManager(mgr)
typereplyauthorization.SetManager(mgr)
typereplyrequest.SetManager(mgr)
typeemojireact.SetManager(mgr)
propertyvalue.SetManager(mgr)
typepropertyvalue.SetManager(mgr)
propertyblurhash.SetManager(mgr)
@ -449,6 +455,7 @@ func init() {
typereplyapproval.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereplyauthorization.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typereplyrequest.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeemojireact.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepropertyvalue.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typehashtag.SetTypePropertyConstructor(NewJSONLDTypeProperty)

View file

@ -81,6 +81,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.TootEmoji) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.LitePubEmojiReact) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEndpoints) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEvent) error:
@ -287,6 +289,13 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
if len(TootAlias) > 0 {
TootAlias += ":"
}
LitePubAlias, ok := aliasMap["https://litepub.social/ns"]
if !ok {
LitePubAlias = aliasMap["http://litepub.social/ns"]
}
if len(LitePubAlias) > 0 {
LitePubAlias += ":"
}
SchemaAlias, ok := aliasMap["https://schema.org"]
if !ok {
SchemaAlias = aliasMap["http://schema.org"]
@ -577,6 +586,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == LitePubAlias+"EmojiReact" {
v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.LitePubEmojiReact) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Endpoints" {
v, err := mgr.DeserializeEndpointsActivityStreams()(m, aliasMap)
if err != nil {

View file

@ -147,6 +147,8 @@ import (
propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike"
propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote"
propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply"
propertyhidesccpublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb"
propertyhidestopublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb"
propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject"
propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy"
propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget"
@ -167,6 +169,7 @@ import (
typereplyrequest "code.superseriousbusiness.org/activity/streams/impl/gotosocial/type_replyrequest"
propertyid "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_id"
propertytype "code.superseriousbusiness.org/activity/streams/impl/jsonld/property_type"
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
propertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/property_value"
typepropertyvalue "code.superseriousbusiness.org/activity/streams/impl/schema/type_propertyvalue"
propertyblurhash "code.superseriousbusiness.org/activity/streams/impl/toot/property_blurhash"
@ -862,6 +865,18 @@ func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string
}
}
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary "LitePub"
func (this Manager) DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.LitePubEmojiReact, error) {
i, err := typeemojireact.DeserializeEmojiReact(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeEmojiToot returns the deserialization method for the "TootEmoji"
// non-functional property in the vocabulary "Toot"
func (this Manager) DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error) {
@ -1079,6 +1094,34 @@ func (this Manager) DeserializeHeightPropertyActivityStreams() func(map[string]i
}
}
// DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional property in
// the vocabulary "GoToSocial"
func (this Manager) DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error) {
i, err := propertyhidesccpublicfromunauthedweb.DeserializeHidesCcPublicFromUnauthedWebProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional property in
// the vocabulary "GoToSocial"
func (this Manager) DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error) {
i, err := propertyhidestopublicfromunauthedweb.DeserializeHidesToPublicFromUnauthedWebProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeHrefPropertyActivityStreams returns the deserialization method for
// the "ActivityStreamsHrefProperty" non-functional property in the vocabulary
// "ActivityStreams"

View file

@ -11,6 +11,8 @@ import (
propertycanlike "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canlike"
propertycanquote "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canquote"
propertycanreply "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_canreply"
propertyhidesccpublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidesccpublicfromunauthedweb"
propertyhidestopublicfromunauthedweb "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_hidestopublicfromunauthedweb"
propertyinteractingobject "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactingobject"
propertyinteractionpolicy "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactionpolicy"
propertyinteractiontarget "code.superseriousbusiness.org/activity/streams/impl/gotosocial/property_interactiontarget"
@ -62,6 +64,18 @@ func NewGoToSocialCanReplyProperty() vocab.GoToSocialCanReplyProperty {
return propertycanreply.NewGoToSocialCanReplyProperty()
}
// NewGoToSocialGoToSocialHidesCcPublicFromUnauthedWebProperty creates a new
// GoToSocialHidesCcPublicFromUnauthedWebProperty
func NewGoToSocialHidesCcPublicFromUnauthedWebProperty() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty {
return propertyhidesccpublicfromunauthedweb.NewGoToSocialHidesCcPublicFromUnauthedWebProperty()
}
// NewGoToSocialGoToSocialHidesToPublicFromUnauthedWebProperty creates a new
// GoToSocialHidesToPublicFromUnauthedWebProperty
func NewGoToSocialHidesToPublicFromUnauthedWebProperty() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty {
return propertyhidestopublicfromunauthedweb.NewGoToSocialHidesToPublicFromUnauthedWebProperty()
}
// NewGoToSocialGoToSocialInteractingObjectProperty creates a new
// GoToSocialInteractingObjectProperty
func NewGoToSocialInteractingObjectProperty() vocab.GoToSocialInteractingObjectProperty {

View file

@ -0,0 +1,14 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
vocab "code.superseriousbusiness.org/activity/streams/vocab"
)
// LitePubEmojiReactIsDisjointWith returns true if EmojiReact is disjoint with the
// other's type.
func LitePubEmojiReactIsDisjointWith(other vocab.Type) bool {
return typeemojireact.EmojiReactIsDisjointWith(other)
}

View file

@ -0,0 +1,15 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
vocab "code.superseriousbusiness.org/activity/streams/vocab"
)
// LitePubEmojiReactIsExtendedBy returns true if the other's type extends from
// EmojiReact. Note that it returns false if the types are the same; see the
// "IsOrExtends" variant instead.
func LitePubEmojiReactIsExtendedBy(other vocab.Type) bool {
return typeemojireact.EmojiReactIsExtendedBy(other)
}

View file

@ -0,0 +1,14 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
vocab "code.superseriousbusiness.org/activity/streams/vocab"
)
// LitePubLitePubEmojiReactExtends returns true if EmojiReact extends from the
// other's type.
func LitePubLitePubEmojiReactExtends(other vocab.Type) bool {
return typeemojireact.LitePubEmojiReactExtends(other)
}

View file

@ -0,0 +1,14 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
vocab "code.superseriousbusiness.org/activity/streams/vocab"
)
// IsOrExtendsLitePubEmojiReact returns true if the other provided type is the
// EmojiReact type or extends from the EmojiReact type.
func IsOrExtendsLitePubEmojiReact(other vocab.Type) bool {
return typeemojireact.IsOrExtendsEmojiReact(other)
}

View file

@ -0,0 +1,13 @@
// Code generated by astool. DO NOT EDIT.
package streams
import (
typeemojireact "code.superseriousbusiness.org/activity/streams/impl/litepub/type_emojireact"
vocab "code.superseriousbusiness.org/activity/streams/vocab"
)
// NewLitePubEmojiReact creates a new LitePubEmojiReact
func NewLitePubEmojiReact() vocab.LitePubEmojiReact {
return typeemojireact.NewLitePubEmojiReact()
}

View file

@ -121,6 +121,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
}, func(ctx context.Context, i vocab.TootEmoji) error {
t = i
return nil
}, func(ctx context.Context, i vocab.LitePubEmojiReact) error {
t = i
return nil
}, func(ctx context.Context, i vocab.ActivityStreamsEndpoints) error {
t = i
return nil

View file

@ -79,6 +79,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
// Do nothing, this predicate has a correct signature.
case func(context.Context, vocab.TootEmoji) (bool, error):
// Do nothing, this predicate has a correct signature.
case func(context.Context, vocab.LitePubEmojiReact) (bool, error):
// Do nothing, this predicate has a correct signature.
case func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error):
// Do nothing, this predicate has a correct signature.
case func(context.Context, vocab.ActivityStreamsEvent) (bool, error):
@ -479,6 +481,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "http://litepub.social/ns" && o.GetTypeName() == "EmojiReact" {
if fn, ok := this.predicate.(func(context.Context, vocab.LitePubEmojiReact) (bool, error)); ok {
if v, ok := o.(vocab.LitePubEmojiReact); ok {
predicatePasses, err = fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return false, errCannotTypeAssertType
}
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEndpoints) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsEndpoints); ok {

View file

@ -78,6 +78,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.TootEmoji) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.LitePubEmojiReact) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEndpoints) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsEvent) error:
@ -424,6 +426,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "http://litepub.social/ns" && o.GetTypeName() == "EmojiReact" {
if fn, ok := i.(func(context.Context, vocab.LitePubEmojiReact) error); ok {
if v, ok := o.(vocab.LitePubEmojiReact); ok {
return fn(ctx, v)
} else {
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/ns/activitystreams" && o.GetTypeName() == "Endpoints" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEndpoints) error); ok {
if v, ok := o.(vocab.ActivityStreamsEndpoints); ok {

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsActorPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsActorPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsActorPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsActorPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsActorPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsActorPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsActorPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsActorPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsActorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsActorPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "actor". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsActorProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsActorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "actor". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "actor". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsActorProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsActorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "actor". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6921,6 +6999,20 @@ func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "actor". Invalidates all iterators.
func (this *ActivityStreamsActorProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsActorPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "actor". Invalidates all iterators.
func (this *ActivityStreamsActorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7912,6 +8004,19 @@ func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "actor". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsActorProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsActorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "actor". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsAnyOfPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsAnyOfPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsAnyOfPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsAnyOfPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsAnyOfPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsAnyOfPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsAnyOfPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsAnyOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "anyOf". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsAnyOfProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsAnyOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "anyOf". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "anyOf". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsAnyOfProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAnyOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "anyOf". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6921,6 +6999,20 @@ func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "anyOf". Invalidates all iterators.
func (this *ActivityStreamsAnyOfProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsAnyOfPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "anyOf". Invalidates all iterators.
func (this *ActivityStreamsAnyOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7912,6 +8004,19 @@ func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "anyOf". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsAnyOfProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAnyOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "anyOf". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsAttachmentPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsAttachmentPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsAttachmentPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsAttachmentPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsAttachmentPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsAttachmentPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsAttachmentPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsAttachmentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{},
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4280,6 +4326,17 @@ func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "attachment". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsAttachmentProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsAttachmentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "attachment". Invalidates iterators that are traversing
// using Prev.
@ -5528,6 +5585,23 @@ func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "attachment". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsAttachmentProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAttachmentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "attachment". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5750,194 +5824,198 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6935,6 +7013,20 @@ func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "attachment". Invalidates all iterators.
func (this *ActivityStreamsAttachmentProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsAttachmentPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "attachment". Invalidates all iterators.
func (this *ActivityStreamsAttachmentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7926,6 +8018,19 @@ func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "attachment". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsAttachmentProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAttachmentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "attachment". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsAttributedToPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsAttributedToPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsAttributedToPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsAttributedToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsAttributedToPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsAttributedToPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsAttributedToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsAttributedToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4320,6 +4366,18 @@ func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "attributedTo". Invalidates iterators that are traversing using
// Prev.
func (this *ActivityStreamsAttributedToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsAttributedToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "attributedTo". Invalidates iterators that are traversing
// using Prev.
@ -5569,6 +5627,23 @@ func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL)
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "attributedTo". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsAttributedToProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAttributedToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "attributedTo". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
@ -5791,194 +5866,198 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6977,6 +7056,20 @@ func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "attributedTo". Invalidates all iterators.
func (this *ActivityStreamsAttributedToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsAttributedToPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "attributedTo". Invalidates all iterators.
func (this *ActivityStreamsAttributedToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7968,6 +8061,19 @@ func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "attributedTo". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsAttributedToProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAttributedToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "attributedTo". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsAudiencePropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsAudiencePropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsAudiencePropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsAudiencePropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsAudiencePropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsAudiencePropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsAudiencePropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsAudiencePropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsAudiencePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "audience". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsAudienceProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsAudiencePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "audience". Invalidates iterators that are traversing using
// Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "audience". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsAudienceProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsAudiencePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "audience". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6933,6 +7011,20 @@ func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "audience". Invalidates all iterators.
func (this *ActivityStreamsAudienceProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsAudiencePropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "audience". Invalidates all iterators.
func (this *ActivityStreamsAudienceProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7924,6 +8016,19 @@ func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "audience". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsAudienceProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsAudiencePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "audience". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsBccPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -255,6 +256,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsBccPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsBccPropertyIterator{
activitystreamsEventMember: v,
@ -1023,6 +1030,13 @@ func (this ActivityStreamsBccPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsBccPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1121,6 +1135,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1294,6 +1311,7 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1826,6 +1844,13 @@ func (this ActivityStreamsBccPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsBccPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1905,6 +1930,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,150 +2113,153 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2293,6 +2323,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2897,6 +2929,13 @@ func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsBccPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsBccPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3020,6 +3059,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3242,6 +3285,7 @@ func (this *ActivityStreamsBccPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3345,6 +3389,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error)
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4265,6 +4311,17 @@ func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "bcc". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsBccProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsBccPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "bcc". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsBccProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -5510,6 +5567,23 @@ func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "bcc". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsBccProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsBccPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "bcc". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5732,194 +5806,198 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6915,6 +6993,20 @@ func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "bcc". Invalidates all iterators.
func (this *ActivityStreamsBccProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsBccPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "bcc". Invalidates all iterators.
func (this *ActivityStreamsBccProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7906,6 +7998,19 @@ func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "bcc". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsBccProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsBccPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "bcc". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsBtoPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -255,6 +256,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsBtoPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsBtoPropertyIterator{
activitystreamsEventMember: v,
@ -1023,6 +1030,13 @@ func (this ActivityStreamsBtoPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsBtoPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1121,6 +1135,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1294,6 +1311,7 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1826,6 +1844,13 @@ func (this ActivityStreamsBtoPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsBtoPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1905,6 +1930,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,150 +2113,153 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2293,6 +2323,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2897,6 +2929,13 @@ func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsBtoPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsBtoPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3020,6 +3059,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3242,6 +3285,7 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3345,6 +3389,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error)
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4265,6 +4311,17 @@ func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "bto". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsBtoProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsBtoPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "bto". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsBtoProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -5510,6 +5567,23 @@ func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "bto". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsBtoProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsBtoPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "bto". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5732,194 +5806,198 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6915,6 +6993,20 @@ func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "bto". Invalidates all iterators.
func (this *ActivityStreamsBtoProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsBtoPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "bto". Invalidates all iterators.
func (this *ActivityStreamsBtoProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7906,6 +7998,19 @@ func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "bto". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsBtoProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsBtoPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "bto". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsCcPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -255,6 +256,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsCcPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsCcPropertyIterator{
activitystreamsEventMember: v,
@ -1023,6 +1030,13 @@ func (this ActivityStreamsCcPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsCcPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1121,6 +1135,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1294,6 +1311,7 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1826,6 +1844,13 @@ func (this ActivityStreamsCcPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsCcPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1905,6 +1930,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,150 +2113,153 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2293,6 +2323,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2897,6 +2929,13 @@ func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsCcPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsCcPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3020,6 +3059,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3242,6 +3285,7 @@ func (this *ActivityStreamsCcPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3345,6 +3389,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) {
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4265,6 +4311,17 @@ func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "cc". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsCcProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsCcPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "cc". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsCcProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -5510,6 +5567,23 @@ func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "cc". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsCcProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsCcPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "cc". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
@ -5732,194 +5806,198 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6915,6 +6993,20 @@ func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "cc". Invalidates all iterators.
func (this *ActivityStreamsCcProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsCcPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "cc". Invalidates all iterators.
func (this *ActivityStreamsCcProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7906,6 +7998,19 @@ func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "cc". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsCcProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsCcPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "cc". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -44,6 +44,7 @@ type ActivityStreamsClosedPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -263,6 +264,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsClosedPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsClosedPropertyIterator{
activitystreamsEventMember: v,
@ -1046,6 +1053,13 @@ func (this ActivityStreamsClosedPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsClosedPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1144,6 +1158,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1332,6 +1349,7 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1864,6 +1882,13 @@ func (this ActivityStreamsClosedPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsClosedPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1957,6 +1982,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2144,150 +2171,153 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 24
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 25
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 26
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 27
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 28
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 29
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 30
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 31
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 32
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 33
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 34
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 35
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 36
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 37
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 38
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 39
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 40
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 41
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 42
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 43
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 44
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 45
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 46
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 47
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 48
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 49
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 50
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 51
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 52
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 53
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 54
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 55
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 56
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 57
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 58
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 59
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 60
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 61
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 62
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 63
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 64
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 65
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 66
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 67
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 68
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 69
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 70
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 71
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 72
}
if this.IsActivityStreamsView() {
return 73
}
if this.IsIRI() {
return -2
}
@ -2355,6 +2385,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2959,6 +2991,13 @@ func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsClosedPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsClosedPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3082,6 +3121,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3322,6 +3365,7 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3429,6 +3473,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4353,6 +4399,17 @@ func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "closed". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsClosedProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsClosedPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "closed". Invalidates iterators that are traversing using
// Prev.
@ -5623,6 +5680,23 @@ func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "closed". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsClosedProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsClosedPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "closed". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5889,194 +5963,198 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 71 {
} else if idx1 == 72 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 72 {
} else if idx1 == 73 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -7073,6 +7151,20 @@ func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "closed". Invalidates all iterators.
func (this *ActivityStreamsClosedProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsClosedPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "closed". Invalidates all iterators.
func (this *ActivityStreamsClosedProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -8094,6 +8186,19 @@ func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "closed". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsClosedProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsClosedPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "closed". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsContextPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsContextPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsContextPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsContextPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsContextPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsContextPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsContextPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsContextPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsContextPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsContextPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "context". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsContextProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsContextPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "context". Invalidates iterators that are traversing using
// Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "context". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsContextProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsContextPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "context". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6932,6 +7010,20 @@ func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "context". Invalidates all iterators.
func (this *ActivityStreamsContextProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsContextPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "context". Invalidates all iterators.
func (this *ActivityStreamsContextProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7923,6 +8015,19 @@ func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "context". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsContextProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsContextPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "context". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -36,6 +36,7 @@ type ActivityStreamsDescribesProperty struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -247,6 +248,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsDescribesProperty{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsDescribesProperty{
activitystreamsEventMember: v,
@ -564,6 +571,7 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -1071,6 +1079,13 @@ func (this ActivityStreamsDescribesProperty) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsDescribesProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1160,6 +1175,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1326,6 +1344,7 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1842,6 +1861,13 @@ func (this ActivityStreamsDescribesProperty) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsDescribesProperty) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1912,6 +1938,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,144 +2114,147 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int {
if this.IsTootEmoji() {
return 21
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 22
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 23
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 24
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 25
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsGroup() {
return 26
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 27
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 28
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 29
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 30
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 31
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 32
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 33
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 34
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 35
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 36
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 37
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 38
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 39
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 40
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 41
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 42
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 43
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 44
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 45
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 46
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 47
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 48
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 49
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 50
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 51
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 52
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 53
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 54
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 55
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 56
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 57
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 58
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 59
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 60
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 61
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 62
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 63
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 64
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 65
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 66
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 67
}
if this.IsActivityStreamsView() {
return 68
}
if this.IsIRI() {
return -2
}
@ -2285,6 +2316,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2441,6 +2474,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -3000,6 +3035,13 @@ func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsDescribesProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.Clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsDescribesProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3112,6 +3154,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -39,6 +39,7 @@ type ActivityStreamsFormerTypePropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -250,6 +251,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsFormerTypePropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsFormerTypePropertyIterator{
activitystreamsEventMember: v,
@ -1000,6 +1007,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsFormerTypePropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1089,6 +1103,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1262,6 +1279,7 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1778,6 +1796,13 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsFormerTypePropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1855,6 +1880,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2032,144 +2059,147 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 28
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 29
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 30
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 31
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 32
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 33
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 34
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 35
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 36
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 37
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 38
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 39
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 40
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 41
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 42
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 43
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 44
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 45
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 46
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 47
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 48
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 49
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 50
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 51
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 52
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 53
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 54
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 55
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 56
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 57
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 58
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 59
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 60
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 61
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 62
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 63
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 64
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 65
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 66
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 67
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 68
}
if this.IsActivityStreamsView() {
return 69
}
if this.IsIRI() {
return -2
}
@ -2233,6 +2263,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2819,6 +2851,13 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsFormerTypePropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsFormerTypePropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -2931,6 +2970,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3153,6 +3196,7 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3254,6 +3298,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{},
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4161,6 +4207,17 @@ func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "formerType". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsFormerTypeProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "formerType". Invalidates iterators that are traversing
// using Prev.
@ -5376,6 +5433,23 @@ func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "formerType". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "formerType". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5599,186 +5673,190 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6748,6 +6826,20 @@ func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "formerType". Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "formerType". Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7714,6 +7806,19 @@ func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "formerType". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "formerType". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsGeneratorPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsGeneratorPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsGeneratorPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsGeneratorPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsGeneratorPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsGeneratorPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsGeneratorPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsGeneratorPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "generator". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsGeneratorProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsGeneratorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "generator". Invalidates iterators that are traversing
// using Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "generator". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsGeneratorProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsGeneratorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "generator". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6933,6 +7011,20 @@ func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "generator". Invalidates all iterators.
func (this *ActivityStreamsGeneratorProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsGeneratorPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "generator". Invalidates all iterators.
func (this *ActivityStreamsGeneratorProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7924,6 +8016,19 @@ func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "generator". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsGeneratorProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsGeneratorPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "generator". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsInReplyToPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsInReplyToPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsInReplyToPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsInReplyToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsInReplyToPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsInReplyToPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsInReplyToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsInReplyToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "inReplyTo". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsInReplyToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsInReplyToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "inReplyTo". Invalidates iterators that are traversing
// using Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "inReplyTo". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsInReplyToProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsInReplyToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "inReplyTo". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6933,6 +7011,20 @@ func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "inReplyTo". Invalidates all iterators.
func (this *ActivityStreamsInReplyToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsInReplyToPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "inReplyTo". Invalidates all iterators.
func (this *ActivityStreamsInReplyToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7924,6 +8016,19 @@ func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "inReplyTo". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsInReplyToProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsInReplyToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "inReplyTo". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsInstrumentPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsInstrumentPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsInstrumentPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsInstrumentPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsInstrumentPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsInstrumentPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsInstrumentPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsInstrumentPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{},
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4280,6 +4326,17 @@ func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "instrument". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsInstrumentProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsInstrumentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "instrument". Invalidates iterators that are traversing
// using Prev.
@ -5528,6 +5585,23 @@ func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "instrument". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsInstrumentProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsInstrumentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "instrument". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5750,194 +5824,198 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6935,6 +7013,20 @@ func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "instrument". Invalidates all iterators.
func (this *ActivityStreamsInstrumentProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsInstrumentPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "instrument". Invalidates all iterators.
func (this *ActivityStreamsInstrumentProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7926,6 +8018,19 @@ func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "instrument". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsInstrumentProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsInstrumentPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "instrument". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsItemsPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsItemsPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsItemsPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsItemsPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsItemsPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsItemsPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsItemsPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsItemsPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "items". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsItemsProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "items". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "items". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsItemsProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "items". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6921,6 +6999,20 @@ func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "items". Invalidates all iterators.
func (this *ActivityStreamsItemsProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsItemsPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "items". Invalidates all iterators.
func (this *ActivityStreamsItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7912,6 +8004,19 @@ func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "items". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsItemsProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "items". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsLocationPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsLocationPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsLocationPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsLocationPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsLocationPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsLocationPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsLocationPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsLocationPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsLocationPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "location". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsLocationProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsLocationPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "location". Invalidates iterators that are traversing using
// Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "location". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsLocationProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsLocationPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "location". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6933,6 +7011,20 @@ func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "location". Invalidates all iterators.
func (this *ActivityStreamsLocationProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsLocationPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "location". Invalidates all iterators.
func (this *ActivityStreamsLocationProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7924,6 +8016,19 @@ func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "location". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsLocationProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsLocationPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "location". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsObjectPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsObjectPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsObjectPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsObjectPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsObjectPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsObjectPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsObjectPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsObjectPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsObjectPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "object". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsObjectProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsObjectPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "object". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "object". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsObjectProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsObjectPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "object". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6922,6 +7000,20 @@ func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "object". Invalidates all iterators.
func (this *ActivityStreamsObjectProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsObjectPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "object". Invalidates all iterators.
func (this *ActivityStreamsObjectProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7913,6 +8005,19 @@ func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "object". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsObjectProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsObjectPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "object". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsOneOfPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsOneOfPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsOneOfPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsOneOfPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsOneOfPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsOneOfPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsOneOfPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsOneOfPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsOneOfPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "oneOf". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsOneOfProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsOneOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "oneOf". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "oneOf". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsOneOfProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsOneOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "oneOf". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6921,6 +6999,20 @@ func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "oneOf". Invalidates all iterators.
func (this *ActivityStreamsOneOfProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsOneOfPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "oneOf". Invalidates all iterators.
func (this *ActivityStreamsOneOfProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7912,6 +8004,19 @@ func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "oneOf". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsOneOfProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsOneOfPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "oneOf". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsOrderedItemsPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsOrderedItemsPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsOrderedItemsPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsOrderedItemsPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsOrderedItemsPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsOrderedItemsPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsOrderedItemsPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4320,6 +4366,18 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "orderedItems". Invalidates iterators that are traversing using
// Prev.
func (this *ActivityStreamsOrderedItemsProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsOrderedItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "orderedItems". Invalidates iterators that are traversing
// using Prev.
@ -5569,6 +5627,23 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL)
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "orderedItems". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsOrderedItemsProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "orderedItems". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
@ -5791,194 +5866,198 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6977,6 +7056,20 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "orderedItems". Invalidates all iterators.
func (this *ActivityStreamsOrderedItemsProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsOrderedItemsPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "orderedItems". Invalidates all iterators.
func (this *ActivityStreamsOrderedItemsProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7968,6 +8061,19 @@ func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "orderedItems". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsOrderedItemsProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsOrderedItemsPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "orderedItems". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsOriginPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsOriginPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsOriginPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsOriginPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsOriginPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsOriginPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsOriginPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsOriginPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsOriginPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "origin". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsOriginProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsOriginPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "origin". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "origin". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsOriginProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsOriginPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "origin". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6922,6 +7000,20 @@ func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "origin". Invalidates all iterators.
func (this *ActivityStreamsOriginProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsOriginPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "origin". Invalidates all iterators.
func (this *ActivityStreamsOriginProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7913,6 +8005,19 @@ func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "origin". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsOriginProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsOriginPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "origin". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsPreviewPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsPreviewPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsPreviewPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsPreviewPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsPreviewPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsPreviewPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsPreviewPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsPreviewPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsPreviewPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4279,6 +4325,17 @@ func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "preview". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsPreviewProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsPreviewPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "preview". Invalidates iterators that are traversing using
// Prev.
@ -5526,6 +5583,23 @@ func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "preview". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsPreviewProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsPreviewPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "preview". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5748,194 +5822,198 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6932,6 +7010,20 @@ func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "preview". Invalidates all iterators.
func (this *ActivityStreamsPreviewProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsPreviewPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "preview". Invalidates all iterators.
func (this *ActivityStreamsPreviewProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7923,6 +8015,19 @@ func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "preview". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsPreviewProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsPreviewPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "preview". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -36,6 +36,7 @@ type ActivityStreamsRelationshipPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -247,6 +248,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsRelationshipPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsRelationshipPropertyIterator{
activitystreamsEventMember: v,
@ -989,6 +996,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsRelationshipPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1078,6 +1092,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1244,6 +1261,7 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1760,6 +1778,13 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsRelationshipPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1830,6 +1855,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2004,144 +2031,147 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 21
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 22
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 23
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 24
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 25
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsGroup() {
return 26
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 27
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 28
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 29
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 30
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 31
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 32
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 33
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 34
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 35
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 36
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 37
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 38
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 39
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 40
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 41
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 42
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 43
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 44
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 45
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 46
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 47
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 48
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 49
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 50
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 51
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 52
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 53
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 54
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 55
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 56
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 57
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 58
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 59
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 60
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 61
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 62
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 63
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 64
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 65
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 66
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 67
}
if this.IsActivityStreamsView() {
return 68
}
if this.IsIRI() {
return -2
}
@ -2203,6 +2233,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2789,6 +2821,13 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsRelationshipPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsRelationshipPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -2901,6 +2940,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3114,6 +3157,7 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3213,6 +3257,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4159,6 +4205,18 @@ func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "relationship". Invalidates iterators that are traversing using
// Prev.
func (this *ActivityStreamsRelationshipProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "relationship". Invalidates iterators that are traversing
// using Prev.
@ -5363,6 +5421,23 @@ func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL)
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "relationship". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "relationship". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
@ -5564,186 +5639,190 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6714,6 +6793,20 @@ func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "relationship". Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "relationship". Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7665,6 +7758,19 @@ func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "relationship". Panics if the index is out of bounds.
// Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "relationship". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsResultPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsResultPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsResultPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsResultPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsResultPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsResultPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsResultPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsResultPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsResultPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsResultPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "result". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsResultProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsResultPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "result". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "result". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsResultProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsResultPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "result". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6922,6 +7000,20 @@ func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "result". Invalidates all iterators.
func (this *ActivityStreamsResultProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsResultPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "result". Invalidates all iterators.
func (this *ActivityStreamsResultProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7913,6 +8005,19 @@ func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "result". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsResultProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsResultPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "result". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsSourceProperty struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]str
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsSourceProperty{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsSourceProperty{
activitystreamsEventMember: v,
@ -586,6 +593,7 @@ func (this *ActivityStreamsSourceProperty) Clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -1109,6 +1117,13 @@ func (this ActivityStreamsSourceProperty) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsSourceProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1207,6 +1222,9 @@ func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1380,6 +1398,7 @@ func (this ActivityStreamsSourceProperty) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1912,6 +1931,13 @@ func (this ActivityStreamsSourceProperty) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsSourceProperty) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1991,6 +2017,8 @@ func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2172,150 +2200,153 @@ func (this ActivityStreamsSourceProperty) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2379,6 +2410,8 @@ func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSource
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2541,6 +2574,8 @@ func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -3118,6 +3153,13 @@ func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsSourceProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.Clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsSourceProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3241,6 +3283,10 @@ func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsSubjectProperty struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsSubjectProperty{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsSubjectProperty{
activitystreamsEventMember: v,
@ -586,6 +593,7 @@ func (this *ActivityStreamsSubjectProperty) Clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -1109,6 +1117,13 @@ func (this ActivityStreamsSubjectProperty) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsSubjectProperty) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1207,6 +1222,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1380,6 +1398,7 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1912,6 +1931,13 @@ func (this ActivityStreamsSubjectProperty) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsSubjectProperty) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1991,6 +2017,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2172,150 +2200,153 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2379,6 +2410,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2541,6 +2574,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -3118,6 +3153,13 @@ func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsSubjectProperty) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.Clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsSubjectProperty) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3241,6 +3283,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsTagPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -255,6 +256,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsTagPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsTagPropertyIterator{
activitystreamsEventMember: v,
@ -1023,6 +1030,13 @@ func (this ActivityStreamsTagPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsTagPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1121,6 +1135,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1294,6 +1311,7 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1826,6 +1844,13 @@ func (this ActivityStreamsTagPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsTagPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1905,6 +1930,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,150 +2113,153 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2293,6 +2323,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2897,6 +2929,13 @@ func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsTagPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsTagPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3020,6 +3059,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3242,6 +3285,7 @@ func (this *ActivityStreamsTagPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3345,6 +3389,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error)
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4265,6 +4311,17 @@ func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "tag". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsTagProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsTagPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "tag". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsTagProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -5510,6 +5567,23 @@ func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "tag". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsTagProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsTagPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "tag". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5732,194 +5806,198 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6915,6 +6993,20 @@ func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "tag". Invalidates all iterators.
func (this *ActivityStreamsTagProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsTagPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "tag". Invalidates all iterators.
func (this *ActivityStreamsTagProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7906,6 +7998,19 @@ func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "tag". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsTagProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsTagPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "tag". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsTargetPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -256,6 +257,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsTargetPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsTargetPropertyIterator{
activitystreamsEventMember: v,
@ -1024,6 +1031,13 @@ func (this ActivityStreamsTargetPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsTargetPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1122,6 +1136,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1295,6 +1312,7 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1827,6 +1845,13 @@ func (this ActivityStreamsTargetPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsTargetPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1906,6 +1931,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2087,150 +2114,153 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2294,6 +2324,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2898,6 +2930,13 @@ func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsTargetPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsTargetPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3021,6 +3060,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3243,6 +3286,7 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3346,6 +3390,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4270,6 +4316,17 @@ func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "target". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsTargetProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsTargetPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "target". Invalidates iterators that are traversing using
// Prev.
@ -5516,6 +5573,23 @@ func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "target". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
func (this *ActivityStreamsTargetProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsTargetPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "target". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -5738,194 +5812,198 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6922,6 +7000,20 @@ func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "target". Invalidates all iterators.
func (this *ActivityStreamsTargetProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsTargetPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "target". Invalidates all iterators.
func (this *ActivityStreamsTargetProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7913,6 +8005,19 @@ func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "target". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsTargetProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsTargetPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "target". Panics if the index is out of bounds.
// Invalidates all iterators.

View file

@ -89,6 +89,10 @@ type privateManager interface {
// for the "ActivityStreamsDocument" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
// DeserializeEmojiReactLitePub returns the deserialization method for the
// "LitePubEmojiReact" non-functional property in the vocabulary
// "LitePub"
DeserializeEmojiReactLitePub() func(map[string]interface{}, map[string]string) (vocab.LitePubEmojiReact, error)
// DeserializeEmojiToot returns the deserialization method for the
// "TootEmoji" non-functional property in the vocabulary "Toot"
DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)

View file

@ -37,6 +37,7 @@ type ActivityStreamsToPropertyIterator struct {
activitystreamsDislikeMember vocab.ActivityStreamsDislike
activitystreamsDocumentMember vocab.ActivityStreamsDocument
tootEmojiMember vocab.TootEmoji
litepubEmojiReactMember vocab.LitePubEmojiReact
activitystreamsEventMember vocab.ActivityStreamsEvent
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
@ -255,6 +256,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st
tootEmojiMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEmojiReactLitePub()(m, aliasMap); err == nil {
this := &ActivityStreamsToPropertyIterator{
alias: alias,
litepubEmojiReactMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsToPropertyIterator{
activitystreamsEventMember: v,
@ -1023,6 +1030,13 @@ func (this ActivityStreamsToPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetLitePubEmojiReact returns the value of this property. When
// IsLitePubEmojiReact returns false, GetLitePubEmojiReact will return an
// arbitrary value.
func (this ActivityStreamsToPropertyIterator) GetLitePubEmojiReact() vocab.LitePubEmojiReact {
return this.litepubEmojiReactMember
}
// GetSchemaPropertyValue returns the value of this property. When
// IsSchemaPropertyValue returns false, GetSchemaPropertyValue will return an
// arbitrary value.
@ -1121,6 +1135,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type {
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -1294,6 +1311,7 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsLitePubEmojiReact() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
@ -1826,6 +1844,13 @@ func (this ActivityStreamsToPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsLitePubEmojiReact returns true if this property has a type of "EmojiReact".
// When true, use the GetLitePubEmojiReact and SetLitePubEmojiReact methods to
// access and set this property.
func (this ActivityStreamsToPropertyIterator) IsLitePubEmojiReact() bool {
return this.litepubEmojiReactMember != nil
}
// IsSchemaPropertyValue returns true if this property has a type of
// "PropertyValue". When true, use the GetSchemaPropertyValue and
// SetSchemaPropertyValue methods to access and set this property.
@ -1905,6 +1930,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string
child = this.GetActivityStreamsDocument().JSONLDContext()
} else if this.IsTootEmoji() {
child = this.GetTootEmoji().JSONLDContext()
} else if this.IsLitePubEmojiReact() {
child = this.GetLitePubEmojiReact().JSONLDContext()
} else if this.IsActivityStreamsEvent() {
child = this.GetActivityStreamsEvent().JSONLDContext()
} else if this.IsActivityStreamsFlag() {
@ -2086,150 +2113,153 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int {
if this.IsTootEmoji() {
return 22
}
if this.IsActivityStreamsEvent() {
if this.IsLitePubEmojiReact() {
return 23
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 24
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 25
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 26
}
if this.IsTootHashtag() {
if this.IsActivityStreamsGroup() {
return 27
}
if this.IsTootIdentityProof() {
if this.IsTootHashtag() {
return 28
}
if this.IsActivityStreamsIgnore() {
if this.IsTootIdentityProof() {
return 29
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIgnore() {
return 30
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsImage() {
return 31
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsIntransitiveActivity() {
return 32
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsInvite() {
return 33
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsJoin() {
return 34
}
if this.IsFunkwhaleLibrary() {
if this.IsActivityStreamsLeave() {
return 35
}
if this.IsActivityStreamsLike() {
if this.IsFunkwhaleLibrary() {
return 36
}
if this.IsGoToSocialLikeApproval() {
if this.IsActivityStreamsLike() {
return 37
}
if this.IsGoToSocialLikeAuthorization() {
if this.IsGoToSocialLikeApproval() {
return 38
}
if this.IsGoToSocialLikeRequest() {
if this.IsGoToSocialLikeAuthorization() {
return 39
}
if this.IsActivityStreamsListen() {
if this.IsGoToSocialLikeRequest() {
return 40
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsListen() {
return 41
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsMention() {
return 42
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMove() {
return 43
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsNote() {
return 44
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOffer() {
return 45
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 46
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 47
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrganization() {
return 48
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPage() {
return 49
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPerson() {
return 50
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPlace() {
return 51
}
if this.IsSchemaPropertyValue() {
if this.IsActivityStreamsProfile() {
return 52
}
if this.IsActivityStreamsQuestion() {
if this.IsSchemaPropertyValue() {
return 53
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsQuestion() {
return 54
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRead() {
return 55
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsReject() {
return 56
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsRelationship() {
return 57
}
if this.IsGoToSocialReplyApproval() {
if this.IsActivityStreamsRemove() {
return 58
}
if this.IsGoToSocialReplyAuthorization() {
if this.IsGoToSocialReplyApproval() {
return 59
}
if this.IsGoToSocialReplyRequest() {
if this.IsGoToSocialReplyAuthorization() {
return 60
}
if this.IsActivityStreamsService() {
if this.IsGoToSocialReplyRequest() {
return 61
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsService() {
return 62
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTentativeAccept() {
return 63
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeReject() {
return 64
}
if this.IsFunkwhaleTrack() {
if this.IsActivityStreamsTombstone() {
return 65
}
if this.IsActivityStreamsTravel() {
if this.IsFunkwhaleTrack() {
return 66
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTravel() {
return 67
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsUndo() {
return 68
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUpdate() {
return 69
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsVideo() {
return 70
}
if this.IsActivityStreamsView() {
return 71
}
if this.IsIRI() {
return -2
}
@ -2293,6 +2323,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo
return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
} else if this.IsTootEmoji() {
return this.GetTootEmoji().LessThan(o.GetTootEmoji())
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().LessThan(o.GetLitePubEmojiReact())
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
} else if this.IsActivityStreamsFlag() {
@ -2897,6 +2929,13 @@ func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetLitePubEmojiReact sets the value of this property. Calling
// IsLitePubEmojiReact afterwards returns true.
func (this *ActivityStreamsToPropertyIterator) SetLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.clear()
this.litepubEmojiReactMember = v
}
// SetSchemaPropertyValue sets the value of this property. Calling
// IsSchemaPropertyValue afterwards returns true.
func (this *ActivityStreamsToPropertyIterator) SetSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -3020,6 +3059,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error {
this.SetTootEmoji(v)
return nil
}
if v, ok := t.(vocab.LitePubEmojiReact); ok {
this.SetLitePubEmojiReact(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsEvent); ok {
this.SetActivityStreamsEvent(v)
return nil
@ -3242,6 +3285,7 @@ func (this *ActivityStreamsToPropertyIterator) clear() {
this.activitystreamsDislikeMember = nil
this.activitystreamsDocumentMember = nil
this.tootEmojiMember = nil
this.litepubEmojiReactMember = nil
this.activitystreamsEventMember = nil
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
@ -3345,6 +3389,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) {
return this.GetActivityStreamsDocument().Serialize()
} else if this.IsTootEmoji() {
return this.GetTootEmoji().Serialize()
} else if this.IsLitePubEmojiReact() {
return this.GetLitePubEmojiReact().Serialize()
} else if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent().Serialize()
} else if this.IsActivityStreamsFlag() {
@ -4265,6 +4311,17 @@ func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) {
})
}
// AppendLitePubEmojiReact appends a EmojiReact value to the back of a list of the
// property "to". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsToProperty) AppendLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, &ActivityStreamsToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: this.Len(),
parent: this,
})
}
// AppendSchemaPropertyValue appends a PropertyValue value to the back of a list
// of the property "to". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsToProperty) AppendSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -5510,6 +5567,23 @@ func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertLitePubEmojiReact inserts a EmojiReact value at the specified index for a
// property "to". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsToProperty) InsertLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertSchemaPropertyValue inserts a PropertyValue value at the specified index
// for a property "to". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
@ -5732,194 +5806,198 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetLitePubEmojiReact()
rhs := this.properties[j].GetLitePubEmojiReact()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 28 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 29 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 36 {
lhs := this.properties[i].GetFunkwhaleLibrary()
rhs := this.properties[j].GetFunkwhaleLibrary()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 38 {
lhs := this.properties[i].GetGoToSocialLikeApproval()
rhs := this.properties[j].GetGoToSocialLikeApproval()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 39 {
lhs := this.properties[i].GetGoToSocialLikeAuthorization()
rhs := this.properties[j].GetGoToSocialLikeAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 40 {
lhs := this.properties[i].GetGoToSocialLikeRequest()
rhs := this.properties[j].GetGoToSocialLikeRequest()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 53 {
lhs := this.properties[i].GetSchemaPropertyValue()
rhs := this.properties[j].GetSchemaPropertyValue()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 56 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 57 {
} else if idx1 == 58 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 58 {
} else if idx1 == 59 {
lhs := this.properties[i].GetGoToSocialReplyApproval()
rhs := this.properties[j].GetGoToSocialReplyApproval()
return lhs.LessThan(rhs)
} else if idx1 == 59 {
} else if idx1 == 60 {
lhs := this.properties[i].GetGoToSocialReplyAuthorization()
rhs := this.properties[j].GetGoToSocialReplyAuthorization()
return lhs.LessThan(rhs)
} else if idx1 == 60 {
} else if idx1 == 61 {
lhs := this.properties[i].GetGoToSocialReplyRequest()
rhs := this.properties[j].GetGoToSocialReplyRequest()
return lhs.LessThan(rhs)
} else if idx1 == 61 {
} else if idx1 == 62 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 62 {
} else if idx1 == 63 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 63 {
} else if idx1 == 64 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 64 {
} else if idx1 == 65 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 65 {
} else if idx1 == 66 {
lhs := this.properties[i].GetFunkwhaleTrack()
rhs := this.properties[j].GetFunkwhaleTrack()
return lhs.LessThan(rhs)
} else if idx1 == 66 {
} else if idx1 == 67 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 67 {
} else if idx1 == 68 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 68 {
} else if idx1 == 69 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 69 {
} else if idx1 == 70 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 70 {
} else if idx1 == 71 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -6915,6 +6993,20 @@ func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) {
}
}
// PrependLitePubEmojiReact prepends a EmojiReact value to the front of a list of
// the property "to". Invalidates all iterators.
func (this *ActivityStreamsToProperty) PrependLitePubEmojiReact(v vocab.LitePubEmojiReact) {
this.properties = append([]*ActivityStreamsToPropertyIterator{{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: 0,
parent: this,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependSchemaPropertyValue prepends a PropertyValue value to the front of a
// list of the property "to". Invalidates all iterators.
func (this *ActivityStreamsToProperty) PrependSchemaPropertyValue(v vocab.SchemaPropertyValue) {
@ -7906,6 +7998,19 @@ func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetLitePubEmojiReact sets a EmojiReact value to be at the specified index for
// the property "to". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsToProperty) SetLitePubEmojiReact(idx int, v vocab.LitePubEmojiReact) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsToPropertyIterator{
alias: this.alias,
litepubEmojiReactMember: v,
myIdx: idx,
parent: this,
}
}
// SetSchemaPropertyValue sets a PropertyValue value to be at the specified index
// for the property "to". Panics if the index is out of bounds. Invalidates
// all iterators.

View file

@ -88,7 +88,7 @@ func ActivityIsDisjointWith(other vocab.Type) bool {
// Activity type. Note that it returns false if the types are the same; see
// the "IsOrExtendsActivity" variant instead.
func ActivityIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Accept", "Add", "Announce", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"}
extensions := []string{"Accept", "Add", "Announce", "AnnounceRequest", "Arrive", "Block", "Create", "Delete", "Dislike", "EmojiReact", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "LikeRequest", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "ReplyRequest", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"}
for _, ext := range extensions {
if ext == other.GetTypeName() {
return true

View file

@ -84,6 +84,16 @@ type privateManager interface {
// method for the "ActivityStreamsGeneratorProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
// DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional
// property in the vocabulary "GoToSocial"
DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error)
// DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional
// property in the vocabulary "GoToSocial"
DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error)
// DeserializeIconPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsIconProperty" non-functional
// property in the vocabulary "ActivityStreams"

View file

@ -35,6 +35,8 @@ type ActivityStreamsApplication struct {
ActivityStreamsFollowers vocab.ActivityStreamsFollowersProperty
ActivityStreamsFollowing vocab.ActivityStreamsFollowingProperty
ActivityStreamsGenerator vocab.ActivityStreamsGeneratorProperty
GoToSocialHidesCcPublicFromUnauthedWeb vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty
GoToSocialHidesToPublicFromUnauthedWeb vocab.GoToSocialHidesToPublicFromUnauthedWebProperty
ActivityStreamsIcon vocab.ActivityStreamsIconProperty
JSONLDId vocab.JSONLDIdProperty
ActivityStreamsImage vocab.ActivityStreamsImageProperty
@ -229,6 +231,16 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
} else if p != nil {
this.ActivityStreamsGenerator = p
}
if p, err := mgr.DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.GoToSocialHidesCcPublicFromUnauthedWeb = p
}
if p, err := mgr.DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.GoToSocialHidesToPublicFromUnauthedWeb = p
}
if p, err := mgr.DeserializeIconPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@ -427,6 +439,10 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
continue
} else if k == "generator" {
continue
} else if k == "hidesCcPublicFromUnauthedWeb" {
continue
} else if k == "hidesToPublicFromUnauthedWeb" {
continue
} else if k == "icon" {
continue
} else if k == "id" {
@ -780,6 +796,18 @@ func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStr
return this.ActivityStreamsUrl
}
// GetGoToSocialHidesCcPublicFromUnauthedWeb returns the
// "hidesCcPublicFromUnauthedWeb" property if it exists, and nil otherwise.
func (this ActivityStreamsApplication) GetGoToSocialHidesCcPublicFromUnauthedWeb() vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty {
return this.GoToSocialHidesCcPublicFromUnauthedWeb
}
// GetGoToSocialHidesToPublicFromUnauthedWeb returns the
// "hidesToPublicFromUnauthedWeb" property if it exists, and nil otherwise.
func (this ActivityStreamsApplication) GetGoToSocialHidesToPublicFromUnauthedWeb() vocab.GoToSocialHidesToPublicFromUnauthedWebProperty {
return this.GoToSocialHidesToPublicFromUnauthedWeb
}
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
func (this ActivityStreamsApplication) GetJSONLDId() vocab.JSONLDIdProperty {
return this.JSONLDId
@ -856,6 +884,8 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsFollowers, m)
m = this.helperJSONLDContext(this.ActivityStreamsFollowing, m)
m = this.helperJSONLDContext(this.ActivityStreamsGenerator, m)
m = this.helperJSONLDContext(this.GoToSocialHidesCcPublicFromUnauthedWeb, m)
m = this.helperJSONLDContext(this.GoToSocialHidesToPublicFromUnauthedWeb, m)
m = this.helperJSONLDContext(this.ActivityStreamsIcon, m)
m = this.helperJSONLDContext(this.JSONLDId, m)
m = this.helperJSONLDContext(this.ActivityStreamsImage, m)
@ -1147,6 +1177,34 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "hidesCcPublicFromUnauthedWeb"
if lhs, rhs := this.GoToSocialHidesCcPublicFromUnauthedWeb, o.GetGoToSocialHidesCcPublicFromUnauthedWeb(); 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 "hidesToPublicFromUnauthedWeb"
if lhs, rhs := this.GoToSocialHidesToPublicFromUnauthedWeb, o.GetGoToSocialHidesToPublicFromUnauthedWeb(); 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 "icon"
if lhs, rhs := this.ActivityStreamsIcon, o.GetActivityStreamsIcon(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@ -1748,6 +1806,22 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
m[this.ActivityStreamsGenerator.Name()] = i
}
}
// Maybe serialize property "hidesCcPublicFromUnauthedWeb"
if this.GoToSocialHidesCcPublicFromUnauthedWeb != nil {
if i, err := this.GoToSocialHidesCcPublicFromUnauthedWeb.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.GoToSocialHidesCcPublicFromUnauthedWeb.Name()] = i
}
}
// Maybe serialize property "hidesToPublicFromUnauthedWeb"
if this.GoToSocialHidesToPublicFromUnauthedWeb != nil {
if i, err := this.GoToSocialHidesToPublicFromUnauthedWeb.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.GoToSocialHidesToPublicFromUnauthedWeb.Name()] = i
}
}
// Maybe serialize property "icon"
if this.ActivityStreamsIcon != nil {
if i, err := this.ActivityStreamsIcon.Serialize(); err != nil {
@ -2226,6 +2300,18 @@ func (this *ActivityStreamsApplication) SetActivityStreamsUrl(i vocab.ActivitySt
this.ActivityStreamsUrl = i
}
// SetGoToSocialHidesCcPublicFromUnauthedWeb sets the
// "hidesCcPublicFromUnauthedWeb" property.
func (this *ActivityStreamsApplication) SetGoToSocialHidesCcPublicFromUnauthedWeb(i vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty) {
this.GoToSocialHidesCcPublicFromUnauthedWeb = i
}
// SetGoToSocialHidesToPublicFromUnauthedWeb sets the
// "hidesToPublicFromUnauthedWeb" property.
func (this *ActivityStreamsApplication) SetGoToSocialHidesToPublicFromUnauthedWeb(i vocab.GoToSocialHidesToPublicFromUnauthedWebProperty) {
this.GoToSocialHidesToPublicFromUnauthedWeb = i
}
// SetJSONLDId sets the "id" property.
func (this *ActivityStreamsApplication) SetJSONLDId(i vocab.JSONLDIdProperty) {
this.JSONLDId = i

View file

@ -84,6 +84,16 @@ type privateManager interface {
// method for the "ActivityStreamsGeneratorProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
// DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesCcPublicFromUnauthedWebProperty" non-functional
// property in the vocabulary "GoToSocial"
DeserializeHidesCcPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesCcPublicFromUnauthedWebProperty, error)
// DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial returns the
// deserialization method for the
// "GoToSocialHidesToPublicFromUnauthedWebProperty" non-functional
// property in the vocabulary "GoToSocial"
DeserializeHidesToPublicFromUnauthedWebPropertyGoToSocial() func(map[string]interface{}, map[string]string) (vocab.GoToSocialHidesToPublicFromUnauthedWebProperty, error)
// DeserializeIconPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsIconProperty" non-functional
// property in the vocabulary "ActivityStreams"

Some files were not shown because too many files have changed in this diff Show more