typeemoji

package
v1.9.0-gts Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package typeemoji contains the implementation for the Emoji type. All applications are strongly encouraged to use the interface instead of this concrete definition. The interfaces allow applications to consume only the types and properties needed and be independent of the go-fed implementation if another alternative implementation is created. This package is code-generated and subject to the same license as the go-fed tool used to generate it.

This package is independent of other types' and properties' implementations by having a Manager injected into it to act as a factory for the concrete implementations. The implementations have been generated into their own separate subpackages for each vocabulary.

Strongly consider using the interfaces instead of this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmojiIsDisjointWith

func EmojiIsDisjointWith(other vocab.Type) bool

EmojiIsDisjointWith returns true if the other provided type is disjoint with the Emoji type.

func EmojiIsExtendedBy

func EmojiIsExtendedBy(other vocab.Type) bool

EmojiIsExtendedBy returns true if the other provided type extends from the Emoji type. Note that it returns false if the types are the same; see the "IsOrExtendsEmoji" variant instead.

func IsOrExtendsEmoji

func IsOrExtendsEmoji(other vocab.Type) bool

IsOrExtendsEmoji returns true if the other provided type is the Emoji type or extends from the Emoji type.

func SetManager

func SetManager(m privateManager)

SetManager sets the manager package-global variable. For internal use only, do not use as part of Application behavior. Must be called at golang init time.

func SetTypePropertyConstructor

func SetTypePropertyConstructor(f func() vocab.JSONLDTypeProperty)

SetTypePropertyConstructor sets the "type" property's constructor in the package-global variable. For internal use only, do not use as part of Application behavior. Must be called at golang init time. Permits ActivityStreams types to correctly set their "type" property at construction time, so users don't have to remember to do so each time. It is dependency injected so other go-fed compatible implementations could inject their own type.

func TootEmojiExtends

func TootEmojiExtends(other vocab.Type) bool

TootEmojiExtends returns true if the Emoji type extends from the other type.

Types

type TootEmoji

type TootEmoji struct {
	ActivityStreamsAltitude     vocab.ActivityStreamsAltitudeProperty
	ActivityStreamsAttachment   vocab.ActivityStreamsAttachmentProperty
	ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
	ActivityStreamsAudience     vocab.ActivityStreamsAudienceProperty
	ActivityStreamsBcc          vocab.ActivityStreamsBccProperty
	ActivityStreamsBto          vocab.ActivityStreamsBtoProperty
	ActivityStreamsCc           vocab.ActivityStreamsCcProperty
	ActivityStreamsContent      vocab.ActivityStreamsContentProperty
	ActivityStreamsContext      vocab.ActivityStreamsContextProperty
	ActivityStreamsDuration     vocab.ActivityStreamsDurationProperty
	ActivityStreamsEndTime      vocab.ActivityStreamsEndTimeProperty
	ActivityStreamsGenerator    vocab.ActivityStreamsGeneratorProperty
	ActivityStreamsIcon         vocab.ActivityStreamsIconProperty
	JSONLDId                    vocab.JSONLDIdProperty
	ActivityStreamsImage        vocab.ActivityStreamsImageProperty
	ActivityStreamsInReplyTo    vocab.ActivityStreamsInReplyToProperty
	ActivityStreamsLikes        vocab.ActivityStreamsLikesProperty
	ActivityStreamsLocation     vocab.ActivityStreamsLocationProperty
	ActivityStreamsMediaType    vocab.ActivityStreamsMediaTypeProperty
	ActivityStreamsName         vocab.ActivityStreamsNameProperty
	ActivityStreamsObject       vocab.ActivityStreamsObjectProperty
	ActivityStreamsPreview      vocab.ActivityStreamsPreviewProperty
	ActivityStreamsPublished    vocab.ActivityStreamsPublishedProperty
	ActivityStreamsReplies      vocab.ActivityStreamsRepliesProperty
	ActivityStreamsSensitive    vocab.ActivityStreamsSensitiveProperty
	ActivityStreamsShares       vocab.ActivityStreamsSharesProperty
	ActivityStreamsSource       vocab.ActivityStreamsSourceProperty
	ActivityStreamsStartTime    vocab.ActivityStreamsStartTimeProperty
	ActivityStreamsSummary      vocab.ActivityStreamsSummaryProperty
	ActivityStreamsTag          vocab.ActivityStreamsTagProperty
	ActivityStreamsTo           vocab.ActivityStreamsToProperty
	JSONLDType                  vocab.JSONLDTypeProperty
	ActivityStreamsUpdated      vocab.ActivityStreamsUpdatedProperty
	ActivityStreamsUrl          vocab.ActivityStreamsUrlProperty
	// contains filtered or unexported fields
}
{
  "content": "Hello world :Kappa:",
  "id": "https://example.com/@alice/hello-world",
  "tag": [
    {
      "icon": {
        "mediaType": "image/png",
        "type": "Image",
        "url": "https://example.com/files/kappa.png"
      },
      "id": "https://example.com/emoji/123",
      "name": ":Kappa:",
      "type": "Emoji"
    }
  ],
  "type": "Note"
}

