class

MCProtocol::TextResourceContents

Inherits JSON::Serializable < Reference < Object

Constructors

new(text : String, uri : URI, mimeType : String | Nil = Nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

mimeType

The MIME type of this resource, if known.

Source
text

The text of the item. This must only be set if the item can actually be represented as text (not binary data).

Source
uri

The URI of this resource.

Source