gotosocial/vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_type_toot_hashtag_interface.go

105 lines
4.7 KiB
Go

// Code generated by astool. DO NOT EDIT.
package vocab
//
//
// {
// "content": "example",
// "id": "https://example.com/@alice/hello-world",
// "tag": [
// {
// "href": "https://example.com/hashtag/example",
// "name": "#example",
// "type": "Hashtag"
// }
// ],
// "type": "Note"
// }
type TootHashtag interface {
// GetActivityStreamsAttributedTo returns the "attributedTo" property if
// it exists, and nil otherwise.
GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty
// GetActivityStreamsHeight returns the "height" property if it exists,
// and nil otherwise.
GetActivityStreamsHeight() ActivityStreamsHeightProperty
// GetActivityStreamsHref returns the "href" property if it exists, and
// nil otherwise.
GetActivityStreamsHref() ActivityStreamsHrefProperty
// GetActivityStreamsHreflang returns the "hreflang" property if it
// exists, and nil otherwise.
GetActivityStreamsHreflang() ActivityStreamsHreflangProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
// GetActivityStreamsName returns the "name" property if it exists, and
// nil otherwise.
GetActivityStreamsName() ActivityStreamsNameProperty
// GetActivityStreamsPreview returns the "preview" property if it exists,
// and nil otherwise.
GetActivityStreamsPreview() ActivityStreamsPreviewProperty
// GetActivityStreamsRel returns the "rel" property if it exists, and nil
// otherwise.
GetActivityStreamsRel() ActivityStreamsRelProperty
// GetActivityStreamsSummary returns the "summary" property if it exists,
// and nil otherwise.
GetActivityStreamsSummary() ActivityStreamsSummaryProperty
// GetActivityStreamsWidth returns the "width" property if it exists, and
// nil otherwise.
GetActivityStreamsWidth() ActivityStreamsWidthProperty
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
GetJSONLDId() JSONLDIdProperty
// GetJSONLDType returns the "type" property if it exists, and nil
// otherwise.
GetJSONLDType() JSONLDTypeProperty
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Hashtag
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the
// other. Developers who are creating a different implementation of
// this type's interface can use this method in their LessThan
// implementation, but routine ActivityPub applications should not use
// this to bypass the code generation tool.
GetUnknownProperties() map[string]interface{}
// IsExtending returns true if the Hashtag type extends from the other
// type.
IsExtending(other Type) bool
// JSONLDContext returns the JSONLD URIs required in the context string
// for this type and the specific properties that are set. The value
// in the map is the alias used to import the type and its properties.
JSONLDContext() map[string]string
// LessThan computes if this Hashtag is lesser, with an arbitrary but
// stable determination.
LessThan(o TootHashtag) bool
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format.
Serialize() (map[string]interface{}, error)
// SetActivityStreamsAttributedTo sets the "attributedTo" property.
SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty)
// SetActivityStreamsHeight sets the "height" property.
SetActivityStreamsHeight(i ActivityStreamsHeightProperty)
// SetActivityStreamsHref sets the "href" property.
SetActivityStreamsHref(i ActivityStreamsHrefProperty)
// SetActivityStreamsHreflang sets the "hreflang" property.
SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.
SetActivityStreamsName(i ActivityStreamsNameProperty)
// SetActivityStreamsPreview sets the "preview" property.
SetActivityStreamsPreview(i ActivityStreamsPreviewProperty)
// SetActivityStreamsRel sets the "rel" property.
SetActivityStreamsRel(i ActivityStreamsRelProperty)
// SetActivityStreamsSummary sets the "summary" property.
SetActivityStreamsSummary(i ActivityStreamsSummaryProperty)
// SetActivityStreamsWidth sets the "width" property.
SetActivityStreamsWidth(i ActivityStreamsWidthProperty)
// SetJSONLDId sets the "id" property.
SetJSONLDId(i JSONLDIdProperty)
// SetJSONLDType sets the "type" property.
SetJSONLDType(i JSONLDTypeProperty)
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}