func DeserializeEmoji

func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*TootEmoji, error)

DeserializeEmoji creates a Emoji from a map representation that has been unmarshalled from a text or binary format.

func NewTootEmoji

func NewTootEmoji() *TootEmoji

NewTootEmoji creates a new Emoji type

func (TootEmoji) GetActivityStreamsAltitude

func (this TootEmoji) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty

GetActivityStreamsAltitude returns the "altitude" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsAttachment

func (this TootEmoji) GetActivityStreamsAttachment() vocab.ActivityStreamsAttachmentProperty

GetActivityStreamsAttachment returns the "attachment" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsAttributedTo

func (this TootEmoji) GetActivityStreamsAttributedTo() vocab.ActivityStreamsAttributedToProperty

GetActivityStreamsAttributedTo returns the "attributedTo" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsAudience

func (this TootEmoji) GetActivityStreamsAudience() vocab.ActivityStreamsAudienceProperty

GetActivityStreamsAudience returns the "audience" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsBcc

func (this TootEmoji) GetActivityStreamsBcc() vocab.ActivityStreamsBccProperty

GetActivityStreamsBcc returns the "bcc" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsBto

func (this TootEmoji) GetActivityStreamsBto() vocab.ActivityStreamsBtoProperty

GetActivityStreamsBto returns the "bto" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsCc

func (this TootEmoji) GetActivityStreamsCc() vocab.ActivityStreamsCcProperty

GetActivityStreamsCc returns the "cc" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsContent

func (this TootEmoji) GetActivityStreamsContent() vocab.ActivityStreamsContentProperty

GetActivityStreamsContent returns the "content" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsContext

func (this TootEmoji) GetActivityStreamsContext() vocab.ActivityStreamsContextProperty

GetActivityStreamsContext returns the "context" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsDuration

func (this TootEmoji) GetActivityStreamsDuration() vocab.ActivityStreamsDurationProperty

GetActivityStreamsDuration returns the "duration" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsEndTime

func (this TootEmoji) GetActivityStreamsEndTime() vocab.ActivityStreamsEndTimeProperty

GetActivityStreamsEndTime returns the "endTime" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsGenerator

func (this TootEmoji) GetActivityStreamsGenerator() vocab.ActivityStreamsGeneratorProperty

GetActivityStreamsGenerator returns the "generator" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsIcon

func (this TootEmoji) GetActivityStreamsIcon() vocab.ActivityStreamsIconProperty

GetActivityStreamsIcon returns the "icon" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsImage

func (this TootEmoji) GetActivityStreamsImage() vocab.ActivityStreamsImageProperty

GetActivityStreamsImage returns the "image" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsInReplyTo

func (this TootEmoji) GetActivityStreamsInReplyTo() vocab.ActivityStreamsInReplyToProperty

GetActivityStreamsInReplyTo returns the "inReplyTo" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsLikes

