class MCProtocol::TextResourceContents

Included Modules

Defined in:

mcprotocol/text_resource_contents.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, uri : URI, mimeType : String | Nil = Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def mimeType : String | Nil #

The MIME type of this resource, if known.


[View source]
def text : String #

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


[View source]
def uri : URI #

The URI of this resource.


[View source]