BasicData
class BasicData
Basic data of an anime
Functions
Link copied to clipboard
fun airedSection(title: String, transform: (from: Calendar, to: Calendar?) -> String = { from, to ->
val format = SimpleDateFormat("MMMM d, yyyy")
val builder = StringBuilder().apply {
append(format.format(from.time))
if (to != null) {
append(" to ${format.format(to.time)}")
}
}
builder.toString()
}): ExtraSection
Creates an ExtraSection with a simple TextData using the response from transform, by default the date is formatted like MMMM d, yyyy
.
Link copied to clipboard
Link copied to clipboard
Raw json, see api reference here
Link copied to clipboard
Creates an ExtraSection with the trailer using a YoutubeData