func (this TootEmoji) GetActivityStreamsLikes() vocab.ActivityStreamsLikesProperty

GetActivityStreamsLikes returns the "likes" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsLocation

func (this TootEmoji) GetActivityStreamsLocation() vocab.ActivityStreamsLocationProperty

GetActivityStreamsLocation returns the "location" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsMediaType

func (this TootEmoji) GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty

GetActivityStreamsMediaType returns the "mediaType" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsName

func (this TootEmoji) GetActivityStreamsName() vocab.ActivityStreamsNameProperty

GetActivityStreamsName returns the "name" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsObject

func (this TootEmoji) GetActivityStreamsObject() vocab.ActivityStreamsObjectProperty

GetActivityStreamsObject returns the "object" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsPreview

func (this TootEmoji) GetActivityStreamsPreview() vocab.ActivityStreamsPreviewProperty

GetActivityStreamsPreview returns the "preview" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsPublished

func (this TootEmoji) GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty

GetActivityStreamsPublished returns the "published" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsReplies

func (this TootEmoji) GetActivityStreamsReplies() vocab.ActivityStreamsRepliesProperty

GetActivityStreamsReplies returns the "replies" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsSensitive

func (this TootEmoji) GetActivityStreamsSensitive() vocab.ActivityStreamsSensitiveProperty

GetActivityStreamsSensitive returns the "sensitive" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsShares

func (this TootEmoji) GetActivityStreamsShares() vocab.ActivityStreamsSharesProperty

GetActivityStreamsShares returns the "shares" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsSource

func (this TootEmoji) GetActivityStreamsSource() vocab.ActivityStreamsSourceProperty

GetActivityStreamsSource returns the "source" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsStartTime

func (this TootEmoji) GetActivityStreamsStartTime() vocab.ActivityStreamsStartTimeProperty

GetActivityStreamsStartTime returns the "startTime" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsSummary

func (this TootEmoji) GetActivityStreamsSummary() vocab.ActivityStreamsSummaryProperty

GetActivityStreamsSummary returns the "summary" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsTag

func (this TootEmoji) GetActivityStreamsTag() vocab.ActivityStreamsTagProperty

GetActivityStreamsTag returns the "tag" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsTo

func (this TootEmoji) GetActivityStreamsTo() vocab.ActivityStreamsToProperty

GetActivityStreamsTo returns the "to" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsUpdated

func (this TootEmoji) GetActivityStreamsUpdated() vocab.ActivityStreamsUpdatedProperty

GetActivityStreamsUpdated returns the "updated" property if it exists, and nil otherwise.

func (TootEmoji) GetActivityStreamsUrl

func (this TootEmoji) GetActivityStreamsUrl() vocab.ActivityStreamsUrlProperty

GetActivityStreamsUrl returns the "url" property if it exists, and nil otherwise.

func (TootEmoji) GetJSONLDId

func (this TootEmoji) GetJSONLDId() vocab.JSONLDIdProperty

GetJSONLDId returns the "id" property if it exists, and nil otherwise.

func (TootEmoji) GetJSONLDType

func (this TootEmoji) GetJSONLDType() vocab.JSONLDTypeProperty

GetJSONLDType returns the "type" property if it exists, and nil otherwise.

func (TootEmoji) GetTypeName

func (this TootEmoji) GetTypeName() string

GetTypeName returns the name of this type.

func (TootEmoji) GetUnknownProperties

func (this TootEmoji) GetUnknownProperties() map[string]interface{}

GetUnknownProperties returns the unknown properties for the Emoji 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.

func (TootEmoji) IsExtending

func (this TootEmoji) IsExtending(other vocab.Type) bool

IsExtending returns true if the Emoji type extends from the other type.

func (TootEmoji) JSONLDContext

func (this TootEmoji) JSONLDContext() map[string]string

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.

func (TootEmoji) LessThan

func (this TootEmoji) LessThan(o vocab.TootEmoji) bool

