TextResourceContents

data class TextResourceContents(val text: String, val uri: String, val mimeType: String? = null, val meta: JsonObject? = null) : ResourceContents(source)

Represents the text contents of a resource.

Constructors

Link copied to clipboard
constructor(text: String, uri: String, mimeType: String? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?
Link copied to clipboard
open override val mimeType: String?

The MIME type of this resource, if known.

Link copied to clipboard

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

Link copied to clipboard
open override val uri: String

The URI of this resource.