Commit b421fd5a authored by zauberstuhl's avatar zauberstuhl
Browse files

bump activity to v0.1.0

parent b6444ef2
Pipeline #5740 passed with stage
......@@ -32,6 +32,9 @@ var ActivityStreamsBlockName string = "Block"
// ForgeFedBranchName is the string literal of the name for the Branch type in the ForgeFed vocabulary.
var ForgeFedBranchName string = "Branch"
// SocialtapCheckinName is the string literal of the name for the Checkin type in the Socialtap vocabulary.
var SocialtapCheckinName string = "Checkin"
// ActivityStreamsCollectionName is the string literal of the name for the Collection type in the ActivityStreams vocabulary.
var ActivityStreamsCollectionName string = "Collection"
......@@ -44,6 +47,9 @@ var ForgeFedCommitName string = "Commit"
// ActivityStreamsCreateName is the string literal of the name for the Create type in the ActivityStreams vocabulary.
var ActivityStreamsCreateName string = "Create"
// FakeVocabularyCustomTypeName is the string literal of the name for the CustomType type in the FakeVocabulary vocabulary.
var FakeVocabularyCustomTypeName string = "CustomType"
// ActivityStreamsDeleteName is the string literal of the name for the Delete type in the ActivityStreams vocabulary.
var ActivityStreamsDeleteName string = "Delete"
......@@ -53,6 +59,9 @@ var ActivityStreamsDislikeName string = "Dislike"
// ActivityStreamsDocumentName is the string literal of the name for the Document type in the ActivityStreams vocabulary.
var ActivityStreamsDocumentName string = "Document"
// SocialtapDrinkName is the string literal of the name for the Drink type in the Socialtap vocabulary.
var SocialtapDrinkName string = "Drink"
// TootEmojiName is the string literal of the name for the Emoji type in the Toot vocabulary.
var TootEmojiName string = "Emoji"
......@@ -98,6 +107,9 @@ var ActivityStreamsLinkName string = "Link"
// ActivityStreamsListenName is the string literal of the name for the Listen type in the ActivityStreams vocabulary.
var ActivityStreamsListenName string = "Listen"
// SocialtapManufacturerName is the string literal of the name for the Manufacturer type in the Socialtap vocabulary.
var SocialtapManufacturerName string = "Manufacturer"
// ActivityStreamsMentionName is the string literal of the name for the Mention type in the ActivityStreams vocabulary.
var ActivityStreamsMentionName string = "Mention"
......@@ -143,6 +155,9 @@ var ForgeFedPushName string = "Push"
// ActivityStreamsQuestionName is the string literal of the name for the Question type in the ActivityStreams vocabulary.
var ActivityStreamsQuestionName string = "Question"
// SocialtapRatingName is the string literal of the name for the Rating type in the Socialtap vocabulary.
var SocialtapRatingName string = "Rating"
// ActivityStreamsReadName is the string literal of the name for the Read type in the ActivityStreams vocabulary.
var ActivityStreamsReadName string = "Read"
......@@ -185,15 +200,30 @@ var ActivityStreamsUndoName string = "Undo"
// ActivityStreamsUpdateName is the string literal of the name for the Update type in the ActivityStreams vocabulary.
var ActivityStreamsUpdateName string = "Update"
// FakeVocabularyUpdateName is the string literal of the name for the Update type in the FakeVocabulary vocabulary.
var FakeVocabularyUpdateName string = "Update"
// SocialtapVenueName is the string literal of the name for the Venue type in the Socialtap vocabulary.
var SocialtapVenueName string = "Venue"
// ActivityStreamsVideoName is the string literal of the name for the Video type in the ActivityStreams vocabulary.
var ActivityStreamsVideoName string = "Video"
// ActivityStreamsViewName is the string literal of the name for the View type in the ActivityStreams vocabulary.
var ActivityStreamsViewName string = "View"
// SocialtapAbvPropertyName is the string literal of the name for the abv property in the Socialtap vocabulary.
var SocialtapAbvPropertyName string = "abv"
// ActivityStreamsAccuracyPropertyName is the string literal of the name for the accuracy property in the ActivityStreams vocabulary.
var ActivityStreamsAccuracyPropertyName string = "accuracy"
// FakeVocabularyAccuracyPropertyName is the string literal of the name for the accuracy property in the FakeVocabulary vocabulary.
var FakeVocabularyAccuracyPropertyName string = "accuracy"
// SocialtapActivePropertyName is the string literal of the name for the active property in the Socialtap vocabulary.
var SocialtapActivePropertyName string = "active"
// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary.
var ActivityStreamsActorPropertyName string = "actor"
......@@ -224,6 +254,9 @@ var TootBlurhashPropertyName string = "blurhash"
// ActivityStreamsBtoPropertyName is the string literal of the name for the bto property in the ActivityStreams vocabulary.
var ActivityStreamsBtoPropertyName string = "bto"
// SocialtapCategoryPropertyName is the string literal of the name for the category property in the Socialtap vocabulary.
var SocialtapCategoryPropertyName string = "category"
// ActivityStreamsCcPropertyName is the string literal of the name for the cc property in the ActivityStreams vocabulary.
var ActivityStreamsCcPropertyName string = "cc"
......@@ -248,6 +281,9 @@ var ActivityStreamsContextPropertyName string = "context"
// ActivityStreamsCurrentPropertyName is the string literal of the name for the current property in the ActivityStreams vocabulary.
var ActivityStreamsCurrentPropertyName string = "current"
// FakeVocabularyCustompropertyPropertyName is the string literal of the name for the customproperty property in the FakeVocabulary vocabulary.
var FakeVocabularyCustompropertyPropertyName string = "customproperty"
// ActivityStreamsDeletedPropertyName is the string literal of the name for the deleted property in the ActivityStreams vocabulary.
var ActivityStreamsDeletedPropertyName string = "deleted"
......@@ -272,6 +308,9 @@ var ForgeFedDescriptionPropertyName string = "description"
// TootDiscoverablePropertyName is the string literal of the name for the discoverable property in the Toot vocabulary.
var TootDiscoverablePropertyName string = "discoverable"
// SocialtapDrinkPropertyName is the string literal of the name for the drink property in the Socialtap vocabulary.
var SocialtapDrinkPropertyName string = "drink"
// ActivityStreamsDurationPropertyName is the string literal of the name for the duration property in the ActivityStreams vocabulary.
var ActivityStreamsDurationPropertyName string = "duration"
......@@ -326,6 +365,9 @@ var ActivityStreamsHreflangPropertyName string = "hreflang"
// ActivityStreamsIconPropertyName is the string literal of the name for the icon property in the ActivityStreams vocabulary.
var ActivityStreamsIconPropertyName string = "icon"
// SocialtapImagePropertyName is the string literal of the name for the image property in the Socialtap vocabulary.
var SocialtapImagePropertyName string = "image"
// ActivityStreamsImagePropertyName is the string literal of the name for the image property in the ActivityStreams vocabulary.
var ActivityStreamsImagePropertyName string = "image"
......@@ -359,12 +401,24 @@ var ActivityStreamsLikesPropertyName string = "likes"
// ActivityStreamsLocationPropertyName is the string literal of the name for the location property in the ActivityStreams vocabulary.
var ActivityStreamsLocationPropertyName string = "location"
// SocialtapLocationPropertyName is the string literal of the name for the location property in the Socialtap vocabulary.
var SocialtapLocationPropertyName string = "location"
// ActivityStreamsLongitudePropertyName is the string literal of the name for the longitude property in the ActivityStreams vocabulary.
var ActivityStreamsLongitudePropertyName string = "longitude"
// SocialtapManufacturerPropertyName is the string literal of the name for the manufacturer property in the Socialtap vocabulary.
var SocialtapManufacturerPropertyName string = "manufacturer"
// SocialtapMaxPropertyName is the string literal of the name for the max property in the Socialtap vocabulary.
var SocialtapMaxPropertyName string = "max"
// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
var ActivityStreamsMediaTypePropertyName string = "mediaType"
// SocialtapNamePropertyName is the string literal of the name for the name property in the Socialtap vocabulary.
var SocialtapNamePropertyName string = "name"
// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary.
var ActivityStreamsNamePropertyName string = "name"
......@@ -419,6 +473,9 @@ var ActivityStreamsPublishedPropertyName string = "published"
// ActivityStreamsRadiusPropertyName is the string literal of the name for the radius property in the ActivityStreams vocabulary.
var ActivityStreamsRadiusPropertyName string = "radius"
// SocialtapRatingPropertyName is the string literal of the name for the rating property in the Socialtap vocabulary.
var SocialtapRatingPropertyName string = "rating"
// ForgeFedRefPropertyName is the string literal of the name for the ref property in the ForgeFed vocabulary.
var ForgeFedRefPropertyName string = "ref"
......@@ -455,6 +512,9 @@ var ActivityStreamsStartTimePropertyName string = "startTime"
// ActivityStreamsStreamsPropertyName is the string literal of the name for the streams property in the ActivityStreams vocabulary.
var ActivityStreamsStreamsPropertyName string = "streams"
// SocialtapStylePropertyName is the string literal of the name for the style property in the Socialtap vocabulary.
var SocialtapStylePropertyName string = "style"
// ActivityStreamsSubjectPropertyName is the string literal of the name for the subject property in the ActivityStreams vocabulary.
var ActivityStreamsSubjectPropertyName string = "subject"
......@@ -494,6 +554,15 @@ var ActivityStreamsUpdatedPropertyName string = "updated"
// ActivityStreamsUrlPropertyName is the string literal of the name for the url property in the ActivityStreams vocabulary.
var ActivityStreamsUrlPropertyName string = "url"
// SocialtapUrlPropertyName is the string literal of the name for the url property in the Socialtap vocabulary.
var SocialtapUrlPropertyName string = "url"
// SocialtapUserPropertyName is the string literal of the name for the user property in the Socialtap vocabulary.
var SocialtapUserPropertyName string = "user"
// SocialtapVenuePropertyName is the string literal of the name for the venue property in the Socialtap vocabulary.
var SocialtapVenuePropertyName string = "venue"
// TootVotersCountPropertyName is the string literal of the name for the votersCount property in the Toot vocabulary.
var TootVotersCountPropertyName string = "votersCount"
......
......@@ -128,6 +128,10 @@ import (
typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
propertyaccuracy1 "github.com/go-fed/activity/streams/impl/fakevocabulary/property_accuracy"
propertycustomproperty "github.com/go-fed/activity/streams/impl/fakevocabulary/property_customproperty"
typecustomtype "github.com/go-fed/activity/streams/impl/fakevocabulary/type_customtype"
typeupdate1 "github.com/go-fed/activity/streams/impl/fakevocabulary/type_update"
propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
......@@ -153,6 +157,25 @@ import (
typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
propertyabv "github.com/go-fed/activity/streams/impl/socialtap/property_abv"
propertyactive "github.com/go-fed/activity/streams/impl/socialtap/property_active"
propertycategory "github.com/go-fed/activity/streams/impl/socialtap/property_category"
propertydrink "github.com/go-fed/activity/streams/impl/socialtap/property_drink"
propertyimage1 "github.com/go-fed/activity/streams/impl/socialtap/property_image"
propertylocation1 "github.com/go-fed/activity/streams/impl/socialtap/property_location"
propertymanufacturer "github.com/go-fed/activity/streams/impl/socialtap/property_manufacturer"
propertymax "github.com/go-fed/activity/streams/impl/socialtap/property_max"
propertyname1 "github.com/go-fed/activity/streams/impl/socialtap/property_name"
propertyrating "github.com/go-fed/activity/streams/impl/socialtap/property_rating"
propertystyle "github.com/go-fed/activity/streams/impl/socialtap/property_style"
propertyurl1 "github.com/go-fed/activity/streams/impl/socialtap/property_url"
propertyuser "github.com/go-fed/activity/streams/impl/socialtap/property_user"
propertyvenue "github.com/go-fed/activity/streams/impl/socialtap/property_venue"
typecheckin "github.com/go-fed/activity/streams/impl/socialtap/type_checkin"
typedrink "github.com/go-fed/activity/streams/impl/socialtap/type_drink"
typemanufacturer "github.com/go-fed/activity/streams/impl/socialtap/type_manufacturer"
typerating "github.com/go-fed/activity/streams/impl/socialtap/type_rating"
typevenue "github.com/go-fed/activity/streams/impl/socialtap/type_venue"
propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash"
propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable"
propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured"
......@@ -305,6 +328,10 @@ func init() {
typeupdate.SetManager(mgr)
typevideo.SetManager(mgr)
typeview.SetManager(mgr)
propertyaccuracy1.SetManager(mgr)
propertycustomproperty.SetManager(mgr)
typecustomtype.SetManager(mgr)
typeupdate1.SetManager(mgr)
propertyassignedto.SetManager(mgr)
propertycommitted.SetManager(mgr)
propertycommittedby.SetManager(mgr)
......@@ -330,6 +357,25 @@ func init() {
typerepository.SetManager(mgr)
typeticket.SetManager(mgr)
typeticketdependency.SetManager(mgr)
propertyabv.SetManager(mgr)
propertyactive.SetManager(mgr)
propertycategory.SetManager(mgr)
propertydrink.SetManager(mgr)
propertyimage1.SetManager(mgr)
propertylocation1.SetManager(mgr)
propertymanufacturer.SetManager(mgr)
propertymax.SetManager(mgr)
propertyname1.SetManager(mgr)
propertyrating.SetManager(mgr)
propertystyle.SetManager(mgr)
propertyurl1.SetManager(mgr)
propertyuser.SetManager(mgr)
propertyvenue.SetManager(mgr)
typecheckin.SetManager(mgr)
typedrink.SetManager(mgr)
typemanufacturer.SetManager(mgr)
typerating.SetManager(mgr)
typevenue.SetManager(mgr)
propertyblurhash.SetManager(mgr)
propertydiscoverable.SetManager(mgr)
propertyfeatured.SetManager(mgr)
......@@ -396,12 +442,19 @@ func init() {
typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecustomtype.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeupdate1.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typebranch.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecommit.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepush.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typerepository.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeticket.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeticketdependency.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typecheckin.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typedrink.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typemanufacturer.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typerating.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typevenue.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty)
......
......@@ -51,6 +51,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ForgeFedBranch) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SocialtapCheckin) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCollection) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCollectionPage) error:
......@@ -59,12 +61,16 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCreate) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FakeVocabularyCustomType) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDelete) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDislike) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsDocument) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SocialtapDrink) 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.ActivityStreamsEvent) error:
......@@ -95,6 +101,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsListen) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SocialtapManufacturer) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsMention) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsMove) error:
......@@ -125,6 +133,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsQuestion) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SocialtapRating) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsRead) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsReject) error:
......@@ -153,6 +163,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsUpdate) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.FakeVocabularyUpdate) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.SocialtapVenue) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsVideo) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsView) error:
......@@ -243,6 +257,20 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
if len(ForgeFedAlias) > 0 {
ForgeFedAlias += ":"
}
SocialtapAlias, ok := aliasMap["https://socialtap.git.feneas.org/vocab"]
if !ok {
SocialtapAlias = aliasMap["http://socialtap.git.feneas.org/vocab"]
}
if len(SocialtapAlias) > 0 {
SocialtapAlias += ":"
}
FakeVocabularyAlias, ok := aliasMap["https://example.com/fake-vocabulary"]
if !ok {
FakeVocabularyAlias = aliasMap["http://example.com/fake-vocabulary"]
}
if len(FakeVocabularyAlias) > 0 {
FakeVocabularyAlias += ":"
}
TootAlias, ok := aliasMap["https://joinmastodon.org/ns"]
if !ok {
TootAlias = aliasMap["http://joinmastodon.org/ns"]
......@@ -368,6 +396,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == SocialtapAlias+"Checkin" {
v, err := mgr.DeserializeCheckinSocialtap()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.SocialtapCheckin) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Collection" {
v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap)
if err != nil {
......@@ -412,6 +451,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == FakeVocabularyAlias+"CustomType" {
v, err := mgr.DeserializeCustomTypeFakeVocabulary()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.FakeVocabularyCustomType) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Delete" {
v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap)
if err != nil {
......@@ -445,6 +495,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == SocialtapAlias+"Drink" {
v, err := mgr.DeserializeDrinkSocialtap()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.SocialtapDrink) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == TootAlias+"Emoji" {
v, err := mgr.DeserializeEmojiToot()(m, aliasMap)
if err != nil {
......@@ -610,6 +671,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == SocialtapAlias+"Manufacturer" {
v, err := mgr.DeserializeManufacturerSocialtap()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.SocialtapManufacturer) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Mention" {
v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap)
if err != nil {
......@@ -775,6 +847,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == SocialtapAlias+"Rating" {
v, err := mgr.DeserializeRatingSocialtap()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.SocialtapRating) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Read" {
v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap)
if err != nil {
......@@ -929,6 +1012,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
} else if typeString == FakeVocabularyAlias+"Update" {
v, err := mgr.DeserializeUpdateFakeVocabulary()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.FakeVocabularyUpdate) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == SocialtapAlias+"Venue" {
v, err := mgr.DeserializeVenueSocialtap()(m, aliasMap)
if err != nil {
return err
}
for _, i := range this.callbacks {
if fn, ok := i.(func(context.Context, vocab.SocialtapVenue) error); ok {
return fn(ctx, v)
}
}
return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Video" {
v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap)
if err != nil {
......
......@@ -128,6 +128,10 @@ import (
typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
propertyaccuracy1 "github.com/go-fed/activity/streams/impl/fakevocabulary/property_accuracy"
propertycustomproperty "github.com/go-fed/activity/streams/impl/fakevocabulary/property_customproperty"
typecustomtype "github.com/go-fed/activity/streams/impl/fakevocabulary/type_customtype"
typeupdate1 "github.com/go-fed/activity/streams/impl/fakevocabulary/type_update"
propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
......@@ -155,6 +159,25 @@ import (
typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
propertyid "github.com/go-fed/activity/streams/impl/jsonld/property_id"
propertytype "github.com/go-fed/activity/streams/impl/jsonld/property_type"
propertyabv "github.com/go-fed/activity/streams/impl/socialtap/property_abv"
propertyactive "github.com/go-fed/activity/streams/impl/socialtap/property_active"
propertycategory "github.com/go-fed/activity/streams/impl/socialtap/property_category"
propertydrink "github.com/go-fed/activity/streams/impl/socialtap/property_drink"
propertyimage1 "github.com/go-fed/activity/streams/impl/socialtap/property_image"
propertylocation1 "github.com/go-fed/activity/streams/impl/socialtap/property_location"
propertymanufacturer "github.com/go-fed/activity/streams/impl/socialtap/property_manufacturer"
propertymax "github.com/go-fed/activity/streams/impl/socialtap/property_max"
propertyname1 "github.com/go-fed/activity/streams/impl/socialtap/property_name"
propertyrating "github.com/go-fed/activity/streams/impl/socialtap/property_rating"
propertystyle "github.com/go-fed/activity/streams/impl/socialtap/property_style"
propertyurl1 "github.com/go-fed/activity/streams/impl/socialtap/property_url"
propertyuser "github.com/go-fed/activity/streams/impl/socialtap/property_user"
propertyvenue "github.com/go-fed/activity/streams/impl/socialtap/property_venue"
typecheckin "github.com/go-fed/activity/streams/impl/socialtap/type_checkin"
typedrink "github.com/go-fed/activity/streams/impl/socialtap/type_drink"
typemanufacturer "github.com/go-fed/activity/streams/impl/socialtap/type_manufacturer"
typerating "github.com/go-fed/activity/streams/impl/socialtap/type_rating"
typevenue "github.com/go-fed/activity/streams/impl/socialtap/type_venue"
propertyblurhash "github.com/go-fed/activity/streams/impl/toot/property_blurhash"
propertydiscoverable "github.com/go-fed/activity/streams/impl/toot/property_discoverable"
propertyfeatured "github.com/go-fed/activity/streams/impl/toot/property_featured"
......@@ -176,6 +199,18 @@ import (
type Manager struct {
}
// DeserializeAbvPropertySocialtap returns the deserialization method for the
// "SocialtapAbvProperty" non-functional property in the vocabulary "Socialtap"
func (this Manager) DeserializeAbvPropertySocialtap() func(map[string]interface{}, map[string]string) (vocab.SocialtapAbvProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SocialtapAbvProperty, error) {
i, err := propertyabv.DeserializeAbvProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeAcceptActivityStreams returns the deserialization method for the
// "ActivityStreamsAccept" non-functional property in the vocabulary
// "ActivityStreams"
......@@ -202,6 +237,32 @@ func (this Manager) DeserializeAccuracyPropertyActivityStreams() func(map[string
}
}
// DeserializeAccuracyPropertyFakeVocabulary returns the deserialization method
// for the "FakeVocabularyAccuracyProperty" non-functional property in the
// vocabulary "FakeVocabulary"
func (this Manager) DeserializeAccuracyPropertyFakeVocabulary() func(map[string]interface{}, map[string]string) (vocab.FakeVocabularyAccuracyProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.FakeVocabularyAccuracyProperty, error) {
i, err := propertyaccuracy1.DeserializeAccuracyProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeActivePropertySocialtap returns the deserialization method for the
// "SocialtapActiveProperty" non-functional property in the vocabulary
// "Socialtap"
func (this Manager) DeserializeActivePropertySocialtap() func(map[string]interface{}, map[string]string) (vocab.SocialtapActiveProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SocialtapActiveProperty, error) {
i, err := propertyactive.DeserializeActiveProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeActivityActivityStreams returns the deserialization method for the
// "ActivityStreamsActivity" non-functional property in the vocabulary
// "ActivityStreams"
......@@ -447,6 +508,19 @@ func (this Manager) DeserializeBtoPropertyActivityStreams() func(map[string]inte
}
}
// DeserializeCategoryPropertySocialtap returns the deserialization method for the
// "SocialtapCategoryProperty" non-functional property in the vocabulary
// "Socialtap"
func (this Manager) DeserializeCategoryPropertySocialtap() func(map[string]interface{}, map[string]string) (vocab.SocialtapCategoryProperty, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SocialtapCategoryProperty, error) {
i, err := propertycategory.DeserializeCategoryProperty(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeCcPropertyActivityStreams returns the deserialization method for the
// "ActivityStreamsCcProperty" non-functional property in the vocabulary
// "ActivityStreams"
......@@ -460,6 +534,18 @@ func (this Manager) DeserializeCcPropertyActivityStreams() func(map[string]inter
}
}
// DeserializeCheckinSocialtap returns the deserialization method for the
// "SocialtapCheckin" non-functional property in the vocabulary "Socialtap"
func (this Manager) DeserializeCheckinSocialtap() func(map[string]interface{}, map[string]string) (vocab.SocialtapCheckin, error) {
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SocialtapCheckin, error) {
i, err := typecheckin.DeserializeCheckin(m, aliasMap)
if i == nil {
return nil, err
}
return i, err
}
}
// DeserializeClosedPropertyActivityStreams returns the deserialization method for
// the "ActivityStreamsClosedProperty" non-functional property in the
// vocabulary "ActivityStreams"
......@@ -589,6 +675,32 @@ func (this Manager) DeserializeCurrentPropertyActivityStreams() func(map[string]
}
}