LessThan computes if this Emoji is lesser, with an arbitrary but stable determination.

func (TootEmoji) Serialize

func (this TootEmoji) Serialize() (map[string]interface{}, error)

Serialize converts this into an interface representation suitable for marshalling into a text or binary format.

func (*TootEmoji) SetActivityStreamsAltitude

func (this *TootEmoji) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty)

SetActivityStreamsAltitude sets the "altitude" property.

func (*TootEmoji) SetActivityStreamsAttachment

func (this *TootEmoji) SetActivityStreamsAttachment(i vocab.ActivityStreamsAttachmentProperty)

SetActivityStreamsAttachment sets the "attachment" property.

func (*TootEmoji) SetActivityStreamsAttributedTo

func (this *TootEmoji) SetActivityStreamsAttributedTo(i vocab.ActivityStreamsAttributedToProperty)

SetActivityStreamsAttributedTo sets the "attributedTo" property.

func (*TootEmoji) SetActivityStreamsAudience

func (this *TootEmoji) SetActivityStreamsAudience(i vocab.ActivityStreamsAudienceProperty)

SetActivityStreamsAudience sets the "audience" property.

func (*TootEmoji) SetActivityStreamsBcc

func (this *TootEmoji) SetActivityStreamsBcc(i vocab.ActivityStreamsBccProperty)

SetActivityStreamsBcc sets the "bcc" property.

func (*TootEmoji) SetActivityStreamsBto

func (this *TootEmoji) SetActivityStreamsBto(i vocab.ActivityStreamsBtoProperty)

SetActivityStreamsBto sets the "bto" property.

func (*TootEmoji) SetActivityStreamsCc

func (this *TootEmoji) SetActivityStreamsCc(i vocab.ActivityStreamsCcProperty)

SetActivityStreamsCc sets the "cc" property.

func (*TootEmoji) SetActivityStreamsContent

func (this *TootEmoji) SetActivityStreamsContent(i vocab.ActivityStreamsContentProperty)

SetActivityStreamsContent sets the "content" property.

func (*TootEmoji) SetActivityStreamsContext

func (this *TootEmoji) SetActivityStreamsContext(i vocab.ActivityStreamsContextProperty)

SetActivityStreamsContext sets the "context" property.

func (*TootEmoji) SetActivityStreamsDuration

func (this *TootEmoji) SetActivityStreamsDuration(i vocab.ActivityStreamsDurationProperty)

SetActivityStreamsDuration sets the "duration" property.

func (*TootEmoji) SetActivityStreamsEndTime

func (this *TootEmoji) SetActivityStreamsEndTime(i vocab.ActivityStreamsEndTimeProperty)

SetActivityStreamsEndTime sets the "endTime" property.

func (*TootEmoji) SetActivityStreamsGenerator

func (this *TootEmoji) SetActivityStreamsGenerator(i vocab.ActivityStreamsGeneratorProperty)

SetActivityStreamsGenerator sets the "generator" property.

func (*TootEmoji) SetActivityStreamsIcon

func (this *TootEmoji) SetActivityStreamsIcon(i vocab.ActivityStreamsIconProperty)

SetActivityStreamsIcon sets the "icon" property.

func (*TootEmoji) SetActivityStreamsImage

func (this *TootEmoji) SetActivityStreamsImage(i vocab.ActivityStreamsImageProperty)

SetActivityStreamsImage sets the "image" property.

func (*TootEmoji) SetActivityStreamsInReplyTo

func (this *TootEmoji) SetActivityStreamsInReplyTo(i vocab.ActivityStreamsInReplyToProperty)

SetActivityStreamsInReplyTo sets the "inReplyTo" property.

func (*TootEmoji) SetActivityStreamsLikes

func (this *TootEmoji) SetActivityStreamsLikes(i vocab.ActivityStreamsLikesProperty)

SetActivityStreamsLikes sets the "likes" property.

func (*TootEmoji) SetActivityStreamsLocation

