Annotation

data class Annotation(val type: Annotation.Type, val index: Int, val fileId: String, val url: String, val title: String, val startIndex: Int, val endIndex: Int)(source)

Parameters

type

The type of the file citation. Always file_citation.

index

The index of the file in the list of files.

fileId

The ID of the file.

url

The URL of the web resource.

title

The title of the web resource.

startIndex

The index of the first character of the URL citation in the message.

endIndex

The index of the last character of the URL citation in the message.

Constructors

Link copied to clipboard
constructor(type: Annotation.Type, index: Int, fileId: String, url: String, title: String, startIndex: Int, endIndex: Int)

Types

Link copied to clipboard

The type of the file citation. Always file_citation.

Properties

Link copied to clipboard
@SerialName(value = "end_index")
val endIndex: Int
Link copied to clipboard
@SerialName(value = "file_id")
val fileId: String
Link copied to clipboard
@SerialName(value = "index")
val index: Int
Link copied to clipboard
@SerialName(value = "start_index")
val startIndex: Int
Link copied to clipboard
@SerialName(value = "title")
val title: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "url")
val url: String