func (this *TootEmoji) SetActivityStreamsLocation(i vocab.ActivityStreamsLocationProperty)

SetActivityStreamsLocation sets the "location" property.

func (*TootEmoji) SetActivityStreamsMediaType

func (this *TootEmoji) SetActivityStreamsMediaType(i vocab.ActivityStreamsMediaTypeProperty)

SetActivityStreamsMediaType sets the "mediaType" property.

func (*TootEmoji) SetActivityStreamsName

func (this *TootEmoji) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty)

SetActivityStreamsName sets the "name" property.

func (*TootEmoji) SetActivityStreamsObject

func (this *TootEmoji) SetActivityStreamsObject(i vocab.ActivityStreamsObjectProperty)

SetActivityStreamsObject sets the "object" property.

func (*TootEmoji) SetActivityStreamsPreview

func (this *TootEmoji) SetActivityStreamsPreview(i vocab.ActivityStreamsPreviewProperty)

SetActivityStreamsPreview sets the "preview" property.

func (*TootEmoji) SetActivityStreamsPublished

func (this *TootEmoji) SetActivityStreamsPublished(i vocab.ActivityStreamsPublishedProperty)

SetActivityStreamsPublished sets the "published" property.

func (*TootEmoji) SetActivityStreamsReplies

func (this *TootEmoji) SetActivityStreamsReplies(i vocab.ActivityStreamsRepliesProperty)

SetActivityStreamsReplies sets the "replies" property.

func (*TootEmoji) SetActivityStreamsSensitive

func (this *TootEmoji) SetActivityStreamsSensitive(i vocab.ActivityStreamsSensitiveProperty)

SetActivityStreamsSensitive sets the "sensitive" property.

func (*TootEmoji) SetActivityStreamsShares

func (this *TootEmoji) SetActivityStreamsShares(i vocab.ActivityStreamsSharesProperty)

SetActivityStreamsShares sets the "shares" property.

func (*TootEmoji) SetActivityStreamsSource

func (this *TootEmoji) SetActivityStreamsSource(i vocab.ActivityStreamsSourceProperty)

SetActivityStreamsSource sets the "source" property.

func (*TootEmoji) SetActivityStreamsStartTime

func (this *TootEmoji) SetActivityStreamsStartTime(i vocab.ActivityStreamsStartTimeProperty)

SetActivityStreamsStartTime sets the "startTime" property.

func (*TootEmoji) SetActivityStreamsSummary

func (this *TootEmoji) SetActivityStreamsSummary(i vocab.ActivityStreamsSummaryProperty)

SetActivityStreamsSummary sets the "summary" property.

func (*TootEmoji) SetActivityStreamsTag

func (this *TootEmoji) SetActivityStreamsTag(i vocab.ActivityStreamsTagProperty)

SetActivityStreamsTag sets the "tag" property.

func (*TootEmoji) SetActivityStreamsTo

func (this *TootEmoji) SetActivityStreamsTo(i vocab.ActivityStreamsToProperty)

SetActivityStreamsTo sets the "to" property.

func (*TootEmoji) SetActivityStreamsUpdated

func (this *TootEmoji) SetActivityStreamsUpdated(i vocab.ActivityStreamsUpdatedProperty)

SetActivityStreamsUpdated sets the "updated" property.

func (*TootEmoji) SetActivityStreamsUrl

func (this *TootEmoji) SetActivityStreamsUrl(i vocab.ActivityStreamsUrlProperty)

SetActivityStreamsUrl sets the "url" property.

func (*TootEmoji) SetJSONLDId

func (this *TootEmoji) SetJSONLDId(i vocab.JSONLDIdProperty)

SetJSONLDId sets the "id" property.

func (*TootEmoji) SetJSONLDType

func (this *TootEmoji) SetJSONLDType(i vocab.JSONLDTypeProperty)

SetJSONLDType sets the "type" property.

func (TootEmoji) VocabularyURI

func (this TootEmoji) VocabularyURI() string

VocabularyURI returns the vocabulary's URI as a string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL